Closed coenvl closed 3 years ago
I won't apply this pull request, as we don't want credentials stored in the ESDL file in plain text. We've discussed this in depth when designing the DatabaseProfile. There are however several solutions to your problem:
Does this work for you?
Hey Ewoud,
I also talked to Arun, and he mentioned the same thing. Option number 1 won't work because we will create a plethora of profiles, as they represent different scenarios. Option number 2 is also not feasible since we are not using keycloak, only ESSIM. Option number 3 will probably work though. I can even imagine that the essim engine has some kind of companion configuration file, but using the environment keys effectively does the same thing. I am not sure if I like the idea of using variable environment keys
I agree with the variable environment keys, that could sound a bit hacky, but I think this is most flexible and costs least effort. Alternative could be an environmental variable that points to an influxdb config file with the provided where a mapping is provided between hostname and username/password. You can also add aliases there if people don't use FQDN
That sounds like a nice feature! For now I am locally using a package based on this branch, but this PR can be closed then.
I want to add authenticated access to Influx, but then I need a place to add the credentials. I think this is the appropriate way to do this.