Skip to content

feat(pki): manage imported certificates by attaching a certificate profile - #7961

Merged
carlosmonastyrski merged 9 commits into
mainfrom
PKI-396
Sep 10, 2026
Merged

carlosmonastyrski merged 9 commits into
mainfrom
PKI-396

Conversation

@carlosmonastyrski

Copy link
Copy Markdown
Contributor

Context

Imported certificates had no certificate authority attached, so renewal, reissue and revocation all failed on them. You can now pick a certificate profile while importing into an Application.

The profile determines which authority signs the replacement when the certificate is renewed, and that is all Infisical needs to run the rest of the lifecycle.

Internal and self-signed profiles need nothing else. A DigiCert profile also asks for the CertCentral order ID, which you pick from a live list of that CA's orders instead of typing a number, and Infisical confirms the order really belongs to the certificate before linking it.

Revoking is refused when the profile's authority did not issue the certificate, because revocation only takes effect through the issuing authority.

Screenshots

Steps to verify the change

Type

  • Fix
  • Feature
  • Improvement
  • Breaking
  • Docs
  • Chore

Checklist

  • Title follows the conventional commit format: type(scope): short description (scope is optional, e.g., fix: prevent crash on sync or fix(api): handle null response).
  • Tested locally
  • Updated docs (if needed)
  • Updated CLAUDE.md files (if needed)
  • Read the contributing guide

@linear

linear Bot commented Sep 3, 2026

Copy link
Copy Markdown

PKI-396

@mintlify

mintlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
infisical 🟢 Ready View Preview Sep 10, 2026, 6:46 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-infisical-7961-feat-pki-manage-imported-certificates-by-attaching-a-ce

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

@greptile-apps

greptile-apps Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR lets imported certificates attach to certificate profiles, validates DigiCert order ownership, and enables subsequent renewal and revocation workflows.

  • Persists profile, authority, source, and external-provider metadata during certificate import.
  • Adds DigiCert order pagination, selection, and certificate-matching validation.
  • Exposes provider references and revocation actions in the certificate UI.
  • Documents lifecycle management for imported certificates.

Confidence Score: 4/5

The PR should not merge until the import selector can expose every profile attached to an Application; the documentation hierarchy issue is non-blocking.

Applications with more than 100 attached profiles receive only one profile page in the new import selector, preventing valid profiles outside that page from being selected.

Files Needing Attention: frontend/src/pages/cert-manager/CertificatesPage/components/CertificateImportProfileFields.tsx; docs/documentation/platform/pki/applications/certificates.mdx

Important Files Changed

Filename Overview
backend/src/services/certificate/certificate-service.ts Adds permission-checked profile linkage, provider metadata validation, imported-certificate persistence, and issuer verification for revocation.
backend/src/services/certificate-authority/digicert/digicert-certificate-authority-fns.ts Adds DigiCert order ownership and certificate-serial validation before an imported certificate is linked.
backend/src/services/app-connection/digicert/digicert-connection-fns.ts Adds capped, logged pagination for DigiCert order listings.
frontend/src/pages/cert-manager/CertificatesPage/components/CertificateImportProfileFields.tsx Adds profile and provider-reference selectors, but the profile selector silently omits attached profiles after the first 100.
frontend/src/pages/cert-manager/CertificatesPage/components/CertificateImportModal.tsx Integrates optional profile and provider metadata into PEM certificate imports.
docs/documentation/platform/pki/applications/certificates.mdx Documents imported-certificate lifecycle behavior, but the expanded section violates the required Mintlify heading hierarchy.

Reviews (1): Last reviewed commit: "feat(pki): manage imported certificates ..." | Re-trigger Greptile

Comment thread docs/documentation/platform/pki/applications/certificates.mdx
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Storybook preview

📚 Open Storybook

🔍 View Chromatic build details

Updated for fd192bf.

@veria-ai

veria-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Security review

No open security issues remain on this pull request.

Fixed/addressed: 5 · PR risk: 0/10

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

Copy link
Copy Markdown

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: 6ac348b527

ℹ️ 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 backend/src/services/certificate/certificate-service.ts
Comment thread backend/src/services/certificate/certificate-service.ts Outdated
Comment thread backend/src/services/certificate/certificate-service.ts Outdated
Comment thread docs/documentation/platform/pki/applications/certificates.mdx Outdated
Comment thread docs/documentation/platform/pki/applications/certificates.mdx Outdated
Comment thread backend/src/services/certificate/certificate-service.ts Outdated
Comment thread backend/src/services/certificate/certificate-service.ts Outdated
Comment thread backend/src/lib/api-docs/constants.ts
Comment thread backend/src/lib/api-docs/constants.ts
Comment thread backend/src/services/certificate/certificate-service.ts
# Conflicts:
#	backend/src/services/certificate/certificate-service.ts
@gitguardian

gitguardian Bot commented Sep 10, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 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
36888793 Triggered Username Password 2227995 backend/src/ee/services/pam-account/pam-account-schemas.test.ts View secret
36605363 Triggered Username Password 2227995 backend/src/ee/services/pam-account-heartbeat/pam-account-heartbeat-service.test.ts 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.

Comment thread backend/src/services/certificate/certificate-service.ts Outdated
@carlosmonastyrski
carlosmonastyrski merged commit 36323ca into main Sep 10, 2026
21 of 22 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