feat(nginx): block private key download #25
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sr2/ansible-collection-apps!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pgp-nginx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -105,2 +105,4 @@gzip_proxied any;}location /api/v1/integration/pgp/key_download/1 {Is the "1" referencing some ID, and would be "2" if two keys were uploaded?
Can we use an if statement matching on both the query param and the path rather than overriding the location block?
@ -107,0 +108,4 @@location /api/v1/integration/pgp/key_download/1 {if ($arg_secret) {return 403;} # Matches for presence of "secret" query paramtry_files $uri /; # Fallback to normal locationI think this won't fall back, we need the proxy directives, not looking for files.
Partially. This does fall back onto the
/location but it didn't carry the$uri, I needed to add it after the/.$uri /$uriwould work but"" /$uriis marginally more robust.This looks good and I tested it by manually implementing the change onto help.sr2.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.