Skip to content

[FEAT] - Enable token request for Team Service account #1965

@abhijith-darshan

Description

@abhijith-darshan

Priority

None

User Story

As a greenhouse support group member, they should be able to create token requests to their team service accounts.

Description

Support group team members should be able to create token request to their team service account, so that they can use it in a CI environment to apply greenhouse resources.

Additionally the Service Account should also have permissions to do token request as well so they can rotate themselves.

Role

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: <team>-sa-token-request
rules:
- apiGroups:
  - ""
  resources:
  - serviceaccounts/token
  verbs:
  - create
  resourceNames:
  - <team>-sa

RoleBinding

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: <team>-sa-token-request
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: <team>-sa-token-request
subjects:
- apiGroup: rbac.authorization.k8s.io
  kind: Group
  name: support-group:<team>
- kind: ServiceAccount
  name: <team>-sa

Acceptance Criteria

  • Team controller creates Role for serviceaccounts/token
  • Team controller creates Rolebinding for support-group:<team> group and team SA
  • E2E verification with Team SA
  • max token duration: 90days (like Gardener)

Reference Issues

No response

Metadata

Metadata

Assignees

Labels

backlogReady for sprint planning; triggers project additionfeature

Type

No type
No fields configured for issues without a type.

Projects

Status
In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions