dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Add support for service account tokens

Open gaktive opened this issue 1 year ago • 4 comments

Internal reference: SURE-6467

A new feature, taken from the parent backend ticket: https://github.com/rancher/rancher/issues/22417

Many 3rd party integrations available for Kubernetes (e.g. for Gitlab, Vault, Avi, etc.) involve giving an external process access to the Kubernetes API using a native Kubernetes Service Account token for authentication.

Rancher's Auth Proxy currently has no notion of SA tokens and sending any request to the Rancher endpoint that uses such token will result in an auth error, but work is being done to implement this in the backend, so this is the frontend portion.

Expected behaviour:

Ranchers auth proxy should support authentication of requests that specify a Service Account token in the Authorization Bearer header

Proposed design workflow: Edit mode: https://xd.adobe.com/view/4eb8efa9-0a4c-447f-81d9-6e3e822bb236-1beb/?fullscreen View mode: https://xd.adobe.com/view/4eb8efa9-0a4c-447f-81d9-6e3e822bb236-1beb/screen/e015bf0c-261f-4efc-b75a-9e2023817183?fullscreen

gaktive avatar Feb 05 '24 17:02 gaktive

https://github.com/rancher/rancher/issues/22417 is the related backend which is now in Working

gaktive avatar Mar 11 '24 15:03 gaktive

https://github.com/rancher/rancher/issues/22417 is now in To Test. Confirming whether UI is now unblocked.

gaktive avatar Apr 25 '24 15:04 gaktive

One thing to make this simpler (per @nwmac): on the configuration page, we could have text that says "This feature needs to be configured on the management server" or something similar without worrying out the link structure or looking up the access rights for the current user (and potentially losing a token if clicking on it).

gaktive avatar May 10 '24 15:05 gaktive

This is currently part of the imported cluster wizard.

gaktive avatar May 15 '24 15:05 gaktive

After several discussions, we've revisited the original designs and switched to a table-based solution: Adobe Xd Prototype

edenhernandez-suse avatar Jun 10 '24 15:06 edenhernandez-suse

UI issue reported(minor) : https://github.com/rancher/dashboard/issues/11444

dasarinaidu avatar Jul 15 '24 19:07 dasarinaidu

@IsaSih do sync with @dasarinaidu since you both are testing this feature.

gaktive avatar Jul 16 '24 14:07 gaktive

Tess pass on v2.9-dd23578d3e3499f54d80c4ed88cc52c44ee69539-head

IsaSih avatar Jul 29 '24 20:07 IsaSih