Skip to content

SILO 20260903: OIDC config fetch fails while curl succeeds inside the same container #154

Closed

Description

@kh0mka

Steps to Reproduce (for bugs)

After upgrading from RELEASE.2026-08-04T00-00-00Z to pgsty/silo:RELEASE.2026-09-03T13-18-01Z, endless error logs appeared in the console, preventing cluster nodes from starting:

API: SYSTEM.iam
Time: 12:45:21 UTC 09/07/2026
DeploymentID: 67b4921f-5bfb-4163-b7d5-32a7e1bfa2d8
Error: Unable to initialize OpenID: Get "https://<keycloak-domain-hidden>/auth/realms/<realm-hidden>/.well-known/openid-configuration": read tcp 10.93.3.81:57920->X.X.Х.Х:443: read: connection reset by peer (*fmt.wrapError) 
6: internal/logger/logger.go:271:logger.LogIf() 
5: cmd/logging.go:29:cmd.iamLogIf() 
4: cmd/iam.go:284:cmd.(*IAMSys).Init() 
3: cmd/server-main.go:1008:cmd.serverMain.func14.1() 
2: cmd/server-main.go:576:cmd.bootstrapTrace() 
1: cmd/server-main.go:1007:cmd.serverMain.func14()
INFO: Waiting for OpenID to be initialized.. (retrying in 1.947319359s)

A rollback has been performed to pgsty/minio:RELEASE.2026-08-04T00-00-00Z, after which the cluster started successfully. OIDC and the web console are working.

A test Silo was launched, but when adding OIDC, an error occurred in the web console:

Get "https://<keycloak-domain-hidden>/auth/realms/<realm-hidden>/.well-known/openid-configuration": read tcp X.X.100.11:43994->X.X.X.X:443: read: connection reset by peer

The certificate is fine; it's an externally facing domain. If we enable internal domains on a self-signed certificate, we expect the usual tls: failed to verify certificate: x509: certificate signed by unknown authority error, which is logical.

However, the current production server configuration is broken during the update; it's not accepted. The same applies to a similar configuration (1:1) on the test server. Everything worked fine before. The domain has a certificate (global-sign) & HTTPS.

The connection from the container and from the host works fine:

