mirror of
https://github.com/bpmforge/kryptkeeper.git
synced 2026-11-24 00:46:55 +00:00
e0d82a4ed0
First stable release. Notes: docs/release/RELEASE_NOTES_v1.0.0.md Lab record: docs/release/LIVE_RESULTS_v1.0.0.md
66 lines
3.2 KiB
Markdown
66 lines
3.2 KiB
Markdown
# Outbound egress and discovery limits
|
|
|
|
Operator-configured URLs are untrusted input. Three features make outbound
|
|
HTTP requests to them and share one guarded client (`internal/egress`):
|
|
|
|
| Feature | Findings |
|
|
|---|---|
|
|
| Notification webhooks (generic, Slack, PagerDuty) | SEMGREP-001 |
|
|
| Inventory sources (DigiCert, Sectigo, Entrust, GCP CAS, AWS PCA) | SEMGREP-002 |
|
|
| ACME upstream connector (health probe and issuance) | OWASP-A10-002 |
|
|
|
|
The guard checks the address actually dialled, after DNS resolution and on
|
|
every redirect hop:
|
|
|
|
- Always refused: link-local (169.254.0.0/16 incl. 169.254.169.254, fe80::/10),
|
|
0.0.0.0/8 and unspecified, multicast, loopback, and IPv4-mapped/NAT64 forms
|
|
of those.
|
|
- Allowed by default: RFC1918, ULA fc00::/7 and CGNAT 100.64.0.0/10 (internal
|
|
chat servers, vendor appliances, internal CAs).
|
|
- Redirects: at most 3, only to the same host. An inventory credential is a
|
|
custom header, which net/http would otherwise replay to a redirect target.
|
|
- Environment proxy settings are ignored.
|
|
|
|
## Switch
|
|
|
|
`KRYPTKEEPER_EGRESS_DENY_PRIVATE=true` also refuses private space for all
|
|
three features. Use it when the hub talks only to public SaaS. A webhook to an
|
|
internal host then fails with "destination blocked" in the delivery error.
|
|
|
|
## Why a test to 127.0.0.1 fails
|
|
|
|
Loopback (and link-local/metadata) is refused for every operator-configured
|
|
destination, and there is no allowlist or knob to permit it: the guard is not
|
|
relaxed for convenience. A delivery whose destination was refused shows the
|
|
reason on its row in Alerts (`failure_reason` in `GET /notifications/deliveries`),
|
|
and the SIEM test returns the same text. To test against a local sink, bind it
|
|
to a LAN address of the machine (private ranges are allowed unless
|
|
`KRYPTKEEPER_EGRESS_DENY_PRIVATE=true`).
|
|
|
|
## Discovery scans (OWASP-A10-003, A04-005)
|
|
|
|
`POST /api/v1/discovery/scans` returns 400 when the target is a literal IP or
|
|
CIDR inside the deny list, or when it expands to more than the cap
|
|
(addresses x ports per address).
|
|
|
|
| Variable | Default | Meaning |
|
|
|---|---|---|
|
|
| `KRYPTKEEPER_DISCOVERY_DENY_CIDRS` | empty | extra CIDRs/IPs, added to link-local (always denied) |
|
|
| `KRYPTKEEPER_DISCOVERY_MAX_TARGETS` | 65536 | per-scan expanded probe cap |
|
|
|
|
Hostnames are not resolved at creation time, so a name pointing into a denied
|
|
range is not caught by the deny list.
|
|
|
|
## Air-gap offline behaviour
|
|
|
|
With no route to the public internet (see [AIRGAP_INSTALL.md](AIRGAP_INSTALL.md)):
|
|
|
|
| Feature | Offline behaviour |
|
|
|---|---|
|
|
| Certificate Transparency monitor | Off unless `KRYPTKEEPER_CT_DOMAINS` is set; when set it queries crt.sh, so leave it unset in the gap |
|
|
| ACME upstream connector | Needs the configured upstream CA to be reachable from the hub; point it at an internal CA or do not enable it |
|
|
| Notification webhooks / inventory sources | Fail with a delivery error for public hosts; internal RFC1918 targets still work |
|
|
| Update checks | No update-check call was found in `internal/` or `cmd/`; upgrades happen only by importing a new bundle |
|
|
| Bundle signature verification | Offline by design (`--insecure-ignore-tlog=true`); no transparency-log lookup |
|
|
| OCSP / CRL | Served by the hub from its own CA state; no external lookup is configured here (verify against your deployed config) |
|