Location of a service module configuration - best practice

Where to put a configuration of an external service module - e.g. base url, client secrets, etc. of a third party of an integration service module (including sensitive values) ?

  • a dedicated configuration file, parsed by the module
  • add to application.json
  • constant fields in origam model (exposed to client UI to reconfigure)

Do you mean a workflow service adapter?

What we currently do is to put it to appsettings.json. This way they can be set by environment variables. This is the way we have been configuring the docker instances for some time now. All the secrets are externalised from the configuration file.