Skip to content

Configure environment variables from secrets in applications #489

Answered by malta895
nicola88 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nicola88,
what you are asking for is feasible, and the marketplace documentation is actually incomplete, thank you!

You can do it in any marketplace item, regardless of the type (Application, Example, Template, Plugin).

The resources.services.defaultEnvironmentVariables should be added an object with "valueType": "secret"; here is an example:

{
          "name": "SOME_ENV",
          "valueType": "secret",
          "secretName": "someName",
          "secretKey": "secret.key"
}

The values have to be compiled as if they were inserted manually from the Console, following the indications of the page you linked.

In the meantime we will take care of updating the Marketplace documentation.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@malta895
Comment options

@nicola88
Comment options

nicola88 May 9, 2024
Collaborator Author

Answer selected by nicola88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Marketplace Anything related to Mia-Platform Marketplace catalogue
2 participants