-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support ServiceAccount token volume projection #22012
Comments
@l0rd do you know if the For example, the given spec:
devEnvironments:
serviceAccountTokens:
- name: dev-token
mounthPath: /var/run/secrets/tokens
audience: openshift
expirationSeconds: 3600 would result in: kind: Pod
(...)
spec:
(...)
containers:
(...)
volumeMounts:
- mountPath: /var/run/secrets/tokens
name: dev-token
volumes:
(...)
- name: dev-token
projected:
sources:
- serviceAccountToken:
path: dev-token
expirationSeconds: 3600
audience: openshift This is the approach I'm currently taking, though perhaps the name fields should be generated based on the workspace ID, as we do for other areas of DWO. |
@AObuchow yes, the serviceAccountToken
In my original proposal, in the |
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is a an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
This commit adds a new field to the DWOC `workspace.serviceAccountTokens`, which is an array of ServiceAccount tokens that will be mounted to workspace pods as projected volumes. Part of eclipse-che/che#22012 Signed-off-by: Andrew Obuchowicz <[email protected]>
sync'd to Red Hat JIRA https://issues.redhat.com/browse/CRW-4345 |
Is your enhancement related to a problem? Please describe
The default ServiceAccount token mounted in workspaces Pods:
This can be problematic in scenarios such as workload identity federation where the token audience needs to be specified.
Describe the solution you'd like
A new CheCluster
spec.devEnvironments.serviceAccountTokens
property:that, if set, will result in the workspaces pods specifying the corresponding service account token volumes projections:
The text was updated successfully, but these errors were encountered: