Skip to content

Conversation

@ChristianPavilonis
Copy link
Collaborator

@ChristianPavilonis ChristianPavilonis commented Jan 6, 2026

Previously using hardcoded backend names, we later added port number to the dynamic backend names which broke the key rotation.

Now the fastly client will use the generated backend name.

closes #185

Copy link
Collaborator

@aram356 aram356 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good overall. I added small nitpicks to address.


Ok(Self {
api_key,
base_url: "https://api.fastly.com".to_string(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Use const for "https://api.fastly.com"

[local_server.secret_stores]
[[local_server.secret_stores.signing_keys]]
key = "ts-2025-01-01"
data = "NVnTYrw5xoyTJDOwoUWoPJO3A6UCCXOJJUzgGTxxx7k="
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Use placeholder in place actual key

```toml
[request_signing]
enabled = true
config_store_id = "r8loXvD9GESm5Crw5oyS16" # Your jwks_store ID
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Use placeholder in place actual store id

let secret_store = FastlySecretStore::new(store_name);
let api_key = secret_store.get(key_name)?;

log::info!("FastlyApiClient initialized with backend: {}", backend_name);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Could be debug

@aram356 aram356 assigned aram356 and ChristianPavilonis and unassigned aram356 Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request signing key rotation no longer works

3 participants