Skip to content

Commit 6107344

Browse files
proto: Alias prefix and prefixed
To reduce confusion, this change introduces aliasing: * ACLPattern.ACL_PATTERN_PREFIX to ACLPattern.ACL_PATTERN_PREFIXED * PatternType.PATTERN_TYPE_PREFIXED to PatternType.PATTERN_TYPE_PREFIX Signed-off-by: Michael Boquard <michael@redpanda.com>
1 parent 3019589 commit 6107344

File tree

7 files changed

+35
-16
lines changed

7 files changed

+35
-16
lines changed

proto/redpanda/core/admin/v2/shadow_link.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,14 @@ enum ScramMechanism {
568568
}
569569
// The matching pattern type
570570
enum PatternType {
571+
option allow_alias = true;
571572
PATTERN_TYPE_UNSPECIFIED = 0;
572573
// Must match the filter exactly
573574
PATTERN_TYPE_LITERAL = 1;
574575
// Will match anything that starts with filter
575576
PATTERN_TYPE_PREFIX = 2;
577+
// Will match anything that starts with filter
578+
PATTERN_TYPE_PREFIXED = 2;
576579
}
577580
// What type of filter this is, include or exclude
578581
enum FilterType {

proto/redpanda/core/common/v1/acl.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@ enum ACLResource {
4242
}
4343
// The ACL pattern type
4444
enum ACLPattern {
45+
option allow_alias = true;
4546
ACL_PATTERN_UNSPECIFIED = 0;
4647
// Wildcard to match any pattern
4748
ACL_PATTERN_ANY = 1;
4849
// Match a literal string
4950
ACL_PATTERN_LITERAL = 2;
5051
// Match a prefix
5152
ACL_PATTERN_PREFIXED = 3;
53+
// Match a prefix
54+
ACL_PATTERN_PREFIX = 3;
5255
// Match serves as a catch-all for all the names of a topic
5356
// the principal is authorized to access
5457
ACL_PATTERN_MATCH = 4;

tests/rptest/clients/admin/proto/redpanda/core/admin/v2/__init__.pyi

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/rptest/clients/admin/proto/redpanda/core/admin/v2/shadow_link_pb2.py

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/rptest/clients/admin/proto/redpanda/core/admin/v2/shadow_link_pb2.pyi

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/rptest/clients/admin/proto/redpanda/core/common/v1/acl_pb2.py

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/rptest/clients/admin/proto/redpanda/core/common/v1/acl_pb2.pyi

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)