Skip to content

feat: support fetching imported certificates in cert-agent#198

Merged
carlosmonastyrski merged 5 commits into
mainfrom
feat/PKI-188
Apr 29, 2026
Merged

feat: support fetching imported certificates in cert-agent#198
carlosmonastyrski merged 5 commits into
mainfrom
feat/PKI-188

Conversation

@carlosmonastyrski
Copy link
Copy Markdown
Contributor

Description 📣

Adds support in the certificate agent for fetching an existing certificate by ID and writing the cert, chain, and private key in the desired destinations instead of always issuing a new certificate from a profile.
A new imported-certificate-id config field selects this mode and skips the issuance flow entirely, periodic status checks still run so revocation and expiry are detected, but renewal is left to whatever issued the cert externally. When the imported certificate has no private key (e.g. ACME-issued), the agent logs a warning if a private-key path is configured and otherwise stays quiet.

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

# Here's some code block to paste some code snippets

@linear
Copy link
Copy Markdown

linear Bot commented Apr 28, 2026

@infisical-review-police
Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cli-198-feat-support-fetching-imported-certificates-in-cert-agent

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73ebb0e57d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/cmd/agent.go
Comment thread packages/cmd/agent.go Outdated
@bernie-g
Copy link
Copy Markdown
Contributor

@claude review once

Comment thread packages/cmd/agent.go
Comment thread packages/cmd/agent.go
@gitguardian
Copy link
Copy Markdown

gitguardian Bot commented Apr 29, 2026

⚠️ GitGuardian has uncovered 3 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
32113716 Triggered Generic Password 8afc37d dev/pam/resources/mssql/entrypoint.sh View secret
32113717 Triggered Generic Password 8afc37d dev/pam/resources/mongodb/init/seed.js View secret
32113718 Triggered Username Password 8afc37d dev/pam/setup.sh View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Copy link
Copy Markdown
Contributor

@bernie-g bernie-g left a comment

Choose a reason for hiding this comment

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

Tested this and seems to work. Could be worth putting this in the docs as well.

Comment thread packages/api/api.go
@carlosmonastyrski carlosmonastyrski merged commit d11ce4b into main Apr 29, 2026
14 checks passed
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.

2 participants