You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Harden DCR resolver against SSRF when operator trust boundary changes #5135
DCRUpstreamConfig.DiscoveryURL and DCRUpstreamConfig.RegistrationEndpoint are operator-supplied URLs validated only for HTTPS-or-loopback. There is no allowlist or RFC1918 / link-local / metadata-service guard. The resolveDCRCredentials resolver issues outbound requests to whatever the operator configures — possibly with the RFC 7591 initial access token attached.
Today the operator role is fully trusted, so this is acceptable. The runtime trust assumption is now documented on DCRUpstreamConfig itself (see pkg/authserver/config.go).
When this becomes a problem
If the trust boundary ever changes — e.g.:
A multi-tenant operator deployment where a tenant role can populate DCRConfig.
Federated CRD authoring across less-trusted namespaces.
A future surface that lets less-privileged roles supply DCR fields.
…then the resolver becomes a confused-deputy: an attacker who can write to the field can coerce the authserver into making outbound requests to internal addresses (cloud-provider metadata services, RFC1918 ranges, link-local 169.254.169.254, etc.), with the bearer token attached.
Activity
Address remaining PR #5042 review feedback
Address remaining PR #5042 review feedback
Add authserver DCR credential store and resolver (#5042)