ansibleplaybookbundle / prometheus-apb

GNU General Public License v3.0
3 stars 4 forks source link

oauth issues #7

Open cunningt opened 6 years ago

cunningt commented 6 years ago

Installed Prometheus with "Deploy Prometheus with Oauth-Proxy sidecar"

Go to https://prometheus-grafana-proxy-foobar.127.0.0.1.nip.io/

signin

Click that, sign in as developer

authorize

Click Allow, get 500 error

Try to login through oauth, get 500 error

Logs show the following error :

2018/04/06 17:39:15 oauthproxy.go:657: 172.17.0.7:47680 Cookie "_oauth_proxy" not present

  | 2018/04/06 17:39:20 oauthproxy.go:657: 172.17.0.7:47680 Cookie "_oauth_proxy" not present   | 2018/04/06 17:39:22 server.go:2753: http: TLS handshake error from 172.17.0.10:33352: tls: first record does not look like a TLS handshake   | 2018/04/06 17:39:24 oauthproxy.go:582: error redeeming code (client:172.17.0.7:47680): Post https://127.0.0.1:8443/oauth/token: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs   | 2018/04/06 17:39:24 oauthproxy.go:399: ErrorPage 500 Internal Error Internal Error   | 2018/04/06 17:39:24 server.go:2753: http: TLS handshake error from 127.0.0.1:43366: remote error: tls: bad certificate   | 2018/04/06 17:39:24 oauthproxy.go:657: 172.17.0.7:47680 Cookie "_oauth_proxy" not present   | 2018/04/06 17:39:37 server.go:2753: http: TLS handshake error from 172.17.0.10:33432: tls: first record does not look like a TLS handshake   | 2018/04/06 17:39:52 server.go:2753: http: TLS handshake error from 172.17.0.10:33470: tls: first record does not look like a TLS handshake   | 2018/04/06 17:40:07 server.go:2753: http: TLS handshake error from 172.17.0.10:33558: tls: first record does not look like a TLS handshake

cunningt commented 6 years ago

Could be related to https://github.com/openshift/oauth-proxy/issues/52

cunningt commented 6 years ago

@jparrill Any ideas here?