Skip to content

Conversation

@jolyndenning
Copy link
Contributor

When a browser is not installed, URLs for logging in and publishing are printed to the console. Since #8529, those URLs are now redacted, which is a breaking behavior.

The implementation in this pull request allows for any code going through proc-log to skip redaction of the message

References

Fixes #8575

@jolyndenning jolyndenning requested a review from a team as a code owner September 22, 2025 06:03
@jolyndenning jolyndenning changed the title Skip redacting URLs printed to console when browser not available fix: skip redacting URLs printed to console when browser not available Sep 22, 2025
Copy link
Contributor

@owlstronaut owlstronaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll want a test specifically for the skipRedact flag working as well.

This is a great contribution, definitely moving in the right direction in fixing this oversight.

const skipRedact = args.length > 0 ? args[args.length - 1]?.skipRedact : false
if (skipRedact) {
args = args.slice(0, args.length - 1)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jolyndenning this feels fragile to me. I think we should be able to use the established META pattern - see withMeta. We should be able to avoid this argument parsing

@wraithgar
Copy link
Member

META implementation at #8614

@wraithgar wraithgar closed this Sep 30, 2025
wraithgar added a commit that referenced this pull request Sep 30, 2025
Login urls have tokens in them and need to be shown to the user on
stdout, especially if they have no browser and need to copy/paste.

This builds off of #8587 and changes things to use proc-log's META
notation, which is how this kind of info is sent.

---------

Co-authored-by: Jolyn <jolyndenning@gmail.com>
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.

[BUG] login does not work without a browser

3 participants