Skip to content

Conversation

halmartin
Copy link

@halmartin halmartin commented Jun 16, 2025

This patch extends the nebula-cert command to support reading the CA passphrase from the environment variable CA_PASSPHRASE.

Currently nebula-cert requires an interactive session to obtain the CA passphrase. This presents a challenge for automation tools like ansible. With this change, ansible can store the CA passphrase in a vault and supply it to nebula-cert via the CA_PASSPHRASE environment variable for non-interactive signing.

This allows the user to preserve the security of the CA certificate by encrypting it at rest (#386) while also enabling the use of automation tools that can securely store and provide the CA password to automate certificate signing operations.

Let me know if there are any technical or stylistic issues with this PR and I'll try my best to fix them :)

This patch extends the `nebula-cert` command to support reading
the CA passphrase from the environment variable `CA_PASSPHRASE`.

Currently `nebula-cert` depends in an interactive session to obtain
the CA passphrase. This presents a challenge for automation tools like
ansible. With this change, ansible can store the CA passphrase in a
vault and supply it to `nebula-cert` via the `CA_PASSPHRASE`
environment variable for non-interactive signing.

Signed-off-by: Hal Martin <[email protected]>
Copy link

Thanks for the contribution! Before we can merge this, we need @halmartin to sign the Salesforce Inc. Contributor License Agreement.

@halmartin
Copy link
Author

I'm not sure why the status of this hasn't updated, but I have already signed the CLA:

You already signed the CLA on 2025-06-16

@nbrownus nbrownus closed this Jul 2, 2025
@nbrownus nbrownus reopened this Jul 2, 2025
@JackDoan JackDoan added this to the v1.10.0 milestone Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants