[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Allowed to read oapi version without auth token, but not allowed with token !?



Hey guys,

Is this a bug or a feature? :)

$ curl https://master:8443/oapi -k
{
  "versions": [
    "v1"
  ]
}

$ curl -H "Authorization: Bearer `oc whoami -t`" https://master:8443/oapi -k
Unauthorized

$ oc whoami
admin

$ oc get rolebindings
NAME ROLE USERS GROUPS SERVICE ACCOUNTS SUBJECTS
admins                  /admin                  admin
...

Regards,
Marko


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]