Skip to content

Fix CI/CD: Reuse existing proxy key when re-enrolling in dev PKI#260

Open
lablans wants to merge 1 commit into
developfrom
dev-pki-reuse-key
Open

Fix CI/CD: Reuse existing proxy key when re-enrolling in dev PKI#260
lablans wants to merge 1 commit into
developfrom
dev-pki-reuse-key

Conversation

@lablans
Copy link
Copy Markdown
Member

@lablans lablans commented May 26, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the dev PKI enrollment script to avoid rotating a proxy’s private key when the same proxy is enrolled multiple times, preventing mismatches where senders encrypt to a key the proxy no longer has.

Changes:

  • Reuse an existing ${application}.priv.pem key on re-enrollment when it is present and parseable by OpenSSL.
  • Fall back to generating a fresh RSA keypair only when no valid key exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dev/pki/pki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants