Expose unauthenticated health probe #7
No reviewers
Labels
No labels
bug
codex
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quentinreytinas/borgmatic-api-nextcloud-aio!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/remove-sh-from-dangerous_commands-tzk1f3"
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?
Summary
/health/publicendpoint while keeping/healthauthenticated and returning 401 without tokensTesting
https://chatgpt.com/codex/tasks/task_e_69013228a6008332a17492cc7c2cab43
💡 Codex Review
github.com/quentinreytinas/borgmatic-api-nextcloud-aio@5c881641e4/borgmatic_api_app/docker.py (L76-L80)The new
blockedcomputation only flags commands when an argument exactly matches a string fromsettings.dangerous_commands. This means invoking/bin/rm,/usr/bin/curl, or/bin/bashwill no longer be rejected because none of the command tokens are equal to"rm","curl", or"bash". Previously the substring check caught those forms. Any whitelist entry that allows arbitrary commands but relies ondangerous_commandsas a safety net now permits destructive operations simply by calling the absolute path. Consider comparing each token’s basename or performing case-insensitive substring checks so/bin/rmand similar variants remain blocked.ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".