Replies: 5 comments
-
If I understand it correctly, it seems like we only need to accept configurations from environment variables here. Loop in @karolz-ms for comments. |
Beta Was this translation helpful? Give feedback.
-
Hello! We do not have any plans around loading configuration data from environment variables. You can construct the EventFlow pipeline in code and use environment variables there, but then you give up on the whole configuration mechanism, so it is not a great workaround. Adding support for reading configuration values from environment variables would be a good enhancement though, and I would probably argue for making it the core feature of EventFlow configuration, benefitting all inputs and outputs. E.g. one could say @xiaomi7732 @WhitWaldo please share your thoughts |
Beta Was this translation helpful? Give feedback.
-
Thanks for your ask Karol. Without deep investigation, based on the IConfiguration pattern established by .NET (.NET Core) over time, I am leaning toward fully leveraging it, and that opens up possibilities for all kinds of configuration providers (Env, KV, etc.). Specific to ServiceFabric, the service fabric configuration file should be provided as an As a side effect, as long as the client uses |
Beta Was this translation helpful? Give feedback.
-
In my use-case, I'm pulling the event source values from Service Fabric and surfacing them in Application Insights. Right now I'm using the functionality to pull the App Insights connection string from the Service Fabric configuration so being able to opt into sourcing that from environment variables instead would allow SF to populate that variable instead itself making it all a little less exposed and easier to change centrally (e.g. from the Key Vault secret instead of in a pile of configuration files). I'd be perfectly fine with that being an opt-in functionality. |
Beta Was this translation helpful? Give feedback.
-
Good discussion, guys. I am actually very glad that @xiaomi7732 reminded me of
IConfiguration config = new ConfigurationBuilder()
.AddJsonFile(configFilePath)
.AddEnvironmentVariables()
.Build();
myOutput["connectionString"] = config["SERVICE_FABRIC_CONNECTION_STRING_VAR"]; Let us know please if this does work for you. |
Beta Was this translation helpful? Give feedback.
-
Hello - I'm working to transition my applications away from putting connection strings directly in my configuration variables and instead using the managed key vault references. These expose the secret value from the Key Vault as environment variables instead of the configuration approach.
Are there any plans to or is there current support for loading the connection string out from an environment variable? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions