Skip to content

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

Merged
lablans merged 1 commit into
developfrom
dev-pki-reuse-key
May 27, 2026
Merged

Fix CI/CD: Reuse existing proxy key when re-enrolling in dev PKI#260
lablans merged 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
@lablans lablans merged commit 0d48a41 into develop May 27, 2026
31 of 37 checks passed
@lablans lablans deleted the dev-pki-reuse-key branch May 27, 2026 18:53
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