quarkus-security
Quarkus Security best practices for authentication, authorization, JWT/OIDC, RBAC, input validation, CSRF, secrets management, and dependency security.
Security Assessment
About quarkus-security
The quarkus-security skill is a defensive best-practices reference for securing Quarkus (Java) applications. It addresses the common problem of applications shipping without robust authentication, authorization, input validation, and safe data-access patterns by collecting canonical, secure Quarkus idioms in one place. The guidance is framed around when to activate it: adding JWT/OIDC/Basic auth, implementing role-based access, validating user input, configuring CORS and security headers, managing secrets, adding rate limiting, and scanning dependencies for CVEs.
It provides annotated Java code examples for JWT-protected resources, custom authentication filters, `@RolesAllowed` role-based access control, programmatic security checks with `SecurityIdentity`, and ownership verification. For input handling it demonstrates Bean Validation on DTOs and custom constraint validators, contrasts unsafe versus validated endpoints, and shows SQL-injection-safe patterns using Panache parameterized and named queries rather than string concatenation. It also covers secure password hashing with `BcryptUtil` and configuration examples for MicroProfile JWT and OIDC via `application.properties`, including sourcing secrets from environment variables.
The target users are Java/Quarkus backend developers, application security reviewers, and teams performing security-focused code review. Typical use cases include hardening new endpoints, reviewing authentication and authorization logic, preventing injection and validation flaws, and standardizing secure secret handling. The content is entirely security-hardening guidance with safe defaults, not offensive tooling.
FAQ
What framework and language does this skill target?
Quarkus applications written in Java, using MicroProfile/SmallRye JWT, OIDC, Bean Validation, and Panache for data access.
Does it cover both authentication and authorization?
Yes. It shows JWT/OIDC authentication and custom auth filters, plus authorization via @RolesAllowed, SecurityIdentity ownership checks, and programmatic security services.
How does it recommend preventing SQL injection?
Use Panache active-record parameterized queries and named parameters, and always bind parameters in native queries rather than concatenating user input into query strings.
How should secrets like the OIDC client secret be managed?
The configuration examples source secrets from environment variables (for example an OIDC secret referenced as an env placeholder in application.properties), and the activation list mentions Vault and config sources for secrets management.
Is this a runnable tool or reference guidance?
It is reference guidance and code patterns to apply during development and review; it does not execute anything on your behalf.
Install quarkus-security
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
affaan-m/everything-claude-code