Bug 1336397
| Summary: | [intservice_public_217] Failed to access "apimanui/api-manager/catalog/api-catalog" page due to "Cannot validate BearerToken" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OKD | Reporter: | chunchen <chunchen> | ||||
| Component: | Logging | Assignee: | Kurt T Stam <kurt.stam> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | chunchen <chunchen> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.x | CC: | aos-bugs, dmcphers, jcantril, kurt.stam, wsun | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-08-08 21:39:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
chunchen
2016-05-16 11:02:24 UTC
Created attachment 1157846 [details]
catalog page screenshot
sosiouxme: that page queries Kubernetes, so it’s likely to do with a service account not set up correctly. I reproduced with this stack trace: https://paste.fedoraproject.org/368492/67078146/ Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://kubernetes.default.svc/oapi/v1/templates. Message: Forbidden!Configured service account doesn't have access. However, if I ssh into the container and use the SA token to GET that URL with curl, then it works fine. So it seems either something is using the SA token wrong or it's using the wrong account entirely. Hmm the templates are queried to grab an image only.. Did the security around this change? If templates is the only issue I can turn that off.. Neither service account nor user (most likely) should actually have access to all templates (https://kubernetes.default.svc/oapi/v1/templates) - everything should be scoped by one of the namespaces available to the user. @dan I presume we can close this since our plans of supporting ApiMan have changed? @jeff I believe so. Closing as this is no longer relevent |