Skip to content

Fix ProcessManager::obscure to handle secrets starting with hyphens#9

Open
insign wants to merge 1 commit into
mainfrom
fix-obscure-hyphen-secrets-13519567738473871618
Open

Fix ProcessManager::obscure to handle secrets starting with hyphens#9
insign wants to merge 1 commit into
mainfrom
fix-obscure-hyphen-secrets-13519567738473871618

Conversation

@insign

@insign insign commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

The ProcessManager::obscure method uses the rclone obscure command to obscure secrets. If the user passes a password or secret that begins with a hyphen (e.g. -password), rclone obscure interprets this as a flag and fails. Adding -- prevents rclone from interpreting following arguments as flags.

This commit includes the fix in src/ProcessManager.php and adds a test case in tests/Unit/EdgeCasesTest.php to verify the fix works as expected.


PR created automatically by Jules for task 13519567738473871618 started by @insign

The `rclone obscure` command interprets secrets starting with a hyphen (like `-password`) as command flags, resulting in a fatal error. Adding `--` to the command arguments correctly forces the secret to be treated as a positional argument.

Co-authored-by: insign <1113045+insign@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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