We have been using Pulumi for quite a while now an...
# general
s
We have been using Pulumi for quite a while now and everything is working fine. However I am running into the issue that for developers setting secrets with the pulumi CLI is something the forget or not know. Of course I can educate them but in the past they could just add a secret through the aws webinterface. Is Pulumi esc the solution for us? We use Pulumi to fill the parameter store and our backend apps get the secrets from there on runtime.
Follow up question about this. Do I have to enumerate every secret in the YAML upfront if I use the 1password connection. That still means double work on the administrative side. (add a secret to 1p, add it to the pulumi esc yaml, then use it in Pulumi). I was hoping that this integration would be done in a way that you gave pulumi esc access to a vault and then you can just dynamically use secrets in the pulumi code.
s
So instead of something like
Copy code
get:
          email_section_example:
            ref: "<op://Management/PagerDuty/Admin/email>"
You'd want to be able to specify a wildcard? If so, it's not clear how the mapping of names would work, given that you have to map a path in 1Password (
Management/PagerDuty/Admin/email
) to a single name of a secret (
email_section_example
).
You can file a feature request if you're interested in that functionality: https://github.com/pulumi/esc/issues/
s
The idea would be that instead of something like:
Copy code
get:
          email_section_example:
            ref: "<op://Management/PagerDuty/Admin/email>"
We would do something like this (note I just came up with this on the spot):
Copy code
values:
  aws_vault:
    fn::op.vault:
      reference: "<op://AWS/>"
Copy code
const config = new pulumi.Config()

const awsVault = config.requireSecretObject('aws_vault')

const pulumiCredential = awsVault.apply(v => v['xxx']['credential'])
const awsUsername      = awsVault.apply(v => v['yyy']['username'])
const awsPassword      = awsVault.apply(v => v['zzz']['password'])
But to be honest yesterday I achieved my goals using the 1password nodesdk instead. Which works perfect for our wanted userflow so right now I think we don't need Pulumi ESC after all.