Skip to content

Commit 68b309a

Browse files
committed
Allow DB impersonation
1 parent b1a3eae commit 68b309a

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

examples/chart/teleport-cluster/templates/auth/config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ data:
139139
- read
140140
- update
141141
- delete
142+
impersonate:
143+
users:
144+
- Db
145+
roles:
146+
- Db
142147
deny: {}
143148
version: v7
144149
---

integrations/operator/controllers/resources/testlib/env.go

+4
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ func defaultTeleportServiceConfig(t *testing.T) (*helpers.TeleInstance, string)
144144
types.NewRule(types.KindNode, unrestricted),
145145
types.NewRule(types.KindDatabase, unrestricted),
146146
},
147+
Impersonate: &types.ImpersonateConditions{
148+
Users: []string{"Db"},
149+
Roles: []string{"Db"},
150+
},
147151
},
148152
})
149153
require.NoError(t, err)

integrations/operator/hack/fixture-operator-role.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,10 @@ spec:
8181
- read
8282
- update
8383
- delete
84+
impersonate:
85+
users:
86+
- Db
87+
roles:
88+
- Db
8489
deny: {}
8590
version: v7

0 commit comments

Comments
 (0)