-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Copy link
Description
Summary
Store names are hardcoded as "jwks_store" / "signing_keys" in standalone functions but read from settings.request_signing in the admin endpoints. If config and hardcoded values diverge, signing produces keys the verifier cannot find, and key rotation writes to the wrong store.
Refs
crates/common/src/request_signing/signing.rsline 20 —FastlyConfigStore::new("jwks_store")hardcodedcrates/common/src/request_signing/signing.rsline 122 —FastlyConfigStore::new("jwks_store")hardcodedcrates/common/src/request_signing/signing.rsline 130 —FastlySecretStore::new("signing_keys")hardcodedcrates/common/src/request_signing/jwks.rsline 63 —FastlyConfigStore::new("jwks_store")hardcodedcrates/common/src/request_signing/rotation.rsline 44 —FastlyConfigStore::new("jwks_store")hardcoded, ignoresconfig_store_idconstructor argcrates/common/src/request_signing/endpoints.rsline 151 — readsconfig_store_id/secret_store_idfrom settings
Recommendation
Single source of truth — either always read store IDs from Settings and thread them through, or document + assert the hardcoded names match config.
Context
Production readiness audit — see #396
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels