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

refactor(gms auth): Remove base64 decoding of token service signing key #3747

Conversation

jjoyce0510
Copy link
Collaborator

Summary

The Token Service requires a 256-bit signing key. We had previously assumed this key would be a Base64'd string, but are changing that to relax the requirements for this signing key as UTF-8 string. After this change, anyone who has enabled Metadata Service Authentication which was released last week will need to regenerate their Personal Access Tokens.

Why do this? We want to be more flexible in the signing keys we accept to improve usability. We will handle the base64 encode and decode as required within the Token Service.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@github-actions
Copy link

Unit Test Results

     45 files  ±0       45 suites  ±0   41m 36s ⏱️ - 9m 14s
   638 tests ±0     586 ✔️ ±0  52 💤 ±0  0 ±0 
1 430 runs  ±0  1 362 ✔️ ±0  68 💤 ±0  0 ±0 

Results for commit fac693e. ± Comparison against base commit 2e2ed34.

Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM

@shirshanka shirshanka merged commit 1f53e0b into datahub-project:master Dec 15, 2021
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.

2 participants