# pig-mesh/pig

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/pig-mesh-pig).**

6,644 stars · 1,089 forks · Java · Apache-2.0

## Links

- GitHub: https://github.com/pig-mesh/pig
- Homepage: https://wiki.pig4cloud.com
- awesome-repositories: https://awesome-repositories.com/repository/pig-mesh-pig.md

## Topics

`docker` `oauth2` `openai` `rbac-management` `sa-token` `spring-ai` `spring-authorization-server` `spring-boot` `spring-cloud` `spring-cloud-alibaba` `spring-security` `vue3`

## Description

Pig is a microservice-based RBAC permission management platform built on Spring Cloud and Spring Boot, with OAuth2 authentication and authorization at its core. It provides a dedicated authorization server that issues access and refresh tokens using authorization code, password, and refresh token grant types, while embedding role and permission checks into each microservice to secure API endpoints.

The platform distinguishes itself through a comprehensive set of integrated capabilities, including automatic CRUD code generation from database schemas that produces controller, service, mapper, and UI files at development time. It also features a centralized health monitoring dashboard that aggregates real-time metrics and service status, a built-in scheduled task execution engine for running recurring background jobs, and Docker Compose orchestration for local development environments that coordinates databases, caches, and business services.

Additional capabilities include automated code formatting enforcement during the build process to maintain consistent coding style, and a centralized administration interface for assigning roles and permissions to users. The platform supports Spring Cloud microservice administration with service discovery, configuration management, and monitoring features.

## Tags

### DevOps & Infrastructure

- [RBAC Permission Systems](https://awesome-repositories.com/f/devops-infrastructure/api-service-management/microservice-infrastructure/service-mesh-components/spring-cloud-implementations/rbac-permission-systems.md) — An RBAC permission management system built on Spring Cloud 2025 and Spring Boot 4 with OAuth2 authentication and authorization.
- [Spring Cloud Implementations](https://awesome-repositories.com/f/devops-infrastructure/api-service-management/microservice-infrastructure/service-mesh-components/spring-cloud-implementations.md) — Manages a set of Spring Cloud microservices with service discovery, configuration, and monitoring capabilities.
- [Service Health Dashboards](https://awesome-repositories.com/f/devops-infrastructure/background-daemon-managers/service-health-dashboards.md) — A centralized dashboard that displays real-time metrics and health status of running services for monitoring.
- [Recurring Job Scheduling](https://awesome-repositories.com/f/devops-infrastructure/recurring-job-scheduling.md) — Runs background jobs on a fixed timetable using a built-in scheduler without manual triggering. ([source](https://cdn.jsdelivr.net/gh/pig-mesh/pig@master/README.md))

### Security & Cryptography

- [Centralized Permission Management](https://awesome-repositories.com/f/security-cryptography/access-control-centralization/centralized-permission-management.md) — Controls user access to resources by assigning roles and permissions through a centralized administration interface.
- [Authorization Server Implementations](https://awesome-repositories.com/f/security-cryptography/oauth-authentication/authorization-server-implementations.md) — Issues access and refresh tokens through a dedicated authorization server that supports multiple grant types.
- [OAuth2 Implementations](https://awesome-repositories.com/f/security-cryptography/oauth2-implementations.md) — Authenticates users and secures APIs with OAuth2 authorization code, password, and refresh token flows.
- [OAuth2 Providers](https://awesome-repositories.com/f/security-cryptography/oauth2-providers.md) — An OAuth2 authorization server that issues tokens using authorization code, password, and refresh token flows for securing APIs and applications. ([source](https://wiki.pig4cloud.com/))
- [Multi-Grant Type Flows](https://awesome-repositories.com/f/security-cryptography/oauth2-providers/multi-grant-type-flows.md) — Authenticates users and manages tokens using authorization code, password, and refresh token flows. ([source](https://cdn.jsdelivr.net/gh/pig-mesh/pig@master/README.md))
- [Request-Level RBAC Enforcements](https://awesome-repositories.com/f/security-cryptography/permission-based-access-control/request-level-rbac-enforcements.md) — Embeds role and permission checks into each microservice to secure API endpoints on every request. ([source](https://wiki.pig4cloud.com/))
- [Role-Based Access Control](https://awesome-repositories.com/f/security-cryptography/role-based-access-control.md) — Ships a centralized administration interface for assigning roles and permissions to users. ([source](https://cdn.jsdelivr.net/gh/pig-mesh/pig@master/README.md))

### Software Engineering & Architecture

- [RBAC-Enabled Microservices](https://awesome-repositories.com/f/software-engineering-architecture/microservice-architectures/rbac-enabled-microservices.md) — Secures API endpoints by embedding role and permission checks into each microservice using Spring Security and OAuth2 tokens.

### Development Tools & Productivity

- [Background Task Schedulers](https://awesome-repositories.com/f/development-tools-productivity/background-task-schedulers.md) — Runs background jobs on cron-like timers using a built-in scheduler without requiring external job queues.

### Programming Languages & Runtimes

- [Full-Stack CRUD Generators](https://awesome-repositories.com/f/programming-languages-runtimes/multi-platform-code-generators/database-access-code-generators/full-stack-crud-generators.md) — A platform that automatically generates CRUD code, models, and UI pages from database table definitions.

### System Administration & Monitoring

- [Microservices Health Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/health-monitoring/instance-health-monitors/microservices-health-monitoring.md) — Aggregates real-time metrics and health status from all microservices into a single web-based monitoring interface.
- [Service Health Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/service-health-monitoring.md) — Provides a centralized dashboard displaying real-time metrics and health status of running microservices. ([source](https://cdn.jsdelivr.net/gh/pig-mesh/pig@master/README.md))

### User Interface & Experience

- [Schema-Driven Code Generators](https://awesome-repositories.com/f/user-interface-experience/data-table-generators/schema-driven-code-generators.md) — Generates controller, service, mapper, and UI files by introspecting database table metadata at development time. ([source](https://cdn.jsdelivr.net/gh/pig-mesh/pig@master/README.md))
