dapr-middleware-validator

Validate DAPR HTTP middleware YAML for security and pipeline order.

4|3|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/Sahib-Sawhney-WH/dapr-claude-plugin --skill dapr-middleware-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dapr-middleware-validator
Source: https://github.com/Sahib-Sawhney-WH/dapr-claude-plugin/tree/main/skills/middleware-validator
Command: npx skills add https://github.com/Sahib-Sawhney-WH/dapr-claude-plugin --skill dapr-middleware-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically validate DAPR HTTP middleware configuration files to ensure correct types and secure, well-ordered pipelines.

Core Features & Use Cases

  • OAuth2/Bearer/OPA validation: Checks that secret references, HTTPS URLs, and policies are correct.
  • Pipeline order: Verifies the recommended order of middleware handlers.
  • Security checks: Detects plain-text credentials and insecure endpoints.

Quick Start

Validate your middleware YAML before deployment using Claude with this Skill.

Frequently Asked Questions about dapr-middleware-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate DAPR HTTP middleware configuration files before deployment?

Validate DAPR HTTP middleware configuration files by checking security settings, secret references, and handler pipeline order. This Skill inspects YAML files for HTTPS enforcement, correct secretKeyRef usage, and proper sequencing of routerchecker, ratelimit, bearer, OPA, and routeralias handlers to catch misconfigurations before deployment.

What security checks does middleware validation perform for OAuth2 and Bearer tokens?

Middleware validation checks that OAuth2 and Bearer token configurations use secure HTTPS endpoints, properly reference secrets, and avoid plain-text credentials. It verifies secretKeyRef fields are correctly specified and detects insecure endpoint configurations that could expose credentials.

Why is the order of middleware handlers important in DAPR pipelines?

Middleware handler order affects request flow and security enforcement. The correct sequence—routerchecker, ratelimit, bearer, OPA, routeralias—ensures rate limiting runs before authentication, OPA policies enforce after identity is verified, and routing rules apply consistently without bypasses or conflicts.

Can I validate OPA policy configurations in DAPR middleware?

Yes, this Skill validates OPA policy configurations by checking for default deny rules and correct policy syntax. It ensures policies are properly configured to fail securely and integrate correctly within the middleware pipeline.

What happens if my rate limiting middleware is misconfigured in the pipeline?

Misconfigured rate limiting—such as incorrect handler sequencing or missing configuration references—may fail to enforce limits or bypass authentication checks. Validation detects ordering issues and configuration errors so rate limits apply consistently before downstream handlers.

Do I need to manually check each middleware configuration file?

No, this Skill automatically validates DAPR HTTP middleware YAML files when created or modified, checking security requirements, handler ordering, and OAuth2/Bearer/OPA configurations. Automated validation eliminates manual review and catches configuration errors early.