This message was deleted.
# python
s
This message was deleted.
l
@powerful-lighter-63321 in
gitlab:token
, the first part is the namespace. When you want to read the
token
secret in your code, you create a
Config
object on the correct namespace first:
Copy code
gitlabConfig = pulumi.Config("gitlab")
gitlab_password = gitlabConfig.require_secret("token")
Side note:
gitlab::token
(2 colons) is not valid. It should be
gitlab:token
(1 colon).
p
Thanks for your help. It works, but after trying it, I decided to avoid the whole pulumi-secret part for me. I'll go with the environment-variables. I can use them within the "normal" and in the "pulumi" code. Which is obviously a benefit. I see the advantages with the "apply" stuff, but in case of the "secrets" and "configs" they're definitively a huge burden. So to keep code simple.. I use Environment variables. 😄