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

PatchWork AutoFix #4

Open
wants to merge 4 commits into
base: llama3-8b
Choose a base branch
from
Open

PatchWork AutoFix #4

wants to merge 4 commits into from

Conversation

CTY-git
Copy link

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

This pull request from patched fixes 4 issues.


  • File changed: docker-compose.yml
    (docker-compose.yml:1:24)[https://github.com/PatchWork AutoFix #4/files#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3L1-L24] Added 'security_opt' to the redis service to prevent privilege escalation and set 'read_only' to true.

Copy link

sonarcloud bot commented May 7, 2024

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 scrypt(password.encode('utf-8')).encode(hex=True) == self.pwd_hash

Check failure

Code scanning / SonarCloud

Password hashing functions should use an unpredictable salt High

Add an unpredictable salt value to this hash. See more on SonarCloud
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.

1 participant