TheRacetrack / racetrack

An opinionated framework for deploying, managing, and serving application workloads
https://theracetrack.github.io/racetrack/
Apache License 2.0
28 stars 6 forks source link

Keep secret vars apart from regular env vars #395

Closed iszulcdeepsense closed 9 months ago

iszulcdeepsense commented 9 months ago

Secret vars are now passed separately to a job apart from regular env vars so that they can be distinguished by a plugin and handled in a different way.

Infrastructure targets can now mount secret vars to a job regardless of environment variables. Secret variables are passed as a separate argument, they're no longer mixed with regular env vars. Infrastructure plugins have to be updated accordingly due to interface change. Specifically, deploy_job function of JobDeployer class now has a new argument runtime_secret_vars: Dict[str, str] with secret env vars for a job.