summer-security

Community

Secure Summer apps with APISIX & Keycloak

Authortaipt1504
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill removes the complexity of wiring APISIX JWT forwarding, X-Userinfo decoding, and Keycloak-based role management into Summer Framework applications so endpoints can be protected by consistent, auditable resource-based roles.

Core Features & Use Cases

  • APISIX integration: Decodes Base64 X-Userinfo into Member objects and enforces stateless security via SecurityWebFilterChain customizers.
  • Role management & annotations: Standardizes role strings with @AuthRoles, ResourceDef and FeatureDef and enforces the seven-action convention for resources.
  • Reactive Keycloak client & sync: Provides ReactiveKeycloakClient for admin operations and KeycloakRoleSynchronizer to scan @AuthRoles and sync clients, roles, features, and custom attributes at startup.
  • Group-role authorization: Optional group-to-role resolution with L1/L2 caching, Redis invalidation channel, and configurable claim names for environments that require group-based access control.
  • Error mapping & safety: KeycloakException-to-error-code mapping and rules that prevent leaking secrets in configuration examples.

Quick Start

Use the summer-security skill to integrate APISIX X-Userinfo decoding, configure ReactiveKeycloakClient with your Keycloak server, and run role synchronization for your @AuthRoles-protected resources.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: summer-security
Download link: https://github.com/taipt1504/agent-skills/archive/main.zip#summer-security

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.