Skip to content

changes to fix CodeQL analyze security alerts #6

Merged
merged 2 commits into from
Dec 13, 2021
Merged

changes to fix CodeQL analyze security alerts #6

merged 2 commits into from
Dec 13, 2021

Conversation

jagobagascon
Copy link

This change:

  • generates RSA key pairs programatically instead of hard-coding them in the test itself.
  • replaces the Math.random function with crypto.getRandomValues

The changes should remove all security alerts.

Hard-coded keys were secure because they were only used inside a test.
However the CodeQL analyze tool was complaining about it so this change
should stop that.
The CodeQL analyze tool was complaining about using a cryptographically
insecure random value in a security context. This change should stop
that.
@Xopek Xopek merged commit dd18daf into Tinkoff:auth-grant-type-jwt-bearer Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants