GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 10:33:00 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧

    Go / Unicode folks: any idea what character set does the IDNA2008 implementation in Go with StrictDomainName=false actually accepts?
    https://github.com/golang/go/issues/76804

    In conversation about 4 months ago from mastodon.social permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
      x/net/idna: no documentation for what `StrictDomainName=false` ruleset accepts · Issue #76804 · golang/go
      Go version go version go1.25.1 linux/amd64 Output of go env in your module/workspace: AR='ar' CC='gcc' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_ENABLED='1' CGO_FFLAGS='-O2 -g' ...
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 10:47:03 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to

      so apparently with StrictDomainName=false (which is only documented to accept `_` and some other unspecified characters), Go's IDNA library happily accepts `*.foo.bar` as a valid domain name

      what.

      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 10:47:11 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to

      this is such a baffling, unexpected design choice coupled with completely unaccepable documentation choices https://go.dev/play/p/lL9qtinh8Qh

      In conversation about 4 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: go.dev
        Go Playground - The Go Programming Language
      Rich Felker repeated this.
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 11:28:11 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to

      upsetting https://codeberg.org/git-pages/git-pages/commit/c88d04c71b4e44d2412d55f98d16abefb05b1977

      In conversation about 4 months ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Cookie monster!
    • Embed this notice
      Rich Felker (dalias@hachyderm.io)'s status on Friday, 12-Dec-2025 11:39:18 JST Rich Felker Rich Felker
      in reply to

      @whitequark Seems like they should have better thought out what usernames to allow if they wanted to use usernames as subdomains...

      In conversation about 4 months ago permalink
    • Embed this notice
      Glyph (glyph@mastodon.social)'s status on Friday, 12-Dec-2025 11:42:04 JST Glyph Glyph
      in reply to

      @whitequark I know enough about this to feel an acute sympathetic pain but not nearly enough to actually answer your question, I'm sorry :(

      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 11:43:10 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • Glyph

      @glyph yeah this is uh. basically what i'd expect

      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 11:43:31 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • Rich Felker

      @dalias forgejo used to allow dots in usernames too (not anymore)

      so... yeah

      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 11:58:43 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • shironeko

      @shironeko don't think so; StrictDomainName=false allows underscores (which is the only documented allowed character), which are _not_ valid in TLS certs

      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 11:58:44 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • shironeko

      @shironeko i feed it into the "TLS certificate allowed y/n" endpoint, and i was not prepared for *.foo.bar to be accepted

      In conversation about 4 months ago permalink
    • Embed this notice
      shironeko (shironeko@fedi.tesaguri.club)'s status on Friday, 12-Dec-2025 11:58:44 JST shironeko shironeko
      in reply to
      @whitequark StrictDomainName sounds like something you would want for certificates
      In conversation about 4 months ago permalink
    • Embed this notice
      shironeko (shironeko@fedi.tesaguri.club)'s status on Friday, 12-Dec-2025 11:58:45 JST shironeko shironeko
      in reply to
      @whitequark in what scenario would it cause security problems?
      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 12:23:04 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • shironeko

      @shironeko oh yeah =true is intended for domain registrars, TLS cert issuers and such

      you do have to special-case * however, which the Go library doesn't let you do either!

      In conversation about 4 months ago permalink
    • Embed this notice
      shironeko (shironeko@fedi.tesaguri.club)'s status on Friday, 12-Dec-2025 12:23:05 JST shironeko shironeko
      in reply to
      @whitequark yeah I mean =true better safe than sorry right?
      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 12:37:47 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • Tony Finch

      @fanf do you have a good way to check the hostname-with-underscore syntax? just a regex?

      In conversation about 4 months ago permalink
    • Embed this notice
      Tony Finch (fanf@mendeddrum.org)'s status on Friday, 12-Dec-2025 12:37:48 JST Tony Finch Tony Finch
      in reply to

      @whitequark yeah idna is difficult

      i think the key sentence is “This option corresponds to the UseSTD3ASCIIRules flag in UTS #46.” and in tr46 that flag basically enables or disables all hostname syntax checks, hence allowing * and everything else i bet

      the approach i would take is to do idna conversion with UseSTD3ASCIIRules=false then check that the resulting punycode obeys the relaxed hostname-with-underscore syntax

      on the basis that idna is designed so that it works when trad syntax is enforced by various lower layers

      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 12:54:54 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to

      @fanf I looked for recommendations and the recommended way to check a hostname was... IDNA

      In conversation about 4 months ago permalink
    • Embed this notice
      Tony Finch (fanf@mendeddrum.org)'s status on Friday, 12-Dec-2025 12:54:55 JST Tony Finch Tony Finch
      in reply to

      @whitequark good question

      i dunno the go libraries well enough, but i’d probably look around to see if there’s existing an existing hostname checker i could clone and hack

      but a regex would do if i didn’t find code i like (i have used them in the past for this, but without _, heh)

      one tricky thing is hostnames have per-label length limits which a regex can handle ok, but also an overall length limit which is probably best done as a separate check

      oh wait, the tr46 algorithm includes length checks already!

      so it might be reasonable to just check [a-z0-9._-]+

      (sorry that turned into a ramble)

      In conversation about 4 months ago permalink
    • Embed this notice
      ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Friday, 12-Dec-2025 13:04:39 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
      in reply to
      • Tony Finch

      @fanf Hm I could use that

      In conversation about 4 months ago permalink
    • Embed this notice
      Tony Finch (fanf@mendeddrum.org)'s status on Friday, 12-Dec-2025 13:04:40 JST Tony Finch Tony Finch
      in reply to

      @whitequark oh dear lolsob

      https://go.googlesource.com/go/+/refs/heads/master/src/net/dnsclient.go#75

      In conversation about 4 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.