feat: add code-signing to PKI#5682
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Greptile SummaryThis PR introduces a complete code-signing subsystem for the cert-manager project type, including a Key issues found:
Confidence Score: 2/5
Important Files Changed
|
backend/src/services/approval-policy/code-signing/code-signing-policy-factory.ts
Outdated
Show resolved
Hide resolved
backend/src/services/approval-policy/code-signing/code-signing-policy-schemas.ts
Outdated
Show resolved
Hide resolved
backend/src/services/approval-policy/code-signing/code-signing-policy-schemas.ts
Outdated
Show resolved
Hide resolved
frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SigningOperationsTable.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/SignerDetailPage/components/SignerOverviewSection.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerModal.tsx
Outdated
Show resolved
Hide resolved
...manager/ApprovalsPage/components/CodeSigningPolicyTab/components/CodeSigningPolicySchema.tsx
Show resolved
Hide resolved
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 27411356 | Triggered | Generic Database Assignment | 8f6c6bc | backend/src/ee/services/pam-discovery/active-directory/active-directory-discovery-factory.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- 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
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 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.
Context
Adds code signing support to the cert-manager project type, allowing users to create signers backed by certificates with the codeSigning EKU and an approval policy. Signers can be enabled/disabled, and all signing operations require an active approval grant (supporting manual, time-window, and count-limited approval modes).
Screenshots
Steps to verify the change
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).