Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables for application services #1053

Open
falexandrou opened this issue Dec 9, 2023 · 0 comments
Open

Environment variables for application services #1053

falexandrou opened this issue Dec 9, 2023 · 0 comments

Comments

@falexandrou
Copy link
Member

falexandrou commented Dec 9, 2023

We need to add the ability for the engine to look up environment variables and set them up as parameters or secrets in application services.

An environment variable in a service should address the following:

  • An environment variable with a hardcoded value (eg. PORT=4000)
  • An environment variable that proxies an environment variable from the host OS (eg. PORT=$STACKMATE_PORT)
  • An environment variable that is constructed based on values from other services (eg. DATABASE_URL=postgresql://<db user name>:<db password>@<db host name>/<db name>?schema=public

We need to:

  • Create placeholders for services
  • Expose the placeholders in JSON schema
  • Add a custom validator that validates placeholders in the config file
@falexandrou falexandrou self-assigned this Dec 9, 2023
@falexandrou falexandrou added this to the v0.4.0 milestone Dec 9, 2023
@falexandrou falexandrou changed the title Environment variables for application services Environment variables for services Feb 17, 2024
@falexandrou falexandrou changed the title Environment variables for services Environment variables for application services Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

1 participant