/serverless-compute-skills:dapr-configuration-validationfrom serverless-compute-skills
Validates Dapr component configurations (state store, pub/sub, binding) before deploy, catching missing scopes, inline secrets, unbounded retries, and resiliency gaps that kubectl apply won't reject.
Ships in serverless-compute-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 Dapr Component manifest almost always applies cleanly even when it
is operationally unsafe — an unscoped state store reachable by every
app in the namespace, a plaintext credential inlined under
spec.metadata, a pub/sub component with no dead-letter or retry
policy, or a binding pointed at the wrong environment's backend all
pass Kubernetes' schema validation and only surface later as a security
finding, a silent data-loss incident, or a cross-environment data leak.
This skill is the pre-deploy validation gate for Dapr component
configuration, complementing
dapr-distributed-runtime-configuration,
which covers building that configuration in the first place — the same
role
aws-lambda-configuration-validation
plays for Lambda and
knative-configuration-validation
plays for Knative Serving.
Component manifest
(state store, pub/sub, binding, secret store) to any environment.dapr.io/v1alpha1 Component or
Resiliency resources.scopes, inline secrets, or absent resiliency policies.kubectl read access to components.dapr.io and
resiliencies.dapr.io in the target namespace(s).yq/jq for parsing manifest output in scripted checks.app-ids are legitimately allowed to use each
component — this is domain knowledge that must come from the team
owning the component, not something derivable from the manifest
alone; validation checks that scopes exists and is non-empty, but
confirming it's the correct set of apps still requires a human
reviewer with that context.secretKeyRef exists syntactically.Validate every component has non-empty scopes. An unscoped
component is usable by any Dapr-enabled app in the namespace:
kubectl get components.dapr.io -n prod -o json | \
jq '.items[] | select((.scopes // []) | length == 0) | .metadata.name'
Any component name in the output is a required fix — add explicit
scopes listing only the intended app-ids — not an item to note
for later.
Validate no component embeds a secret-shaped value directly under
spec.metadata. A value field (as opposed to secretKeyRef)
holding something that looks like a password, connection string, or
API key is a finding:
kubectl get components.dapr.io -n prod -o json | \
jq '.items[] | .spec.metadata[] | select(.value != null and (.name | test("(?i)password|secret|token|key")))'
Any match here should be replaced with secretKeyRef pointing at a
Kubernetes Secret or the organization's standard secret store
component, and the exposed value rotated if it was ever applied to
a live cluster (and doubly so if committed to source control).
Validate a Resiliency policy exists for components/apps that
matter operationally (anything on a critical request path or
holding data with a durability requirement) — Dapr does not require
one, and its absence is easy to miss:
kubectl get resiliencies.dapr.io -n prod -o json | \
jq '[.items[].spec.targets.components // {} | keys[]] + [.items[].spec.targets.apps // {} | keys[]]'
Cross-check the resulting list of targets against the full list of components/apps in the namespace; anything on the critical list (defined per-project, e.g. anything backing a customer-facing checkout or payment flow) with no matching target is a finding.
Validate retry/circuit-breaker policies aren't set to unbounded or
effectively-infinite values without an accompanying timeout —
maxRetries: -1 (Dapr's "retry forever" value) with no timeout
at the same target can hold a caller's request open indefinitely
during a sustained downstream outage:
kubectl get resiliencies.dapr.io -n prod -o json | \
jq '.items[].spec.policies.retries | to_entries[] | select(.value.maxRetries == -1)'
Flag any maxRetries: -1 policy and confirm a timeout policy is
also attached to the same target — infinite retries alone, without a
bound on total wait time, is a latent hang risk.
Validate pub/sub components used for anything with a durability
requirement aren't silently using an at-most-once or otherwise
lossy configuration — check the component's type and any
delivery-guarantee-affecting metadata fields against what the
backing broker actually supports, and confirm the application
consuming it acknowledges messages correctly (Dapr's pub/sub API
requires an explicit success/retry/drop response from the
subscriber; an app that always returns success regardless of
processing outcome silently causes message loss on real failures).
Wire these checks into CI as a required gate:
#!/usr/bin/env bash
set -euo pipefail
NS=prod
UNSCOPED=$(kubectl get components.dapr.io -n "$NS" -o json | \
jq -r '.items[] | select((.scopes // []) | length == 0) | .metadata.name')
if [ -n "$UNSCOPED" ]; then
echo "FAIL: unscoped Dapr component(s) found: $UNSCOPED"
exit 1
fi
INLINE_SECRETS=$(kubectl get components.dapr.io -n "$NS" -o json | \
jq -r '.items[] | .metadata.name as $n | .spec.metadata[]? |
select(.value != null and (.name | test("(?i)password|secret|token|key"))) | $n')
if [ -n "$INLINE_SECRETS" ]; then
echo "FAIL: possible inline secret in component(s): $INLINE_SECRETS"
exit 1
fi
echo "OK: Dapr components passed baseline validation"
Component/Resiliency resources, not only before a
first deploy — a component can be hand-edited directly in a cluster
outside GitOps, and periodic re-validation catches that drift.scopes" and "inline secret-shaped value" as hard failures
by default, not warnings — both are common, easy-to-introduce
mistakes with real security consequences, not edge cases.timeout paired with
any unbounded retry policy) rather than only checking that a policy
exists at all — a policy that exists but still allows an effectively
infinite hang doesn't actually protect anything.Symptom: A security review finds a state store or pub/sub
component is reachable by an application that has no legitimate
reason to use it.
Fix: The component manifest omitted scopes; add explicit
scopes restricted to the actual set of app-ids that need it, and
add a CI check that fails on any component with empty/missing
scopes going forward.
Symptom: A credential (broker password, API key) is found in
plaintext inside a component manifest, either in a cluster or in
source control.
Fix: Replace the inline value with secretKeyRef pointing at a
Kubernetes Secret or the standard secret store component, purge the
plaintext value from git history if it was committed, and rotate the
exposed credential immediately — treat this as a live security
incident, not just a config cleanup.
Symptom: A service-to-service call via Dapr's invocation building
block occasionally hangs for a very long time during a downstream
outage, well beyond any reasonable expected latency.
Fix: A retry policy set to maxRetries: -1 (retry forever) has
no accompanying timeout target; add a bounded timeout alongside the
retry policy so a sustained outage fails the caller's request instead
of holding it open indefinitely.
Symptom: Messages published to a pub/sub component are missing under load, and no error appears anywhere in application logs. Fix: The subscribing application is likely returning a success response to Dapr regardless of actual processing outcome (a common mistake when adapting existing message-handling code to Dapr's pub/sub HTTP contract); fix the subscriber to return the correct retry/drop response on processing failure, and add a dead-letter target so exhausted retries are recorded rather than silently dropped.
Symptom: A component intended only for a staging environment is
found configured with a production backend's connection details (or
vice versa) during an audit.
Fix: Component manifests weren't namespaced/labeled clearly per
environment, or an environment-specific overlay was applied to the
wrong target; validate component metadata values (hostnames,
connection endpoints) against an expected-environment allowlist as
part of the CI gate, not just at manual review time.
Scenario: A CI pipeline is about to apply a new orders-statestore
component with no scopes field and a redisPassword value inlined
directly as plaintext, alongside a Resiliency policy that sets
maxRetries: -1 for calls to order-fulfillment-service with no
timeout.
Validation run:
$ kubectl get components.dapr.io -n prod -o json | \
jq '.items[] | select((.scopes // []) | length == 0) | .metadata.name'
"orders-statestore"
$ kubectl get components.dapr.io -n prod -o json | \
jq '.items[] | .spec.metadata[] | select(.value != null and (.name | test("(?i)password")))'
{
"name": "redisPassword",
"value": "<REDACTED-EXAMPLE-VALUE>"
}
$ kubectl get resiliencies.dapr.io -n prod -o json | \
jq '.items[].spec.policies.retries | to_entries[] | select(.value.maxRetries == -1)'
{
"key": "retryForever",
"value": { "policy": "exponential", "maxRetries": -1 }
}
Three findings block the merge: the component has no scopes, it has
an inline plaintext password instead of a secretKeyRef, and the
attached retry policy has no paired timeout. The fixes applied: add
scopes: [order-service, order-fulfillment-service]; replace the
inline redisPassword value with secretKeyRef against a
orders-redis-secret Kubernetes Secret and rotate the credential that
was briefly inlined; and add a timeouts policy bound to the same
target as retryForever so a sustained outage fails fast instead of
hanging indefinitely. The pipeline is re-run only after all three
findings are resolved.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin serverless-compute-skills10 skills in this plugin
/aws-lambda-configuration-validationValidates an AWS Lambda function's configuration — reserved/provisioned concurrency budget, VPC networking config, environment variables, IAM execution role scope, and failure handling — before it deploys, catching problems that only otherwise surface as production throttling or an incident. Use when the user asks to "validate a Lambda function before deploy," "check Lambda reserved concurrency," "review a Lambda IAM role," "why is my Lambda throttling," or "add a pre-deploy check for Lambda config."
/aws-lambda-packaging-and-configurationPackages an AWS Lambda function as a zip deployment package or container image, tunes memory/timeout/ephemeral storage, mitigates cold starts, and scopes the function's IAM execution role to least privilege. Use when the user asks to "package a Lambda function," "build a container image for Lambda," "reduce Lambda cold start latency," "tune Lambda memory or timeout," "add a Lambda layer," or "scope down a Lambda execution role."
Other plugins' skills for the same job