feature: add PKI Network Discovery#5428
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 introduces PKI Network Discovery: new DB tables for discovery configs, installations, linking, and scan history; new backend EE services/DAL/routes to manage discovery jobs and PKI installation entities; and frontend UI/API hooks plus docs to expose the feature. Main issue found in the current diff is in the DB migration rollback path: Confidence Score: 3/5
Important Files Changed
|
|
@greptile, re-review this PR with the context of my previous responses to your comments, and update the Overview and Summar |
backend/src/db/migrations/20260205012343_add-pki-discovery-tables.ts
Outdated
Show resolved
Hide resolved
backend/src/db/migrations/20260205012343_add-pki-discovery-tables.ts
Outdated
Show resolved
Hide resolved
backend/src/db/migrations/20260205012343_add-pki-discovery-tables.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-certificate-installation-cert-dal.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-certificate-installation-cert-dal.ts
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-certificate-installation-dal.ts
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-certificate-installation-dal.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-certificate-installation-dal.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-discovery-config-dal.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-discovery-scan-fns.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-discovery-scan-fns.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-discovery-scan-fns.ts
Outdated
Show resolved
Hide resolved
backend/src/ee/services/pki-discovery/pki-discovery-scan-fns.ts
Outdated
Show resolved
Hide resolved
docs/api-reference/endpoints/pki-installations/list-by-certificate.mdx
Outdated
Show resolved
Hide resolved
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 9387833 | Triggered | Generic Password | 5225490 | docker-compose.dev.yml | 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
This PR adds the PKI Network Discovery feature, enabling users to scan their network infrastructure (IP ranges, CIDR blocks, and domains) to automatically discover TLS certificates deployed across endpoints. Discovery jobs can be configured with target IPs/domains and ports, triggered manually or scheduled for recurring scans, and results are stored as certificate installations with imported certificates from them.
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).