mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
daggerhart-openid-connect-generic calls wp_remote_post() against http://auth.<onion>/.../token, which bottoms out in libcurl -- and libcurl refuses a .onion host at name resolution (RFC 7686) before /etc/hosts, extra_hosts or DNS is consulted. The result is cURL error 6, which WordPress turns into WP_Error('http_request_failed') and a bounce to /wp-login.php?login-error=http_request_failed. Five specs of WordPress 0 in run 31340965955 failed on that single cause, 60 occurrences in the log. Only a configured proxy makes curl skip the check, and socks5h:// hands the name to Tor. The mu-plugin hooks http_api_curl because http_request_args cannot express a proxy and WP core's WP_HTTP_Proxy hardcodes CURLPROXY_HTTP, so SOCKS5 is reachable only on the raw handle. env.j2 sets WORDPRESS_OIDC_SOCKS_PROXY only when the issuer is an onion, so a clearnet deployment never routes through Tor. Deliberately not adding the onion_oidc_socks include:238b8b41festablished it is a no-op for this client, since libcurl never reads /etc/hosts here. Depends on1bb31fba4-- without it swarm renders socks5h://host.docker.internal, which is unreachable from inside the overlay. The plugin's behaviour is unexercised: syntax checked, never run. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
7 lines
74 B
YAML
7 lines
74 B
YAML
---
|
|
required: true
|
|
mechanism: mu_plugin
|
|
source: vendored
|
|
bridges:
|
|
- sso
|