Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow older user tokens to succesfully authenticate #1844

Merged
merged 3 commits into from
Sep 13, 2024
Merged

allow older user tokens to succesfully authenticate #1844

merged 3 commits into from
Sep 13, 2024

Conversation

mwrock
Copy link
Contributor

@mwrock mwrock commented Sep 12, 2024

This add some tracing code that helped to troubleshoot and identify the underlying cause of 401s authenticating to builder with generated user tokens.

From the comments:
// Prior to the chronos update 4 months ago this is the max timestamp used for user tokens
// We have succesfully parsed this value via the call to Utc.timestamp_opt above for years
// Yesterday (2024-09-12), this value became out of bounds and yields a 401 trying to auth
// Right now we have no idea why and some day perhaps we will all laugh around the fire as
// we remember this bug and how trivial it truly was. Today no one is laughing. I hope there
// will be a better fix than this in the near future but this will allow the many keys currently
// out in the wild with this value to authenticate.

That sadly is close to all I know right now.

… errors

Signed-off-by: Matt Wrock <matt@mattwrock.com>
Signed-off-by: Matt Wrock <matt@mattwrock.com>
@mwrock mwrock changed the title add tracing code to middleware authentication for troubleshooting 401 errors allow older user tokens to succesfully authenticate Sep 13, 2024
Signed-off-by: Matt Wrock <matt@mattwrock.com>
@mwrock mwrock merged commit e86ab75 into main Sep 13, 2024
7 checks passed
@mwrock mwrock deleted the tracing branch September 13, 2024 16:27
chef-expeditor bot pushed a commit that referenced this pull request Sep 13, 2024
Obvious fix; these changes are the result of automation not creative thinking.
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.

1 participant