# docker run --rm pgsty/silo:RELEASE.2026-09-03T13-18-01Z curl -v https://<domain-hidden>/auth/realms/<realm-hidden>/.well-known/openid-configuration
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Host <domain-hidden>:443 was resolved.
* IPv6: (none)
* IPv4: <IPv4-hidden>, <IPv4-2-hidden>
*   Trying <IPv4-hidden>:443...
* ALPN: curl offers h2,http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: none
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [96 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [5847 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 / prime256v1 / rsaEncryption
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=*.<domain-hidden>.<domainZone-hidden>
*  start date: <startDate-hidden>
*  expire date: <expiryDate-hidden>
*  subjectAltName: host "<domain-hidden>" matched cert's "*.<domain-hidden>.<domainZone-hidden>"
*  issuer: C=<country-hidden>; O=GlobalSign nv-sa; CN=GlobalSign GCC R6 AlphaSSL CA 2025
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha384WithRSAEncryption
* Connected to <domain-hidden> (<IPv4-hidden>) port 443
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://<domain-hidden>/auth/realms/<realm-hidden>/.well-known/openid-configuration
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: <domain-hidden>]
* [HTTP/2] [1] [:path: /auth/realms/<realm-hidden>/.well-known/openid-configuration]
* [HTTP/2] [1] [user-agent: curl/8.11.0]
* [HTTP/2] [1] [accept: */*]
} [5 bytes data]
> GET /auth/realms/<realm-hidden>/.well-known/openid-configuration HTTP/2
> Host: <domain-hidden>
> User-Agent: curl/8.11.0
> Accept: */*
>
* Request completely sent off
{ [5 bytes data]
< HTTP/2 200
< content-length: 6686
< cache-control: no-cache, must-revalidate, no-transform, no-store
< content-type: application/json
< referrer-policy: no-referrer
< strict-transport-security: max-age=31536000; includeSubDomains
< x-content-type-options: nosniff
< x-frame-options: SAMEORIGIN
<
{ [5 bytes data]
{"issuer":"https://<domain-hidden>/auth/realms/<realm-hidden>",.............................
6686  100  6686    0     0   121k      0 --:--:-- --:--:-- --:--:--  130ke_iss_parameter_supported":true}
* Connection #0 to host <domain-hidden> left intact

Activity

  1. changed the title [-]SILO 20260903: OIDC config fetch fails with TCP RST while curl succeeds inside the same container (Go 1.27.1 regression?)[/-] [+]SILO 20260903: OIDC config fetch fails while curl succeeds inside the same container[/+] on Sep 8, 2026
  2. kh0mka commented on Sep 11, 2026

    @kh0mka
    Author

    @Vonng, hi. Could you please let me know when this fix is expected to be released? I assume this change will be included in the next release.

    Will it be possible to upgrade directly from version pgsty/minio:RELEASE.2026-08-04T00-00-00Z to pgsty/silo:2026-10-*?

  3. Vonng commented on Sep 11, 2026

    @Vonng
    Member

    will release in the next 1~3 days

  4. moved this from Backlog to Done in Siloon Sep 11, 2026
  5. added
    bug
    on Sep 15, 2026
  6. self-assigned this
    on Sep 15, 2026
  7. added theissue type on Sep 15, 2026
  8. added this to the 20260916 milestone on Sep 16, 2026
  9. kh0mka commented on Sep 17, 2026

    @kh0mka
    Author

    Not fixed in RELEASE.2026-09-16T00-00-00Z:

    Get "https://<domain-hidden>/auth/realms/<realm-hidden>/.well-known/openid-configuration": read tcp X.Y.Z.11:59904-><ipv4-hidden>:443: read: connection reset by peer

  10. Vonng commented on Sep 17, 2026

    @Vonng
    Member

    That result is expected: 48e184652 restores the effect of
    GODEBUG=tlsmlkem=0 (SILO had pinned an explicit curve list, which under
    Go 1.27 overrides that switch). It does not change the default handshake, and
    20260804 already offered ML-KEM by default — so ML-KEM was never the difference
    between the working and failing builds.

    Cause. Between 20260804 and 20260903 the toolchain moved from Go 1.26 to
    1.27, and our ClientHello grew by 12 bytes: Go 1.27 advertises three ML-DSA
    signature algorithms (0x0904-0x0906) in signature_algorithms and
    signature_algorithms_cert. This is a known Go 1.27 interop regression against
    TLS-inspecting middleboxes:

    Your curl control test succeeds for the same reason — curl uses OpenSSL, which
    does not advertise those identifiers.

    First thing to check. What inspects traffic between the SILO nodes and
    Keycloak — Palo Alto / Prisma Access, or another SSL-inspection NGFW, SASE or
    IDS-IPS? If so, updating the threat signature content (or disabling that one
    signature) is the fix.

    If it is something else, one capture in the failing container settles it:

    tcpdump -nn -i any -s0 'host <idp-ip> and tcp port 443' -w /tmp/idp.pcap
    

    Does a ServerHello arrive before the RST?

    • No → the ingress rejects the handshake; see above.
    • Yes, RST only after the GET → an HTTP-layer rule. Our User-Agent changed from
      MinIO (...) to Silo (...) with the rebrand; allow it at the ingress.

    Ingress/WAF logs for the same second work just as well — only the rule or
    reason is needed.

    Other options. Point MINIO_IDENTITY_OPENID_CONFIG_URL at an IdP endpoint
    that does not traverse the device (the discovery document's issuer must stay
    identical); or terminate TLS in a sidecar. GODEBUG=tlsmlkem=0 only helps if
    ML-KEM is the trigger, and it is process-wide: it also drops post-quantum key
    exchange on internode links and makes your listener reject clients that offer
    only post-quantum groups. An HTTPS_PROXY does not help — CONNECT forwards the
    same ClientHello.

    Nothing in Go can suppress the ML-DSA advertisement today (no GODEBUG exists
    for signature algorithms; only capping MaxVersion at TLS 1.2 removes them).
    We plan to expose an explicit, opt-in TLS compatibility setting for outbound
    connections, plus handshake-phase detail in this error. If that is what
    unblocks you, say so and we will prioritize it.

    Upgrade path: pgsty/minio:RELEASE.2026-08-04 → pgsty/silo:2026-10-* is
    direct. Note the image rename; upgrade all nodes and sites together for IAM
    revocation persistence (back up IAM storage first, no rolling downgrade); and
    admin:ChangeMyPassword is now split out of admin:CreateUser.
    See https://silo.pgsty.com/blog/release/silo-20260916/

  11. Vonng commented on Sep 17, 2026

    @Vonng
    Member

    That result is expected: 48e184652 restores the effect of GODEBUG=tlsmlkem=0 (SILO had pinned an explicit curve list, which under Go 1.27 overrides that switch). It does not change the default handshake, and 20260804 already offered ML-KEM by default — so ML-KEM was never the difference between the working and failing builds.

    Cause. Between 20260804 and 20260903 the toolchain moved from Go 1.26 to 1.27, and our ClientHello grew by 12 bytes: Go 1.27 advertises three ML-DSA signature algorithms (0x0904-0x0906) in both signature_algorithms and signature_algorithms_cert. This is a known Go 1.27 interop regression against TLS-inspecting middleboxes:

    • golang/go#81199 — same symptoms: read: connection reset by peer on TLS 1.3 through an inspecting firewall, while curl/OpenSSL/Node.js and a Go 1.26 build of the same program succeed.
    • golang/go#79626 — diagnosed instance: a Palo Alto IDS/IPS threat signature for OpenSSL CVE-2020-1967 (reported there as PA threat ID 58033, last updated 2022-07-12) inspects signature_algorithms_cert and resets the connection. Palo Alto shipped a content update disabling it on 2026-06-23; the Prisma Access case in #81199 also has a patched version.

    Your curl control test succeeds for the same reason — curl uses OpenSSL, which does not advertise those identifiers.

    First thing to check. What inspects traffic between the SILO nodes and Keycloak — Palo Alto / Prisma Access, or another SSL-inspection NGFW, SASE or IDS-IPS? If so, updating the threat signature content (or disabling that one signature) is the fix.

    If it is something else, one capture in the failing container settles it:

    tcpdump -nn -i any -s0 'host <idp-ip> and tcp port 443' -w /tmp/idp.pcap
    

    Does a ServerHello arrive before the RST?

    • No → the ingress rejects the handshake; see above.
    • Yes, RST only after the GET → an HTTP-layer rule. Our User-Agent changed from MinIO (...) to Silo (...) with the rebrand; allow it at the ingress.

    Ingress/WAF logs for the same second work just as well — only the rule or reason is needed.

    Other options. Point MINIO_IDENTITY_OPENID_CONFIG_URL at an IdP endpoint that does not traverse the device (the discovery document's issuer must stay identical); or terminate TLS in a sidecar. GODEBUG=tlsmlkem=0 only helps if ML-KEM is the trigger, and it is process-wide: it also drops post-quantum key exchange on internode links and makes your listener reject clients that offer only post-quantum groups. An HTTPS_PROXY does not help — CONNECT forwards the same ClientHello.

    Nothing in Go can suppress the ML-DSA advertisement today (no GODEBUG exists for signature algorithms; only capping MaxVersion at TLS 1.2 removes them). We plan to expose an explicit, opt-in TLS compatibility setting for outbound connections, plus handshake-phase detail in this error. If that is what unblocks you, say so and we will prioritize it.

    The mechanism, the full option space and the trade-offs are written up here: https://silo.pgsty.com/blog/design/tls-parameter-pinning/

    Upgrade path: pgsty/minio:RELEASE.2026-08-04 → pgsty/silo:2026-10-* is direct. Note the image rename; upgrade all nodes and sites together for IAM revocation persistence (back up IAM storage first, no rolling downgrade); and admin:ChangeMyPassword is now split out of admin:CreateUser. See https://silo.pgsty.com/blog/release/silo-20260916/

  12. kh0mka commented on Sep 17, 2026

    @kh0mka
    Author

    Thanks

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

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions