feat: add K8s exec RBAC + guacd ServiceAccount
Adds guacd-exec ServiceAccount, ClusterRole (pods/exec), and ClusterRoleBinding for Kubernetes protocol support.
This commit is contained in:
@@ -174,6 +174,7 @@ spec:
|
|||||||
app: guacd
|
app: guacd
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
|
serviceAccountName: guacd-exec
|
||||||
- name: guacd
|
- name: guacd
|
||||||
image: guacamole/guacd:latest
|
image: guacamole/guacd:latest
|
||||||
ports:
|
ports:
|
||||||
@@ -388,3 +389,38 @@ metadata:
|
|||||||
namespace: guacamole
|
namespace: guacamole
|
||||||
spec:
|
spec:
|
||||||
itemPath: vaults/IAmWorkin/items/Guacamole
|
itemPath: vaults/IAmWorkin/items/Guacamole
|
||||||
|
---
|
||||||
|
# RBAC for guacd K8s exec protocol
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: guacd-exec
|
||||||
|
namespace: guacamole
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: guacd-pod-exec
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods"]
|
||||||
|
verbs: ["get", "list"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods/exec"]
|
||||||
|
verbs: ["create"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["namespaces"]
|
||||||
|
verbs: ["list"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: guacd-pod-exec
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: guacd-exec
|
||||||
|
namespace: guacamole
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: guacd-pod-exec
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|||||||
Reference in New Issue
Block a user