Skip to content

Conversation

@CTY-git
Copy link

@CTY-git CTY-git commented May 28, 2024

This pull request from patched fixes 3 issues.


  • File changed: docker-compose.yml
    Fix: Harden redis service configuration Added security hardening configurations to the 'redis' service. It now includes 'no-new-privileges: true' to prevent privilege escalation via setuid or setgid binaries. Additionally, 'read_only: true' is added to make the redis service's root filesystem read-only, enhancing security by preventing arbitrary file write access.

@patched-admin patched-admin force-pushed the autofix-gemini-1.5-pro-latest branch from 47d403f to b0c09fa Compare May 28, 2024 08:37
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
D Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint


def check_password(self, password: str):
return self.pwd_hash == md5(password.encode('utf-8')).hexdigest()
return self.pwd_hash == scrypt(password.encode('utf-8'), salt=b'some_salt', n=16384, r=8, p=1).hex()

Check failure

Code scanning / SonarCloud

Password hashing functions should use an unpredictable salt

<!--SONAR_ISSUE_KEY:AY--WdchqFhDJJReyR4m-->Make this salt unpredictable. <p>See more on <a href="https://sonarcloud.io/project/issues?id=patched-codes_dvpwa&issues=AY--WdchqFhDJJReyR4m&open=AY--WdchqFhDJJReyR4m&pullRequest=9">SonarCloud</a></p>
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