Commit graph

19 commits

Author SHA1 Message Date
4ab00e0761 feat: add policy management endpoints
New API endpoints matching openapi.yml spec:
  GET    /api/policies                - List policies
  POST   /api/policies                - Create policy
  GET    /api/policies/{policy_id}    - Get policy
  PUT    /api/policies/{policy_id}    - Update policy
  DELETE /api/policies/{policy_id}    - Delete policy
  POST   /api/policies/verify         - Dry-run policy matching
  GET    /api/users/{username}/policies - User policy evaluation

New files:
  src/internal/policies/models.go    - Policy/input/response structs
  src/internal/policies/store.go     - DB CRUD operations
  src/internal/policies/engine.go    - Domain/resource/method/subject matching
  src/internal/policies/handler.go   - HTTP handlers for all 7 endpoints
  src/migrations/002_policies.sql    - policies table schema

Modified:
  src/internal/database/database.go  - Register migration 2
  src/cmd/server/main.go             - Wire up policies handler + routes
2026-07-15 14:33:09 +00:00
fae2363360 chore: add OpenAPI 3.0.3 spec for API documentation 2026-07-15 14:28:54 +00:00
38a69937d5 chore: add Go source code to src/ directory
- Source code for authelia-api (Go 1.22)
- cmd/server/main.go - entry point
- internal/api, auth, bootstrap, config, database, smtp, sync packages
- migrations/001_initial.sql - database schema
- go.mod with dependencies (x/crypto, yaml.v3, modernc/sqlite)
2026-07-15 14:27:40 +00:00
root
49a5ab0cb8 Clarify mirror: developed on git.lohmar.co.uk, mirrored to Codeberg 2026-06-24 19:37:12 +00:00
root
fcc541064b Clarify mirror relationship in README 2026-06-24 19:34:36 +00:00
root
6c98d8a62f Add Codeberg mirror note to README 2026-06-24 19:33:04 +00:00
root
6558a40435 Add POSTMAN_GUIDE.md with setup, endpoints, and troubleshooting 2026-06-24 19:17:39 +00:00
root
45a29b7641 Restore bearer token section under Installation, remove dead POSTMAN_GUIDE.md link 2026-06-24 19:16:25 +00:00
root
5c9c5d06ef Remove redundant Quick Start section - bearer token already covered in each deployment section 2026-06-24 19:14:23 +00:00
root
79efef3ac2 Rewrite Quick Start: split bearer token instructions for Docker vs bare metal 2026-06-24 19:12:33 +00:00
root
5859de5fdf Restructure README: Docker first, bare metal collapsed, remove obsolete Production Deployment section 2026-06-24 19:05:46 +00:00
root
48d083c355 Expand Docker deployment docs with bearer token explanation and link to Authelia config reference 2026-06-24 18:59:40 +00:00
root
0d86609798 Add Docker container combining Authelia + Authelia-API
- Multi-stage Dockerfile (Authelia v4.39.20 + authelia-api binary)
- Entrypoint script with bootstrap, health monitoring, graceful shutdown
- docker-compose.yml for volume-based deployment
- Example config and user DB placeholder
- README updated with Docker deployment docs
2026-06-24 18:54:27 +00:00
ac0a741c66 chore: sync: ClausL-MacBook-Pro.local 2026-05-04 19:00 2026-05-04 19:00:55 +01:00
a7fa3bc15a chore: sync: ClausL-MacBook-Pro.local 2026-05-04 17:58 2026-05-04 17:58:53 +01:00
bab208bedd chore: sync: ClausL-MacBook-Pro.local 2026-05-04 17:56 2026-05-04 17:56:57 +01:00
d6307ed19b chore: sync: ClausL-MacBook-Pro.local 2026-05-04 17:55 2026-05-04 17:55:10 +01:00
ad26c899b9 chore: sync: ClausL-MacBook-Pro.local 2026-05-04 17:52 2026-05-04 17:52:54 +01:00
f72f2ac4e2 chore: sync: ClausL-MacBook-Pro.local 2026-05-04 17:50 2026-05-04 17:50:26 +01:00