Skip to content

Derive the default builder auth_data from the URL hostname - #17511

Open
syjn99 wants to merge 1 commit into
developfrom
fix/builder-auth-data-hostname
Open

syjn99 wants to merge 1 commit into
developfrom
fix/builder-auth-data-hostname

Conversation

@syjn99

@syjn99 syjn99 commented Sep 18, 2026

Copy link
Copy Markdown
Member

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Implements this spec change.

Which issue(s) does this PR fix?

N/A

Other notes for review

Note that using the current version of buildoor would probably have some trouble as buildoor is not yet updated (Nico already opened a PR for this). So I'd suggest to merge this PR after all open PRs are merged.

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have included a uniquely named changelog fragment file.
  • I have added a description with sufficient context for reviewers to understand this PR.
  • I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable).

@syjn99
syjn99 requested a review from a team as a code owner September 18, 2026 07:59

// Check punycode: host must be ASCII.
if strings.IndexFunc(host, func(r rune) bool { return r > unicode.MaxASCII }) >= 0 {
return errors.New("url hostname must be ASCII; encode internationalized names as punycode")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should it include the url?

// groups g1..g5=0 g6=ffff g7 g8
//
// so 192.0.2.1 (c0 00 02 01) gives g7=0xc000, g8=0x0201 -> "::ffff:c000:201".
b := addr.As16()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this be some kind of helper?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe not, I'm not sure whether we will use this logic in other places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants