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

Fix safety warnings #5837

Merged
merged 2 commits into from
Mar 2, 2021
Merged

Fix safety warnings #5837

merged 2 commits into from
Mar 2, 2021

Conversation

rmol
Copy link
Contributor

@rmol rmol commented Mar 2, 2021

Status

Ready for review

Description of Changes

Fixes #5836.

Updates Jinja2 to 2.11.3. Ignores some other safety warnings (rationale in #5836 and in the commit message).

Testing

  • Ci is green.
  • The hashes of the tarballs in the requirements files match PyPI (2.10.1, 2.11.3) and the diff review.
  • make build-debs and make build-debs-focal produce securedrop-app-code packages containing Jinja2 2.11.3.

Deployment

Updates Jinja2 in the admin tooling and securedrop-app-code package.

Checklist

If you made changes to the server application code:

  • Linting (make lint) and tests (make test) pass in the development container

If you made changes to securedrop-admin:

  • Linting and tests (make -C admin test) pass in the admin development container

If you made non-trivial code changes:

  • I have written a test plan and validated it for this PR

Choose one of the following:

  • I have opened a PR in the docs repo for these changes, or will do so later
  • I would appreciate help with the documentation
  • These changes do not require documentation

If you added or updated a code dependency:

Choose one of the following:

rmol added 2 commits March 2, 2021 13:21
- 39606: cryptography, update overflow. We're not passing large enough
chunks to update to trigger the bug.

- 39611: pyyaml, code execution via untrusted YAML. We're not using
pyyaml in a production capacity except in the admin tooling, which is
using trusted YAML.

- 39621: pylint, denial of service via inefficient regex. We're only
using pylint in development, on our own code.
@zenmonkeykstop zenmonkeykstop self-assigned this Mar 2, 2021
Copy link
Contributor

@zenmonkeykstop zenmonkeykstop left a comment

Choose a reason for hiding this comment

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

  • Ci is green.
  • The hashes of the tarballs in the requirements files match PyPI (2.10.1, 2.11.3) and the diff review.
  • make build-debs and make build-debs-focal produce securedrop-app-code packages containing Jinja2 2.11.3.

LGTM based on checklist.

@zenmonkeykstop zenmonkeykstop merged commit 6e4676b into develop Mar 2, 2021
@rmol rmol deleted the fix-safety-warnings branch June 23, 2021 14:01
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.

Update dependencies for CI/safety failure
2 participants