Skip to content

Instantly share code, notes, and snippets.

@fabianvf
Created December 18, 2018 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabianvf/f97fb9472cec321394c08bbc4bd9d825 to your computer and use it in GitHub Desktop.
Save fabianvf/f97fb9472cec321394c08bbc4bd9d825 to your computer and use it in GitHub Desktop.
Server [https://localhost:8443]: I1218 13:39:00.356890 1821 round_trippers.go:383] HEAD https://master.example.org:8443/
I1218 13:39:00.357019 1821 round_trippers.go:390] Request Headers:
I1218 13:39:00.393071 1821 round_trippers.go:408] Response Status: in 36 milliseconds
I1218 13:39:00.393112 1821 round_trippers.go:411] Response Headers:
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n):
I1218 13:39:01.832955 1821 round_trippers.go:383] GET https://master.example.org:8443/.well-known/oauth-authorization-server
I1218 13:39:01.832976 1821 round_trippers.go:390] Request Headers:
I1218 13:39:01.832987 1821 round_trippers.go:393] X-Csrf-Token: 1
I1218 13:39:01.843965 1821 round_trippers.go:408] Response Status: 200 OK in 10 milliseconds
I1218 13:39:01.843998 1821 round_trippers.go:411] Response Headers:
I1218 13:39:01.844006 1821 round_trippers.go:414] Cache-Control: no-store
I1218 13:39:01.844014 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:01.844021 1821 round_trippers.go:414] Content-Length: 546
I1218 13:39:01.844031 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:02 GMT
I1218 13:39:01.844309 1821 round_trippers.go:383] GET https://master.example.org:8443/oauth/authorize?client_id=openshift-challenging-client&code_challenge=6Xt7sLIj3WZq8fszsjCpf9wLJhBAxzHtLRpMy3u23Yk&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fmaster.example.org%3A8443%2Foauth%2Ftoken%2Fimplicit&response_type=code
I1218 13:39:01.844336 1821 round_trippers.go:390] Request Headers:
I1218 13:39:01.844350 1821 round_trippers.go:393] X-Csrf-Token: 1
I1218 13:39:01.848413 1821 round_trippers.go:408] Response Status: 401 Unauthorized in 4 milliseconds
I1218 13:39:01.848447 1821 round_trippers.go:411] Response Headers:
I1218 13:39:01.848461 1821 round_trippers.go:414] Www-Authenticate: Basic realm="openshift"
I1218 13:39:01.848475 1821 round_trippers.go:414] Content-Type: text/plain; charset=utf-8
I1218 13:39:01.848489 1821 round_trippers.go:414] Content-Length: 0
I1218 13:39:01.848502 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:02 GMT
Authentication required for https://master.example.org:8443 (openshift)
Username: Password:
I1218 13:39:04.520785 1821 round_trippers.go:383] GET https://master.example.org:8443/oauth/authorize?client_id=openshift-challenging-client&code_challenge=6Xt7sLIj3WZq8fszsjCpf9wLJhBAxzHtLRpMy3u23Yk&code_challenge_method=S256&redirect_uri=https%3A%2F%2Fmaster.example.org%3A8443%2Foauth%2Ftoken%2Fimplicit&response_type=code
I1218 13:39:04.520836 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.520861 1821 round_trippers.go:393] Authorization: Basic YWRtaW46YWRtaW4=
I1218 13:39:04.520874 1821 round_trippers.go:393] X-Csrf-Token: 1
I1218 13:39:04.545655 1821 round_trippers.go:408] Response Status: 302 Found in 24 milliseconds
I1218 13:39:04.545697 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.545713 1821 round_trippers.go:414] Set-Cookie: ssn=MTU0NTE1ODM0NHw1M2VJNExYLXYwODRVakVBb0hEaW91NFU3b3YtODRBejkzVzVUQWNobzNBX0RfcXhMZ1lqTHZ1ZDlDQUFtbmlGSnJxM1BWQWxmOVBKNnBQMkYzSVI2VFFBRmFvSUxfYnpBcGRhRFVjTEs5dDdjbEFsNGlFOHU1anQwRmxoSVZRaC1WeHRXQURoWUlFREp2U2xJb1o0U3JXV0pjQXNnd3lub0sxLV9qc1pPRnVnTENyTV9lVk1BZjlQTlZpMjlKbGk4Yy1HTUhZUXynMAhBNluk84LexOzIybDISm0OhgtUQVpG-V2aJGM8xw==; Path=/; HttpOnly; Secure
I1218 13:39:04.545734 1821 round_trippers.go:414] Content-Type: text/plain; charset=utf-8
I1218 13:39:04.545766 1821 round_trippers.go:414] Content-Length: 0
I1218 13:39:04.545779 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.545798 1821 round_trippers.go:414] Cache-Control: no-cache, no-store, max-age=0, must-revalidate
I1218 13:39:04.545811 1821 round_trippers.go:414] Expires: Fri, 01 Jan 1990 00:00:00 GMT
I1218 13:39:04.545826 1821 round_trippers.go:414] Location: https://master.example.org:8443/oauth/token/implicit?code=o3_7461xRBFR8j_oW2efFPyfnAYOwgl_tOHK43BXL7Y&state=
I1218 13:39:04.545837 1821 round_trippers.go:414] Pragma: no-cache
I1218 13:39:04.545991 1821 round_trippers.go:383] POST https://master.example.org:8443/oauth/token
I1218 13:39:04.546010 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.546022 1821 round_trippers.go:393] Accept: application/json
I1218 13:39:04.546032 1821 round_trippers.go:393] Authorization: Basic b3BlbnNoaWZ0LWNoYWxsZW5naW5nLWNsaWVudDo=
I1218 13:39:04.546042 1821 round_trippers.go:393] Content-Type: application/x-www-form-urlencoded
I1218 13:39:04.564552 1821 round_trippers.go:408] Response Status: 200 OK in 18 milliseconds
I1218 13:39:04.564574 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.564582 1821 round_trippers.go:414] Cache-Control: no-cache, no-store, max-age=0, must-revalidate
I1218 13:39:04.564590 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:04.564596 1821 round_trippers.go:414] Expires: Fri, 01 Jan 1990 00:00:00 GMT
I1218 13:39:04.564603 1821 round_trippers.go:414] Pragma: no-cache
I1218 13:39:04.564609 1821 round_trippers.go:414] Content-Length: 124
I1218 13:39:04.564616 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.564832 1821 round_trippers.go:383] GET https://master.example.org:8443/apis/user.openshift.io/v1/users/~
I1218 13:39:04.564846 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.564853 1821 round_trippers.go:393] Accept: application/json, */*
I1218 13:39:04.564859 1821 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8
I1218 13:39:04.564867 1821 round_trippers.go:393] Authorization: Bearer nHDouVJKd__bkZs-lW8cTcW9Ixhh8mgcjL7l1A1UhJ0
I1218 13:39:04.572199 1821 round_trippers.go:408] Response Status: 200 OK in 7 milliseconds
I1218 13:39:04.572218 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.572231 1821 round_trippers.go:414] Cache-Control: no-store
I1218 13:39:04.572242 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:04.572253 1821 round_trippers.go:414] Content-Length: 345
I1218 13:39:04.572261 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.572301 1821 request.go:897] Response Body: {"kind":"User","apiVersion":"user.openshift.io/v1","metadata":{"name":"admin","selfLink":"/apis/user.openshift.io/v1/users/admin","uid":"33abc83c-fd80-11e8-bbb1-525400a53bd1","resourceVersion":"3584","creationTimestamp":"2018-12-11T20:06:09Z"},"identities":["htpasswd_auth:admin"],"groups":["system:authenticated","system:authenticated:oauth"]}
Login successful.
I1218 13:39:04.573016 1821 round_trippers.go:383] GET https://master.example.org:8443/apis/user.openshift.io/v1/users/~
I1218 13:39:04.573041 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.573055 1821 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8
I1218 13:39:04.573071 1821 round_trippers.go:393] Accept: application/json, */*
I1218 13:39:04.573129 1821 round_trippers.go:393] Authorization: Bearer nHDouVJKd__bkZs-lW8cTcW9Ixhh8mgcjL7l1A1UhJ0
I1218 13:39:04.575539 1821 round_trippers.go:408] Response Status: 200 OK in 2 milliseconds
I1218 13:39:04.575559 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.575568 1821 round_trippers.go:414] Cache-Control: no-store
I1218 13:39:04.575576 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:04.575586 1821 round_trippers.go:414] Content-Length: 345
I1218 13:39:04.575597 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.575638 1821 request.go:897] Response Body: {"kind":"User","apiVersion":"user.openshift.io/v1","metadata":{"name":"admin","selfLink":"/apis/user.openshift.io/v1/users/admin","uid":"33abc83c-fd80-11e8-bbb1-525400a53bd1","resourceVersion":"3584","creationTimestamp":"2018-12-11T20:06:09Z"},"identities":["htpasswd_auth:admin"],"groups":["system:authenticated","system:authenticated:oauth"]}
I1218 13:39:04.575881 1821 round_trippers.go:383] GET https://master.example.org:8443/apis/project.openshift.io/v1/projects
I1218 13:39:04.575900 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.575922 1821 round_trippers.go:393] Accept: application/json, */*
I1218 13:39:04.575935 1821 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8
I1218 13:39:04.575946 1821 round_trippers.go:393] Authorization: Bearer nHDouVJKd__bkZs-lW8cTcW9Ixhh8mgcjL7l1A1UhJ0
I1218 13:39:04.577639 1821 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I1218 13:39:04.577665 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.577679 1821 round_trippers.go:414] Cache-Control: no-store
I1218 13:39:04.577688 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:04.577697 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.578117 1821 request.go:897] Response Body: {"kind":"ProjectList","apiVersion":"project.openshift.io/v1","metadata":{"selfLink":"/apis/project.openshift.io/v1/projects"},"items":[{"metadata":{"name":"default","selfLink":"/apis/project.openshift.io/v1/projects/default","uid":"6f71d95e-fd7e-11e8-bbb1-525400a53bd1","resourceVersion":"1552","creationTimestamp":"2018-12-11T19:53:31Z","annotations":{"openshift.io/node-selector":"","openshift.io/sa.scc.mcs":"s0:c1,c0","openshift.io/sa.scc.supplemental-groups":"1000000000/10000","openshift.io/sa.scc.uid-range":"1000000000/10000"}},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}},{"metadata":{"name":"home-cluster","selfLink":"/apis/project.openshift.io/v1/projects/home-cluster","uid":"39c73bba-fd80-11e8-bbb1-525400a53bd1","resourceVersion":"3667","creationTimestamp":"2018-12-11T20:06:20Z","annotations":{"openshift.io/description":"","openshift.io/display-name":"","openshift.io/requester":"admin","openshift.io/sa.scc.mcs":"s0:c17,c9","openshift.io/sa.scc.supplemental-groups":"1000290000/10000"," [truncated 8379 chars]
I1218 13:39:04.579244 1821 round_trippers.go:383] GET https://master.example.org:8443/apis/project.openshift.io/v1/projects/default
I1218 13:39:04.579281 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.579294 1821 round_trippers.go:393] Accept: application/json, */*
I1218 13:39:04.579305 1821 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8
I1218 13:39:04.579316 1821 round_trippers.go:393] Authorization: Bearer nHDouVJKd__bkZs-lW8cTcW9Ixhh8mgcjL7l1A1UhJ0
I1218 13:39:04.583013 1821 round_trippers.go:408] Response Status: 200 OK in 3 milliseconds
I1218 13:39:04.583036 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.583049 1821 round_trippers.go:414] Cache-Control: no-store
I1218 13:39:04.583061 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:04.583069 1821 round_trippers.go:414] Content-Length: 523
I1218 13:39:04.583093 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.583127 1821 request.go:897] Response Body: {"kind":"Project","apiVersion":"project.openshift.io/v1","metadata":{"name":"default","selfLink":"/apis/project.openshift.io/v1/projects/default","uid":"6f71d95e-fd7e-11e8-bbb1-525400a53bd1","resourceVersion":"1552","creationTimestamp":"2018-12-11T19:53:31Z","annotations":{"openshift.io/node-selector":"","openshift.io/sa.scc.mcs":"s0:c1,c0","openshift.io/sa.scc.supplemental-groups":"1000000000/10000","openshift.io/sa.scc.uid-range":"1000000000/10000"}},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}
You have access to the following projects and can switch between them with 'oc project <projectname>':
* default
home-cluster
kube-public
kube-service-catalog
kube-system
management-infra
openshift
openshift-ansible-service-broker
openshift-console
openshift-infra
openshift-logging
openshift-monitoring
openshift-node
openshift-sdn
openshift-template-service-broker
openshift-web-console
rook-ceph
rook-ceph-system
Using project "default".
I1218 13:39:04.583519 1821 round_trippers.go:383] GET https://master.example.org:8443/apis/user.openshift.io/v1/users/~
I1218 13:39:04.583538 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.583548 1821 round_trippers.go:393] Accept: application/json, */*
I1218 13:39:04.583558 1821 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8
I1218 13:39:04.583566 1821 round_trippers.go:393] Authorization: Bearer nHDouVJKd__bkZs-lW8cTcW9Ixhh8mgcjL7l1A1UhJ0
I1218 13:39:04.585797 1821 round_trippers.go:408] Response Status: 200 OK in 2 milliseconds
I1218 13:39:04.585821 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.585832 1821 round_trippers.go:414] Cache-Control: no-store
I1218 13:39:04.585842 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:04.585851 1821 round_trippers.go:414] Content-Length: 345
I1218 13:39:04.585859 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.585888 1821 request.go:897] Response Body: {"kind":"User","apiVersion":"user.openshift.io/v1","metadata":{"name":"admin","selfLink":"/apis/user.openshift.io/v1/users/admin","uid":"33abc83c-fd80-11e8-bbb1-525400a53bd1","resourceVersion":"3584","creationTimestamp":"2018-12-11T20:06:09Z"},"identities":["htpasswd_auth:admin"],"groups":["system:authenticated","system:authenticated:oauth"]}
I1218 13:39:04.586120 1821 round_trippers.go:383] GET https://master.example.org:8443/apis/user.openshift.io/v1/users/~
I1218 13:39:04.586141 1821 round_trippers.go:390] Request Headers:
I1218 13:39:04.586148 1821 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8
I1218 13:39:04.586156 1821 round_trippers.go:393] Accept: application/json, */*
I1218 13:39:04.586163 1821 round_trippers.go:393] Authorization: Bearer nHDouVJKd__bkZs-lW8cTcW9Ixhh8mgcjL7l1A1UhJ0
I1218 13:39:04.588638 1821 round_trippers.go:408] Response Status: 200 OK in 2 milliseconds
I1218 13:39:04.588661 1821 round_trippers.go:411] Response Headers:
I1218 13:39:04.588672 1821 round_trippers.go:414] Cache-Control: no-store
I1218 13:39:04.588681 1821 round_trippers.go:414] Content-Type: application/json
I1218 13:39:04.588701 1821 round_trippers.go:414] Content-Length: 345
I1218 13:39:04.588718 1821 round_trippers.go:414] Date: Tue, 18 Dec 2018 18:39:04 GMT
I1218 13:39:04.588765 1821 request.go:897] Response Body: {"kind":"User","apiVersion":"user.openshift.io/v1","metadata":{"name":"admin","selfLink":"/apis/user.openshift.io/v1/users/admin","uid":"33abc83c-fd80-11e8-bbb1-525400a53bd1","resourceVersion":"3584","creationTimestamp":"2018-12-11T20:06:09Z"},"identities":["htpasswd_auth:admin"],"groups":["system:authenticated","system:authenticated:oauth"]}
I1218 13:39:04.590788 1821 loader.go:357] Config loaded from file /home/fabian/.kube/config
I1218 13:39:04.591872 1821 loader.go:357] Config loaded from file /home/fabian/.kube/config
I1218 13:39:04.593294 1821 loader.go:357] Config loaded from file /home/fabian/.kube/config
Welcome! See 'oc help' to get started.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment