Skip to content

Introduce updated authentication/authorization#1085

Open
mxsrc wants to merge 3 commits into
mainfrom
rbac
Open

Introduce updated authentication/authorization#1085
mxsrc wants to merge 3 commits into
mainfrom
rbac

Conversation

@mxsrc
Copy link
Copy Markdown
Contributor

@mxsrc mxsrc commented Jun 8, 2026

This PR updates the webapp API to changes required for a more secure authentication when using the operator. In this mode, the operator and CSI drivers authenticate themselves against the API by providing the token for their service accounts instead of the cluster secret. This is an additional authentication step that may succeed, the existing authentication is untouched.

When deploying, the environment variable SB_K8S_ADMIN_SERVICE_ACCOUNTS will be populated with service accounts that are given full authorization to the API. In the future authorization can be expanded s.t. e.g. the CSI will be limited to volume management. Because of this update authorization, the create-first cluster creation endpoint, along with its authentication exception could be removed.

Corresponding PRs: https://github.com/simplyblock/simplyblock-operator/pull/233, simplyblock/helm-charts#16, simplyblock/simplyblock-csi#431.

Comment thread tests/web/api/v2/test_auth.py Fixed
Comment thread tests/web/api/v2/test_auth.py Fixed
@mxsrc mxsrc marked this pull request as ready for review June 8, 2026 14:10
Copy link
Copy Markdown
Collaborator

@Hamdy-khader Hamdy-khader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants