Repository navigation
CI: stop printing the reset passphrase into the agent-guides job logs - #7603
Merged
Merged
Conversation
Since #7573 reset-password rotates the credential in place and prints the new passphrase to stdout, so these four steps were writing it unmasked into the job log and no longer produced the clean auth state their name implies. They never read .bootstrap_password (serve-unsloth-run.sh only parses the sk-unsloth key off the banner), so the wipe the other ten studio-* workflows already use is the right shape here too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
local-agent-guides-ci.ymlstarts each of its four server-under-test steps with:That was fine when
reset-passworddeletedauth.dband printed nothing butAuth database deleted.. Since #7573 it rotates the credential in place and prints the generated passphrase to stdout:There is no
::add-mask::on it, so the value lands unmasked in the job log. It is a throwaway credential on an ephemeral runner, so this is hygiene rather than an incident, but there is no reason for a password to be in a log at all.The second problem is that the step no longer does what its position implies. After a rotation
auth.dbsurvives,must_change_passwordis 0 and.bootstrap_passwordis gone, which is a used auth state, not a clean one.Fix
Swap the rotation for the wipe that the other ten
studio-*workflows already use:#7573 converted every workflow that reads
.bootstrap_passwordto this form and deliberately left these four alone because they do not read it. That was the right call for that PR's scope, but they still want a clean slate, so they should have moved too.Why this is safe
serve-unsloth-run.shhas zero references topassword,.bootstrap_passwordorreset-password. It waits for the banner and grepssk-unsloth-[A-Za-z0-9_-]+out of it, then::add-mask::s that key. Nothing in the step depends on the admin password.unsloth runmints its own API key in-process on every launch (_create_api_key_inprocessinunsloth_cli/commands/studio.py) and prints it on theAPI Key:line, so it is unaffected by the state ofauth.db.auth/removed, the backend re-seeds the admin row and a fresh.bootstrap_passwordat startup, which is the same path a first install takes.UNSLOTH_STUDIO_HOME, installs withbash install.sh --local --no-torch, and therefore lands on the default~/.unsloth/studio, matching what the other ten files hardcode.actionlintis clean on the file, before and after.This workflow lists itself under
paths:, so opening this PR runs all four jobs against the change.