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

Secure API key comparison #2820

Closed
wants to merge 1 commit into from

Conversation

Avlyssna
Copy link

Description

Change authorization service to utilize "hmac.compare_digest" instead of "==" when checking API keys. This improves Caldera's resistance to timing attacks.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

N/A

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

- Change authorization service to utilize "hmac.compare_digest" instead of "=="
@elegantmoose
Copy link
Contributor

Addresses #2819

@elegantmoose elegantmoose mentioned this pull request Sep 26, 2023
8 tasks
@elegantmoose
Copy link
Contributor

Addressed with #2823. Thank you @Avlyssna !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants