-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add keycloak rolebindings #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
kind: RoleBinding | ||
metadata: | ||
name: keycloak:developer | ||
namespace: prod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be namespace: {{ .Release.Namespace }}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but pls add more comments
charts/rbac/Chart.yaml
Outdated
@@ -6,7 +6,7 @@ type: application | |||
# This is the chart version. This version number should be incremented each time you make changes | |||
# to the chart and its templates, including the app version. | |||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | |||
version: 0.1.12 | |||
version: 0.1.13-dev.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to change it on merge to have just 0.1.13
@@ -43,5 +43,7 @@ subjects: | |||
- apiGroup: rbac.authorization.k8s.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls add comment where this group comes from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -24,5 +24,8 @@ subjects: | |||
- apiGroup: rbac.authorization.k8s.io | |||
kind: Group | |||
name: saritasa:sso:developers | |||
|
|||
# this group is coming from keycloak sso via oidc | |||
- apiGroup: rbac.authorization.k8s.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The same comment as for apps.yaml
- Pls specify comments in similar way everywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -31,5 +31,8 @@ subjects: | |||
- apiGroup: rbac.authorization.k8s.io | |||
kind: Group | |||
name: saritasa:sso:developers | |||
- apiGroup: rbac.authorization.k8s.io # this group is coming from keycloak sso via oidc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comment as for apps.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -31,5 +31,8 @@ subjects: | |||
- apiGroup: rbac.authorization.k8s.io | |||
kind: Group | |||
name: saritasa:sso:developers | |||
- apiGroup: rbac.authorization.k8s.io # this group is coming from keycloak sso via oidc | |||
kind: Group | |||
name: developer | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty line pls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -24,5 +24,7 @@ subjects: | |||
- apiGroup: rbac.authorization.k8s.io | |||
kind: Group | |||
name: saritasa:sso:developers | |||
|
|||
- apiGroup: rbac.authorization.k8s.io # this group is coming from keycloak sso via oidc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comment as for apps.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
- apiGroup: rbac.authorization.k8s.io | ||
kind: User | ||
name: saritasa-sso-devops | ||
|
||
- apiGroup: rbac.authorization.k8s.io # this group is coming from keycloak sso via oidc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls add comments for other roles, where do they come from too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -40,8 +40,10 @@ roleRef: | |||
kind: Role | |||
name: saritasa-developers-readonly-role | |||
subjects: | |||
- apiGroup: rbac.authorization.k8s.io | |||
- apiGroup: rbac.authorization.k8s.io # this group is creating when sso stack applied in infra-v3 and when saritasa-sso module applied in infra-v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be move comments to line above? Now it looks like it's a comment for this particular value, not the whole subject?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Summary
Task: WRDOC-823
RoleBinding
andClusterRoleBinding
for auth to cluster via keycloak in infra-v3Tested on
wrdoc-prod
Related PRs: