From 8dcd2bbd735e50817690ce33c521ea23637a23fc Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Sethi Date: Tue, 10 Jun 2025 14:41:46 +0000 Subject: [PATCH] Add additional fields in route table to handle more context Signed-off-by: Prabhjot Singh Sethi --- route/route.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/route/route.go b/route/route.go index 82920dd..433aa52 100644 --- a/route/route.go +++ b/route/route.go @@ -31,7 +31,18 @@ type Key struct { type Route struct { Key *Key `json:"key,omitempty"` Endpoint string `json:"endpoint,omitempty"` - IsPublic *bool `json:"isPublic,omitempty"` + + // If the route is publically accessible, then rest of the fields + // below are not relevant + IsPublic *bool `json:"isPublic,omitempty"` + + // if route is user specific RBAC constructs are not valid, rest of + // the fields below are not relevant + IsUserSpecific *bool `json:"isUserSpecific,omitempty"` + + // RBAC constructs associated with Route + ResourceName string `json:"resourceName,omitempty"` + Verb string `json:"verb,omitempty"` } type RouteTable struct {