Skip to content

Commit

Permalink
Backport UI: Fix kubernetes auth method role management (#25999) (#26019
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hashishaw authored Mar 19, 2024
1 parent 935c293 commit 0520d7f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/25999.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Fix kubernetes auth method roles tab
```
6 changes: 6 additions & 0 deletions ui/app/helpers/mountable-auth-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

import { helper as buildHelper } from '@ember/component/helper';

/**
* These are all the auth methods that can be mounted.
* Some methods may not be available for login via the UI,
* which are in the `supported-auth-backends` helper.
*/

const MOUNTABLE_AUTH_METHODS = [
{
displayName: 'AliCloud',
Expand Down
6 changes: 6 additions & 0 deletions ui/app/helpers/supported-auth-backends.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

import { helper as buildHelper } from '@ember/component/helper';

/**
* These are all the auth methods with which a user can log into the UI.
* This is a subset of the methods found in the `mountable-auth-methods` helper,
* which lists all the methods that can be mounted.
*/

const SUPPORTED_AUTH_BACKENDS = [
{
type: 'token',
Expand Down
4 changes: 3 additions & 1 deletion ui/app/helpers/supported-managed-auth-backends.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

import { helper as buildHelper } from '@ember/component/helper';

const MANAGED_AUTH_BACKENDS = ['cert', 'userpass', 'ldap', 'okta', 'radius'];
// The UI supports management of these auth methods (i.e. configuring roles or users)
// otherwise only configuration of the method is supported.
const MANAGED_AUTH_BACKENDS = ['cert', 'kubernetes', 'ldap', 'okta', 'radius', 'userpass'];

export function supportedManagedAuthBackends() {
return MANAGED_AUTH_BACKENDS;
Expand Down

0 comments on commit 0520d7f

Please sign in to comment.