en un clic
review-security
// Security review checklist for OpenAEV code: RBAC, tenant isolation, data exposure, authentication. Use when reviewing PRs or auditing security of a feature.
// Security review checklist for OpenAEV code: RBAC, tenant isolation, data exposure, authentication. Use when reviewing PRs or auditing security of a feature.
| name | review-security |
| description | Security review checklist for OpenAEV code: RBAC, tenant isolation, data exposure, authentication. Use when reviewing PRs or auditing security of a feature. |
@AccessControlresourceType matches the entity being accessedactionPerformed matches the HTTP method semanticsskipRBAC = true is used, verify there's a comment explaining whyTenantBase entities must have @Filter(name = "tenantFilter")@Query — they bypass the filter:
grep -rn "nativeQuery = true" openaev-model/ openaev-api/
WHERE tenant_id = :tenantId or join via tenant@JsonIgnore — never in API output@ArraySchema(schema = @Schema(type = "string")) when returning IDstenant_id in any JSON responseResourceType.UNKNOWN or explicit admin checkRESOURCES_MANAGED_BY_GRANTSisUserHasAccess() returns meaningful logic, not just return truegrep -rn "password\|secret\|api_key\|apiKey\|token" --include="*.java" --include="*.ts" src/
application.properties use environment variables.env files committedDocument findings using conventional comments format:
issue (blocking): for security vulnerabilitiessuggestion (non-blocking): for improvementsnote: for informational itemsCreates tests for an existing feature following OpenAEV patterns: fixture class, composer, integration test with @Nested groups, and optionally unit tests. Use when asked to add tests or improve test coverage.
Scaffolds a complete feature end-to-end: JPA entity, repository, service, DTOs, mapper, controller, migration, tests (fixture + composer + integration test), and frontend actions/page. Use when asked to create a new feature or module.
Step-by-step general code review procedure for OpenAEV pull requests. Covers architecture, conventions, code quality, and delegation to specialized agents.
Frontend review checklist for OpenAEV React/TypeScript code: component patterns, forms, MUI usage, permissions, i18n, state management, dead code. Use when reviewing PRs or auditing frontend features.
Step-by-step tenant isolation audit for OpenAEV pull requests. Use when reviewing PRs that touch entities, repositories, native queries, or migrations.
Creates a Flyway Java-based migration for schema changes. Handles table creation, column additions, tenant isolation, and ES reindex. Use when asked to modify the database schema.