Skip to content

sec(starship): gate drconfig prompt segment on work flag - #176

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
droid/ghi175-starship-drconfig-optin
Open

sec(starship): gate drconfig prompt segment on work flag#176
github-actions[bot] wants to merge 1 commit into
mainfrom
droid/ghi175-starship-drconfig-optin

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated fix attempt

This PR was generated by the droid-issue-fixer GitHub Action, which runs droid exec headlessly to attempt an open issue.

Closes #175

Droid exec summary

Gated the Starship custom.drconfig prompt segment on the chezmoi work data flag so it only renders on work machines.

The segment previously ran whenever ~/.config/datarobot/drconfig.yaml existed and yq was installed, which leaked internal DataRobot endpoint hostnames through screenshots, screen sharing, or recorded terminal sessions on any machine with that file. Now the segment sets disabled = true on non-work machines and disabled = false only when .work is true. The existing SECURITY NOTE is updated to document the new gating behavior.

Validated by rendering the template with both work = false and work = true configs using chezmoi execute-template; both outputs parse as valid TOML.

Closes #175

The Starship custom.drconfig segment rendered the DataRobot endpoint

hostname whenever ~/.config/datarobot/drconfig.yaml existed. This leaked

internal infrastructure hostnames through screenshots, screen sharing,

or recorded terminal sessions on any machine that happened to have the

file, not just work machines.

Gate the segment on the chezmoi work data flag so it is disabled by

default on non-work machines and only renders when .work is true. The

SECURITY NOTE is updated to document the new gating behavior.

Closes #175
@github-actions github-actions Bot added the droid PR generated by droid-issue-fixer action label Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

droid PR generated by droid-issue-fixer action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security review findings — 2026-09-09

1 participant