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

feat(security): add approved rooms/users/domains as env variables #277

Merged

Conversation

luketainton
Copy link
Owner

@luketainton luketainton commented Aug 30, 2024

Resolves #276

@luketainton luketainton self-assigned this Aug 30, 2024
@luketainton
Copy link
Owner Author

Google Gemini AI Review

Decision: Reject
Change Score: 50%

  • Issue: Importing untested module

    • The code imports app.utils.helpers, but there are no tests for this module.
  • Issue: approved_users in tests

    • The test case for config contains the key approved_users, but this key is not present in the config class.
  • Issue: version in tests

    • The test case for config contains the key version, but this key is not present in the config class.
  • Issue: .env settings not used

    • The test.sh script loads .env instead of .env.test. Consequently, the test environment is not properly configured.
  • Issue: Pytest-related dependency missing

    • pytest-monkeypatch is required for testing, but it is not currently installed.

Suggestions:

  • Add tests for app.utils.helpers.
  • Remove approved_users and version from tests/test_config.py.
  • Update test.sh to load .env.test.
  • Install pytest-monkeypatch.

@luketainton luketainton added the enhancement New feature or request label Aug 30, 2024
Copy link

sonarcloud bot commented Aug 30, 2024

@luketainton luketainton merged commit b758d0d into main Aug 30, 2024
5 checks passed
@luketainton luketainton deleted the 276-add-approved-usersdomains-as-an-environment-variable branch August 30, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add approved users/domains as an environment variable
1 participant