https://github.com/descope/authzcache
Authz cache
https://github.com/descope/authzcache
authorization authz cache descope fga
Last synced: 10 months ago
JSON representation
Authz cache
- Host: GitHub
- URL: https://github.com/descope/authzcache
- Owner: descope
- License: mit
- Created: 2025-01-23T12:12:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-28T16:27:06.000Z (10 months ago)
- Last Synced: 2025-08-28T19:31:53.057Z (10 months ago)
- Topics: authorization, authz, cache, descope, fga
- Language: Go
- Homepage: https://docs.descope.com
- Size: 13.1 MB
- Stars: 11
- Watchers: 11
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Descope AuthZ Cache
A high-performance authorization cache service that accelerates Fine-Grained Authorization (FGA) checks by caching authorization data locally within your cluster.
## Quick Start
Run the service with Docker:
```bash
docker run -d \
--name authzcache \
-p 8189:8189 \
-e DESCOPE_MANAGEMENT_KEY=your_management_key_here \
descope/authzcache:latest
```
## Configuration
### Required Environment Variables
- `DESCOPE_MANAGEMENT_KEY` - Your Descope management key for authentication
### Optional Environment Variables
- `DESCOPE_BASE_URL` - Custom Descope base URL (default: production Descope service)
- `CONTAINER_HTTP_PORT` - HTTP gateway port (default: 8189)
- `AUTHZCACHE_SDK_DEBUG_LOG` - Enable debug logging of the internally used Descope SDK (TRUE/FALSE, default: FALSE)
- `AUTHZCACHE_DIRECT_RELATION_CACHE_SIZE_PER_PROJECT` - Direct relation cache size per project (default: 1,000,000)
- `AUTHZCACHE_INDIRECT_RELATION_CACHE_SIZE_PER_PROJECT` - Indirect relation cache size per project (default: 1,000,000)
- `AUTHZCACHE_REMOTE_POLLING_INTERVAL_IN_MILLIS` - Remote polling interval in milliseconds (default: 15,000)
## Ports
- **8189** - HTTP REST API endpoint
## Health Check
The service exposes health check endpoints for container orchestration:
- HTTP: `GET http://localhost:8189/health`
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Alternatively, this project is also available under the Apache License 2.0 - see the [LICENSE-APACHE](LICENSE-APACHE) file for details.
You may choose either license for your use of this software.
## Support
For technical support and questions, please contact your Descope representative.