In Prefect 3.x, there isn't a direct feature to exclude specific parameters from being stored in the database when you create a flow run in local mode. However, you can manage sensitive data by handling them separately and not passing them as parameters to the flow.
A workaround could involve using environment variables or a secure vault to store sensitive information and retrieve it within the flow without passing it as a parameter. This approach ensures that sensitive data does not get logged or stored inadvertently.
For more details on configuration and handling parameters, you might want to explore the Prefect documentation or relevant sections in the codebase, such as
flow_engine.py.