gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.6k stars 1.76k forks source link

Explain how wildcards work in label matching syntax in role definitions #33811

Open ravicious opened 1 year ago

ravicious commented 1 year ago

Applies To

Details

A customer asked if they can just write

db_labels:
  foo: bar*

to allow access to DBs with labels foo: bar1, foo: bar2 and so on.

My empirical tests have shown that this is possible, however our docs don't tell that clearly. The access control reference mentions wildcard a couple of times, but it mostly just shows that "*" means any node and doesn't mention wildcarding a suffix such as "bar*". Another problem is the fact that some fields support wildcards while others don't (see Related Issues).

It seems to me we should at least document how wildcards work in our label matching syntax.

How will we know this is resolved?

When the Access Controls reference explains how wildcards work in label matching syntax.

Related Issues

ptgott commented 8 months ago

Let's change the "RBAC for infrastructure resources" H2 of the Access Controls reference to: