/service-mesh-gateway-skills:kong-configuration-validationfrom service-mesh-gateway-skills
Validates Kong declarative config (kong.yml) and Kubernetes CRDs before production — schema-checking with deck validate, diffing against live gateway state with deck diff, and confirming route/plugin behavior.
Ships in service-mesh-gateway-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A kong.yml file or KongPlugin CRD that parses successfully can still
be a no-op in production: a plugin attached to the wrong Route or
Service name (a typo Kong's schema validator has no way to catch,
because it's just a string reference), a rate-limiting plugin left on
the default local counting policy that silently multiplies across
nodes, or a deck sync that removes a Route nobody meant to touch
because it wasn't present in the source file. None of these fail
loudly — the sync succeeds, the plugin exists, and the gap is only
visible once real traffic hits it (or doesn't). This skill covers the
validation commands that catch these before (or immediately after)
applying, distinct from
kong-api-gateway-configuration,
which covers writing the Service/Route/Plugin configuration in the
first place.
deck sync (or applying Kong CRDs) against a
production Kong instance, to confirm the change is exactly what's
intended and nothing else.kong.yml or a KongPlugin CRD actually resolves to the Route/
Service/Consumer you meant, not a similarly-named one.deck (decK) matching (or compatible with) the target Kong version,
with network access to the Admin API of the instance being validated
against (or a disposable/staging Kong instance for CI).GET /services, /routes,
/plugins, /consumers) for anything beyond static file schema
checking — confirming a plugin's real, effective configuration
requires reading it back from the running gateway, not just the
source file.kubectl access to KongPlugin, KongClusterPlugin,
KongIngress, and KongConsumer CRDs, plus the Kong Ingress
Controller's own logs/status for confirming a CRD was actually
reconciled (CRD acceptance by the Kubernetes API server doesn't
guarantee KIC successfully applied it to Kong).deck sync --dry-run or a
real deck sync can target without risk to production.Validate kong.yml schema before diffing or syncing anything,
catching structural errors (unknown plugin config field, malformed
YAML) early:
deck validate -s kong.yml
This confirms the file is well-formed and every plugin's config
block matches that plugin's schema — it cannot confirm a Route
reference actually exists or that a plugin is attached at the
intended level, which is what the next steps are for.
Always run deck diff before deck sync, and treat its output
as a change to review, not a formality:
deck diff --kong-addr https://kong-admin.internal:8444 -s kong.yml
deck diff shows exactly what will be created, updated, or
deleted — a kong.yml that's missing a Route present in the
live gateway will show it as a deletion, which is easy to miss if the
diff output isn't actually read before running sync.
Confirm a plugin resolves to the intended Route/Service/Consumer,
not just that it exists somewhere in the config, since a plugin
config block gives no compile-time guarantee its route/service/
consumer reference is the one you meant:
curl -s https://kong-admin.internal:8444/routes/payments-api-route/plugins | jq
curl -s https://kong-admin.internal:8444/services/payments-api/plugins | jq
Cross-check the returned plugin list's name and config against
what you intended for that specific Route/Service — a plugin
attached one level higher or lower than intended is accepted without
error at apply time.
Confirm rate-limiting's counting policy explicitly, since the
difference between local and redis/cluster has no effect on
whether deck sync succeeds, only on whether the limit is enforced
correctly at runtime:
curl -s https://kong-admin.internal:8444/plugins?name=rate-limiting | \
jq '.data[].config.policy'
Any result showing local on a multi-node deployment is a real
finding, not a stylistic choice — flag it before this reaches
production. See
api-gateway-rate-limiting-and-quota-management
for why this matters at the strategy level.
Test auth and rate-limiting plugins against real requests in
staging, not just by reading the config back, since a
syntactically-correct plugin can still be misconfigured in a way
only visible under live traffic (wrong header name, wrong limit_by
scope):
curl -i https://kong-staging.internal/v1/payments -H "apikey: <TEST_KEY>"
# expect 200 with a valid key
curl -i https://kong-staging.internal/v1/payments
# expect 401 with no key
for i in $(seq 1 105); do curl -s -o /dev/null -w "%{http_code}\n" \
https://kong-staging.internal/v1/payments -H "apikey: <TEST_KEY>"; done | sort | uniq -c
# expect a mix of 200s followed by 429s once the configured limit is exceeded
For Kubernetes CRDs, confirm KIC actually reconciled the change,
not just that kubectl apply succeeded:
kubectl apply --dry-run=server -f kongplugin-rate-limit.yaml
kubectl apply -f kongplugin-rate-limit.yaml
kubectl get kongplugin rate-limit-payments -o yaml | grep -A5 status
kubectl logs -n kong deploy/kong-ingress-controller --tail=100 | grep -i payments
A KongPlugin CRD with no corresponding entry in Kong's Admin API
(GET /plugins) means KIC failed to reconcile it — check the
controller's logs for the actual reason (often a missing
konghq.com/plugins annotation on the target Ingress) rather than
assuming the plugin is active because the CRD exists.
Wire into CI as a gate: fail the pipeline on a non-zero
deck validate exit, and on any deck diff showing an unreviewed
deletion or a rate-limiting plugin whose policy isn't
redis/cluster in a multi-node target:
deck validate -s kong.yml || exit 1
deck diff --kong-addr "$KONG_ADMIN_ADDR" -s kong.yml > diff.txt
grep -q "^- " diff.txt && { echo "unexpected deletions in diff"; cat diff.txt; exit 1; }
Audit Admin API exposure as part of validation, not just plugin/route correctness — an unauthenticated Admin API reachable outside a trusted network is a standing risk regardless of how correct the Route/Plugin config itself is:
curl -s -o /dev/null -w "%{http_code}\n" https://kong-admin.internal:8444/status
# from outside the trusted network — expect connection refused/timeout,
# not a 200
deck sync without first reading the deck diff output —
a missing Route/Service in the source file is a silent deletion, not
a validation error, and sync will happily remove it.GET /routes/<name>/plugins, /services/<name>/plugins) after syncing,
not just that deck validate/deck sync exited zero — schema
validity and correct attachment level are different guarantees.policy field as a required check,
not an optional detail — local on a multi-node Kong deployment is a
functional bug, not a valid alternative configuration, unless the
deployment is genuinely single-node.kong.yml/CRD diff at all.Symptom: deck sync runs cleanly, but a Route that existed
yesterday returns 404 Not Found today, and nobody remembers
deleting it.
Fix: The Route was simply absent from the kong.yml used for the
sync (e.g. an incomplete export, a merge that dropped a section), and
deck sync treats "not in the source" as "delete it." Always read
deck diff output before syncing, and keep the full declarative
config in version control so an incomplete file is caught by a
smaller-than-expected diff, not discovered as a production 404.
Symptom: A rate-limiting plugin's config looks correct and
deck validate passes, but the effective limit in production is far
higher than configured.
Fix: Check config.policy via the Admin API
(GET /plugins?name=rate-limiting) — local counts per Kong node
independently, so the true cluster-wide limit is the configured value
multiplied by node count. Switch to redis/cluster and confirm via
the same query that the change took effect.
Symptom: A KongPlugin CRD applies with no kubectl errors, but
the plugin never shows up when querying Kong's Admin API directly.
Fix: CRD acceptance by the Kubernetes API server only confirms
schema validity — it does not confirm the Kong Ingress Controller
successfully reconciled it into Kong. Check the CRD's status field
and the KIC pod's logs for a reconciliation error, most commonly a
missing konghq.com/plugins: <plugin-name> annotation on the target
Ingress that the plugin is supposed to attach to.
Symptom: An key-auth/jwt plugin is confirmed present and
correctly attached, but requests with valid credentials still return
401 Unauthorized.
Fix: Check the plugin's config for the exact header/claim name
expected (key_names, JWT claim mappings) against what the client
is actually sending — a plugin can be perfectly attached to the right
Route while still expecting a different header name than the one the
client uses; confirm with a real curl test in staging rather than
assuming attachment correctness implies behavioral correctness.
Symptom: To unblock testing during an incident, someone
temporarily removes the key-auth/rate-limiting plugin from a
production Route via a direct Admin API call, confirms traffic now
flows, and it's still missing hours later.
Fix: This is a real, unmanaged security/availability gap once
left in place — the change bypassed the declarative source of truth
entirely, so the next deck sync from the (unchanged) kong.yml
would silently restore it, but until then the Route has neither auth
nor rate-limiting. Treat any direct Admin API change as strictly
temporary and tracked, and re-run deck diff/deck sync from the
reviewed source immediately once the incident's real cause is found.
Scenario: Validate the payments-api kong.yml (Service, Route,
key-auth, and Redis-backed rate-limiting plugin) from the worked
example in
kong-api-gateway-configuration
before syncing it to production.
# 1. Schema validation
deck validate -s kong.yml
# 2. Diff against the live gateway — read this output, don't skim it
deck diff --kong-addr https://kong-admin.internal:8444 -s kong.yml
# 3. Sync to a staging Kong instance first
deck sync --kong-addr https://kong-staging-admin.internal:8444 -s kong.yml
# 4. Confirm plugin attachment and policy on staging
curl -s https://kong-staging-admin.internal:8444/routes/payments-api-route/plugins | \
jq '.data[] | {name, config}'
# expect: key-auth and rate-limiting plugins listed, rate-limiting config.policy == "redis"
# 5. Behavioral test against staging
curl -i https://kong-staging.internal/v1/payments -H "apikey: <TEST_KEY>"
curl -i https://kong-staging.internal/v1/payments
# expect 200 with the key, 401 without it
Only once the diff shows only the intended additions (no unexpected
deletions), the plugin query confirms policy: redis (not local), and
the 200/401 behavioral test passes against staging, is the same
kong.yml synced to the production Admin API — followed by re-running
step 4's plugin query and step 5's behavioral test against production to
confirm parity before the change is considered complete.
policy field on a rate-limiting plugin matters, checked for correctness in step 4 above.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/api-gateway-rate-limiting-and-quota-managementDesigns rate-limiting and quota strategy that applies across gateway tools — token bucket vs. sliding/fixed window algorithm choice, per-client vs. global vs. tiered limit scoping, burst allowance design, and distributed counter consistency — as the vendor-neutral layer underneath tool-specific plugins like Kong's `rate-limiting` or Apigee's `Quota`/`SpikeArrest`. Use when a user asks to "design a rate-limiting strategy," "choose between token bucket and sliding window," "set per-client vs. global API limits," "size a burst allowance," "why is my distributed rate limit inconsistent across nodes," or "protect a backend from one noisy client without punishing everyone else."
/apigee-api-management-and-governanceGoverns the full API lifecycle in Google Apigee (or comparable enterprise API-management platforms) — API proxy design, policy attachment (OAuth2/API key verification, quota, spike arrest, transformation), developer portal publishing, product-based monetization, and semantic versioning/deprecation of published APIs at organizational scale. Use when a user asks to "design an Apigee API proxy," "set up an API product for monetization," "version an API without breaking existing consumers," "add a spike arrest or quota policy in Apigee," "publish an API to a developer portal," or "govern API lifecycle across many teams."
/cilium-configuration-validationValidates CiliumNetworkPolicy, CiliumClusterwideNetworkPolicy, and Hubble observability configuration before a production rollout — syntax-checking policy files offline, confirming which endpoints and identities a policy actually selects, and using Hubble flow data to prove a policy enforces what it's meant to instead of trusting the YAML. Use when a user asks to "validate a CiliumNetworkPolicy before applying it," "check if this policy will actually match my pods," "confirm kube-proxy replacement is healthy before a rollout," "test an egress FQDN policy before merging," or "why is Hubble showing drops I didn't expect."
/cilium-ebpf-cni-and-mesh-configurationConfigures Cilium as an eBPF-based Kubernetes CNI — kube-proxy replacement, CiliumNetworkPolicy for L3/L4/L7 network policy, and Cilium's ambient-style service mesh capability built on the same eBPF datapath rather than per-pod sidecars. Use when a user asks to "install Cilium," "replace kube-proxy with Cilium," "write a CiliumNetworkPolicy," "compare Cilium's sidecar-less mesh to Istio ambient or Linkerd," "reduce per-pod proxy overhead with eBPF," or "troubleshoot Cilium connectivity after install."
/consul-configuration-validationValidates Consul service definitions, config entries, and intentions (mesh-level authorization) before applying them to a production datacenter — syntax-checking agent config, dry-running catalog changes, and confirming intentions produce the intended allow/deny decisions. Use when a user asks to "validate a Consul service definition," "check my Consul config before applying," "test an intention before it goes live," "why did my Consul config entry not take effect," or "lint Consul HCL/JSON in CI."
/consul-service-mesh-and-discovery-configurationConfigures HashiCorp Consul as a combined service mesh and service discovery layer, especially across multi-cloud or hybrid (VM + Kubernetes, multi-datacenter) environments where a Kubernetes-only mesh doesn't reach. Covers Consul Connect sidecar injection, intentions, config entries (service-splitter, service-resolver, service-router), and cluster peering / WAN federation for cross-datacenter service discovery. Use when a user asks to "set up Consul service mesh," "federate Consul across datacenters," "register a VM service with Consul alongside Kubernetes services," "configure Consul Connect sidecars," or "do service discovery across cloud providers."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin service-mesh-gateway-skillsOther plugins' skills for the same job