Skip to content

Use session signing key to derive state signing key - #9579

Merged
taylorsilva merged 1 commit into
masterfrom
issue-9578
May 20, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
issue-9578

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

closes #9578

Previous key derivation method caused issues for operators where each web node got unique database credentials. This resulted in each web node having a different state signing key and users getting auth errors when they inevitably hit a different web node.

Using hkdf, we derive a state signing key 64 bytes in length from the already provided session signing RSA key. It's important to note that we're not using the RSA key as the state signing key; we are using it to derive a NEW key that will be used as the state signing key. Since all web nodes have to have the same session signing key, this ensures all web nodes derive the same state signing key.

This setup avoids us having to add another config option to Concourse and increasing operator complexity.

previous method caused issues for operators where each web node got
unique database credentials. This resulted in each web node having a
different state signing key and users getting auth errors when they
inevitably hit a different web node.

Using hkdf, we derive a state signing key 64 bytes in length from the
already provided session signing RSA key. It's important to note that
we're not using the RSA key as the state signing key; we are using it to
derive a NEW key that will be used as the state signing key. Since all
web nodes have to have the same session signing key, this ensures all
web nodes derive the same state signing key.

This setup avoids us having to add another config option to Concourse
and increasing operator complexity.

Signed-off-by: Taylor Silva <[email protected]>

This comment was marked as resolved.

@taylorsilva
taylorsilva merged commit 7571580 into master May 20, 2026
13 checks passed
@taylorsilva
taylorsilva deleted the issue-9578 branch May 20, 2026 15:52
@taylorsilva taylorsilva mentioned this pull request May 20, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth state signing key derivation breaks autoscaled web pools using dynamic database credentials

2 participants