fix: fixes and improvements on PKI CAs#5024
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 OverviewGreptile SummaryThis PR refactors PKI certificate authority management to support deferred certificate generation. Root CAs can now be created without certificates and have certificates generated later through a new centralized endpoint. Key Changes
Issues Found
Confidence Score: 2/5
Important Files ChangedFile Analysis
|
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Outdated
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Outdated
Show resolved
Hide resolved
frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaGenerateRootCertModal.tsx
Show resolved
Hide resolved
frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaGenerateRootCertModal.tsx
Outdated
Show resolved
Hide resolved
.../src/server/routes/v1/certificate-authority-routers/internal-certificate-authority-router.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Show resolved
Hide resolved
backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
Outdated
Show resolved
Hide resolved
backend/src/services/certificate-template-v2/certificate-template-v2-schemas.ts
Outdated
Show resolved
Hide resolved
frontend/src/pages/project/RoleDetailsBySlugPage/components/ProjectRoleModifySection.utils.tsx
Outdated
Show resolved
Hide resolved
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 9387833 | Triggered | Generic Password | 0d89d70 | backend/bdd/features/environment.py | View secret |
| 8529478 | Triggered | Generic High Entropy Secret | 0d89d70 | .env.dev.example | 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 secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- 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
This PR contains some fixes and improvements on PKI Certificate Authorities managment:
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).