// the find
pig-mesh/pig
↥ ↥ ↥ Follow for updates An RBAC permission management system based on Spring Cloud 2025, Spring Boot 4, and OAuth2.
An RBAC and OAuth2 admin platform for Spring Cloud/Spring Boot backends, pairing a Spring Authorization Server-based auth service with a Vue3 admin console. It targets Java teams that need user/role/permission management and a real OAuth2 flow (not a toy implementation) and can run either as microservices or a single monolith via build profiles.
The auth layer is built on Spring Authorization Server, not a hand-rolled JWT scheme, and covers authorization code, password, and refresh token grants in production shape. Supporting both a `cloud` (microservices + Nacos) and `boot` (monolith) profile from the same codebase is a genuinely useful escape hatch for teams that don't want Nacos/gateway/service-mesh overhead on day one. Dependency versions are current (Spring Boot 4, Spring Cloud 2025.1, JDK 17+), and Docker Compose files bring up MySQL/Redis/Nacos with one command.
Documentation is Chinese-only in the repo, with English speakers pointed to an external wiki rather than anything in-repo — a real barrier to adoption outside that ecosystem. This is explicitly the open-source shell of a commercial product: multi-tenancy, data permissions, dynamic routing, workflow, payments, and mobile modules are all stripped out, so what you get is a smaller slice than the module list implies. The microservice mode drags in Nacos, Sentinel, Druid, and Spring Cloud Alibaba, which is a lot of infrastructure to run just for RBAC + OAuth2 if that's all you need. Test coverage looks thin for something handling authentication — the visible test files are limited to a couple of resolver unit tests, nothing exercising the auth flows themselves.