Skip to content

Request Affinity key decryption failures #1924

Answered by Tratcher
pinkfloydx33 asked this question in Q&A
Discussion options

You must be logged in to vote

There are a few possible causes for this:

  • Are you running multiple instances of YARP, maybe behind an L4 TCP load balancer? In that case you'd have to make sure to use shared DataProtection keys across instances
  • Are the keys being saved somewhere outside the container? If not, the keys will be reset on app restart, causing this error for any existing session cookie.

The fix for both cases is to configure AddDataProtection to store keys outside of the container in a central location.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
1 reply
@pinkfloydx33
Comment options

Answer selected by MihaZupan
Comment options

You must be logged in to vote
11 replies
@eyalg-msft
Comment options

@davidfowl
Comment options

@Tratcher
Comment options

@Tratcher
Comment options

@Tratcher
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants