-
Notifications
You must be signed in to change notification settings - Fork 355
Open
Labels
kind/bugA bugA bugtriage/acceptedThe issue was reviewed and is complete enough to start working on itThe issue was reviewed and is complete enough to start working on it
Milestone
Description
Description
Kuma has a list of enabled policies, removing the policy from the list supposed to disable all the API endpoints related to the policy
kuma/deployments/charts/kuma/values.yaml
Lines 957 to 982 in 6a959ad
| plugins: | |
| resources: | |
| hostnamegenerators: true | |
| meshexternalservices: true | |
| meshidentities: true | |
| meshmultizoneservices: true | |
| meshservices: true | |
| meshtrusts: true | |
| workloads: true | |
| policies: | |
| meshaccesslogs: true | |
| meshcircuitbreakers: true | |
| meshfaultinjections: true | |
| meshhealthchecks: true | |
| meshhttproutes: true | |
| meshloadbalancingstrategies: true | |
| meshmetrics: true | |
| meshpassthroughs: true | |
| meshproxypatches: true | |
| meshratelimits: true | |
| meshretries: true | |
| meshtcproutes: true | |
| meshtimeouts: true | |
| meshtlses: true | |
| meshtraces: true | |
| meshtrafficpermissions: true |
However, it might cause panic, because ordered.Policies list contains hardcoded policy types
kuma/pkg/api-server/resource_endpoints.go
Line 1298 in 6a959ad
| allPlugins := core_plugins.Plugins().PolicyPlugins(ordered.Policies) |
Attempting to call PolicyPlugins with ordered.Policies is going to result in panic
kuma/pkg/core/plugins/registry.go
Line 137 in 6a959ad
| panic(fmt.Sprintf("Couldn't find plugin %s", policy)) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugA bugA bugtriage/acceptedThe issue was reviewed and is complete enough to start working on itThe issue was reviewed and is complete enough to start working on it