Skip to content
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

[v15] fix k8s moderated sessions bypass with ephemeral containers #40906

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion fixtures/ci-teleport-rbac/ci-teleport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ metadata:
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get"]
verbs: ["get", "list", "watch"]
resourceNames: ["test-pod"]
- apiGroups: [""]
resources: ["pods/exec"]
Expand All @@ -48,6 +48,14 @@ rules:
resources: ["pods/portforward"]
verbs: ["create"]
resourceNames: ["test-pod"]
- apiGroups: [""]
resources: ["pods/ephemeralcontainers"]
verbs: ["patch"]
resourceNames: ["test-pod"]
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get"]
resourceNames: ["test-pod"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ require (
github.com/dustin/go-humanize v1.0.1
github.com/elastic/go-elasticsearch/v8 v8.11.1
github.com/elimity-com/scim v0.0.0-20230426070224-941a5eac92f3
github.com/evanphx/json-patch v5.7.0+incompatible
github.com/flynn/hid v0.0.0-20190502022136-f1b9b6cc019a
github.com/flynn/u2f v0.0.0-20180613185708-15554eb68e5d
github.com/fsouza/fake-gcs-server v1.47.7
Expand Down Expand Up @@ -308,7 +309,6 @@ require (
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
github.com/elastic/elastic-transport-go/v8 v8.3.0 // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/evanphx/json-patch v5.7.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
github.com/fatih/camelcase v1.0.0 // indirect
Expand Down