Skip to content

Commit

Permalink
add example acl
Browse files Browse the repository at this point in the history
  • Loading branch information
petedannemann committed Nov 16, 2023
1 parent b1b5f21 commit d749523
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions examples/auth/acls/acl-default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
meta:
name: acl-default
cluster: local-cluster-auth
environment: local-env
region: local-region
description: |
This is a default ACL for the local cluster.
It grants read and describe access to the topic `my-topic` and read access to the group `my-group`
to the user `default`.
spec:
acls:
- resource:
type: topic
name: my-topic
patternType: literal
principal: 'User:default'
host: '*'
permission: allow
operations:
- Read
- Describe
- resource:
type: group
name: my-group
patternType: prefixed
principal: 'User:default'
host: '*'
permission: allow
operations:
- Read

0 comments on commit d749523

Please sign in to comment.