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
|
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
|
allPlugins := core_plugins.Plugins().PolicyPlugins(ordered.Policies) |
Attempting to call PolicyPlugins with ordered.Policies is going to result in panic
|
panic(fmt.Sprintf("Couldn't find plugin %s", policy)) |
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
However, it might cause panic, because
ordered.Policieslist contains hardcoded policy typeskuma/pkg/api-server/resource_endpoints.go
Line 1298 in 6a959ad
Attempting to call
PolicyPluginswithordered.Policiesis going to result in panickuma/pkg/core/plugins/registry.go
Line 137 in 6a959ad