sling-cli icon indicating copy to clipboard operation
sling-cli copied to clipboard

Externalize connection config

Open trung opened this issue 1 year ago • 4 comments

Feature Description

Connection config usually contains credentials which is not ideal to store in file system (i.e: sling's env.yaml).

It would be awesome if sling could externalize the connection config.

Something like below:

env.yaml

connections:
  my_db:
    config_url: <value>

Where config_url value could be:

  • aws://secretsmanager?arn=arn:aws:secretsmanager:us-east-1:1111222233334444:secret:mydb&key_prefix=sling
  • https://some_config_server/mydb
  • file://path/to/config/file

trung avatar Aug 21 '24 20:08 trung

Interesting, thanks for the suggestion.

It's worth mentioning that sling accepts env var SLING_ENV_YAML (just put the whole yaml body in the env var).

flarco avatar Aug 21 '24 21:08 flarco

@flarco Hi, could I change the env.yaml file directory?

ghost avatar Jan 09 '25 19:01 ghost

Yes, set SLING_HOME_DIR.

flarco avatar Jan 09 '25 19:01 flarco

Worked perfectly, thanks, I realized late this was indeed on the docs "environment"

https://docs.slingdata.io/sling-cli/environment

ghost avatar Jan 09 '25 20:01 ghost