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

JS-359 Create rule S6418 (hardcoded-secrets): Hard-coded secrets are security-sensitive (broken) #4920

Merged
merged 37 commits into from
Nov 26, 2024

Conversation

kebetsi
Copy link
Contributor

@kebetsi kebetsi commented Nov 21, 2024

Based on the sonar-python S6418 rule.

RSPEC PR

JS-359

  • Create base Rspec
  • Create base files
  • Understand algorithm
  • Write test cases for hardcoded secrets
  • write hardcoded secrets rule
  • Rename S2068 to HardcodedPassword
  • Update ruling
  • Refine coding example in Rspec
  • handle the diff in parameter numbers

Other ticket tackling S2068

  • write test cases for hardcoded passwords
  • refactor hardcoded passwords rule

@kebetsi kebetsi changed the title JS-359 Create rule S6418 (hardcoded-secrets): secrets should not be hardcoded JS-359 Create rule S6418 (hardcoded-secrets): Hard-coded secrets are security-sensitive Nov 25, 2024
@kebetsi kebetsi marked this pull request as ready for review November 25, 2024 17:57
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks great overall, but there are a few things to address.

kebetsi and others added 5 commits November 26, 2024 09:06
Copy link
Contributor

Choose a reason for hiding this comment

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

Great job!

@kebetsi kebetsi changed the title JS-359 Create rule S6418 (hardcoded-secrets): Hard-coded secrets are security-sensitive JS-359 Create rule S6418 (hardcoded-secrets): Hard-coded secrets are security-sensitive (broken) Nov 26, 2024
@kebetsi kebetsi closed this Nov 26, 2024
@kebetsi kebetsi reopened this Nov 26, 2024
@kebetsi kebetsi closed this Nov 26, 2024
@kebetsi kebetsi reopened this Nov 26, 2024
@kebetsi kebetsi merged commit ffa208c into master Nov 26, 2024
19 of 20 checks passed
@kebetsi kebetsi deleted the JS-359-implement-S6418 branch November 26, 2024 15:23
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.

3 participants