/service-mesh-gateway-skills:consul-configuration-validationfrom service-mesh-gateway-skills
Validates Consul service definitions, config entries, and intentions before applying to production. Syntax-checks agent config, dry-runs catalog changes, and confirms allow/deny decisions.
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.
Consul accepts a wide range of syntactically valid HCL/JSON that does
nothing useful at runtime: a service-splitter referencing a
service-resolver subset with zero matching instances, an intention
scoped to a service name that doesn't exist yet, or an agent config file
with a typo'd key that's silently ignored rather than rejected. None of
these fail loudly — they fail by having no effect, which is worse,
because the operator believes the change is live. This skill covers the
validation commands that catch these gaps before (or immediately after)
applying, distinct from
consul-service-mesh-and-discovery-configuration,
which covers writing the mesh/discovery configuration in the first
place.
service-resolver/service-splitter/service-router/
service-intentions), or agent configuration file to a production
datacenter.consul config write.consul CLI matching (or compatible with) the target datacenter's
server version, with network access to at least one server/agent for
live checks (consul intention check, consul catalog).consul agent -dev) to apply candidate config entries
against, or a non-production datacenter that mirrors production
topology closely enough that subset/intention checks are meaningful.consul-k8s-managed CRDs (on Kubernetes) can additionally be
validated with standard kubectl apply --dry-run=server, which
catches schema errors but not the semantic gaps (subset mismatches,
unreachable intentions) that need a live consul intention check.Validate agent configuration file syntax before reloading an agent — a config file with invalid HCL/JSON or an unknown key can prevent an agent from starting or reloading cleanly:
consul validate /etc/consul.d/
Run this against the actual config directory an agent loads from, not just a single file in isolation, since Consul merges multiple files in a directory and an interaction between two files can be the actual problem.
Dry-run a service registration against a disposable or dev-mode agent before registering it in production, to catch a malformed service definition (bad port type, invalid check interval) before it reaches the real catalog:
consul agent -dev -config-dir=/tmp/consul-validate &
consul services register payments-api.json
consul catalog services
Check what an intention actually resolves to, rather than reading the HCL and assuming it's scoped correctly — this is the single most useful validation command for mesh authorization:
consul intention check checkout-service payments-api
This returns Consul's actual computed decision (Allowed/Denied)
for that specific source/destination pair, accounting for all
applicable intentions and default policy — far more reliable than
manually tracing precedence rules across multiple intention files.
List and review all intentions for a service before changing any
one of them, since intentions are evaluated together and a new
narrow allow can be shadowed by an existing broader deny (or vice
versa) depending on precedence:
consul intention list
consul intention get payments-api
Validate config-entry references resolve to real, matching
instances before assuming a service-splitter/service-router is
correctly wired:
consul catalog nodes -service=payments-api
consul catalog service payments-api -tags
Cross-check the actual registered instances' metadata (version tag,
in the canary example) against every Filter expression in the
corresponding service-resolver — a subset with a filter matching
zero instances is accepted by consul config write without any
error.
Confirm a config entry is actually stored and matches intent
after writing it — consul config write succeeding only means the
entry was syntactically valid and accepted, not that it does what you
intended:
consul config write payments-api-splitter.hcl
consul config read -kind service-splitter -name payments-api
Wire validation into CI as a gate before any config entry or intention reaches a production datacenter:
consul validate ./consul-config/
# then, against a disposable dev-mode instance:
consul config write ./consul-config/service-resolver.hcl
consul config write ./consul-config/service-splitter.hcl
consul config read -kind service-splitter -name payments-api | \
jq -e '.Splits | length > 0'
Fail the pipeline on any non-zero exit from consul validate or a
missing/empty config-entry read-back.
For consul-k8s CRDs, dry-run against the API server first, then
confirm the Consul side actually reflects the intended state (CRD
acceptance by Kubernetes doesn't guarantee the consul-k8s controller
successfully reconciled it into Consul's catalog):
kubectl apply --dry-run=server -f service-intentions.yaml
kubectl apply -f service-intentions.yaml
kubectl get serviceintentions payments-api -o yaml | \
grep -A3 status
consul config write with consul config read (or the
Kubernetes CRD's status field) to confirm the entry landed as
intended — successful write acceptance and correct runtime effect are
different things.consul intention check as the authoritative answer to "will this
call be allowed," not a manual read of the intention files — precedence
rules across multiple intentions are easy to get wrong by inspection.consul validate), not
individual files, so cross-file interactions are caught the same way
the running agent would encounter them.service-resolver subset filters against actually
registered instance metadata before relying on a
service-splitter/service-router built on top of them — a filter
matching zero instances is a silent no-op, not an error.consul intention list datacenter-wide for
wildcard allow rules that have outlived their original purpose —
intention sprawl is as real a risk here as AuthorizationPolicy/
NetworkPolicy sprawl in other meshes.Symptom: consul config write succeeds for a service-splitter,
but 100% of traffic still lands on one subset.
Fix: Almost always a service-resolver subset filter matching
zero registered instances — cross-check consul catalog service <name> -tags against every subset Filter expression before assuming
the splitter itself is broken.
Symptom: An intention explicitly allows checkout-service → payments-api, but consul intention check still returns Denied.
Fix: A more specific or higher-precedence intention (or the
datacenter's default policy) is overriding it — run consul intention list for the full picture rather than assuming the one intention you
wrote is the only one in effect. Consul evaluates intentions by
specificity, not just file order.
Symptom: An agent fails to reload after a config file change, with
a vague or no error in the logs.
Fix: Run consul validate against the full config directory
before reloading — it catches HCL/JSON syntax errors and unknown keys
that the running agent's reload path may report unhelpfully or not at
all.
Symptom: A consul-k8s ServiceIntentions CRD applies cleanly per
kubectl apply with no errors, but the corresponding Consul intention
never takes effect.
Fix: CRD acceptance by the Kubernetes API server only confirms
schema validity, not that the consul-k8s controller successfully
reconciled it into Consul — check the CRD's status field and the
consul-k8s controller pod's logs, and confirm with consul intention get directly against Consul, not just kubectl get.
Symptom: To unblock a failing intention check during
troubleshooting, someone applies a temporary wildcard
Sources: [{Name: "*", Action: "allow"}] intention "just to confirm
it's an intentions problem," and it's left in place after the
incident.
Fix: A wildcard allow intention removes mesh authorization
entirely for that destination service — treat it as a scoped,
time-boxed diagnostic step only, applied in a non-production
datacenter where possible, with an explicit tracked task to revert it
and re-apply the correct narrow intention once the actual root cause
(often a resolver/subset mismatch, not an intentions problem at all)
is found.
Scenario: Validate the canary rollout config entries and intention from the worked example in consul-service-mesh-and-discovery-configuration before they reach production.
# 1. Syntax-check everything first
consul validate ./consul-config/
# 2. Confirm registered instances actually carry the version metadata
# the resolver subsets depend on
consul catalog service payments-api -tags
# expect instances tagged version=v1 and version=v2 respectively
# 3. Apply config entries to a disposable dev instance and read back
consul agent -dev -config-dir=/tmp/consul-validate &
consul config write ./consul-config/service-resolver.hcl
consul config write ./consul-config/service-splitter.hcl
consul config read -kind service-splitter -name payments-api
# 4. Confirm the intention produces the intended decision
consul config write ./consul-config/service-intentions.hcl
consul intention check checkout-service payments-api # expect: Allowed
consul intention check some-other-service payments-api # expect: Denied
Only once consul intention check confirms both the intended allow and
the intended deny, and consul catalog service payments-api -tags
confirms both subsets have at least one matching instance, is the
change applied to the real production datacenter with consul config write against it directly, followed by the same consul intention check commands re-run against production to confirm parity.
CiliumNetworkPolicy that could independently block the same traffic.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin service-mesh-gateway-skills11 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-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."
/grpc-service-troubleshootingDiagnoses gRPC-specific failure modes — DEADLINE_EXCEEDED, connection and keepalive/GOAWAY issues, HTTP/2 multiplexing problems behind L4/L7 load balancers, and protobuf/proto-compatibility breakage across client/server versions — distinct from generic HTTP ingress troubleshooting. Use when a user asks to "why is my gRPC call hanging or returning DEADLINE_EXCEEDED," "gRPC keepalive pings disconnecting my clients," "gRPC load balancing isn't spreading traffic across pods," "a proto field changed and now some clients fail," or "gRPC streaming call drops after N minutes."
Other plugins' skills for the same job