feat: import lab 7 security implementation

This commit is contained in:
2026-12-02 23:44:32 +03:00
parent 20afc2c790
commit ee28cd7dbd
259 changed files with 84919 additions and 35 deletions
+23
View File
@@ -0,0 +1,23 @@
# Политика worker. Вход — роль worker: identity worker (CN), DNS SAN worker. Только
# read пароля своей роли PostgreSQL и ключей своего пользователя S3 (брокер — по
# сертификату, Valkey не нужен); metadata/, список, запись и системные пути не
# выдаются; шаблонов путей нет, политики default у токена нет.
path "messenger/data/postgres/worker" {
capabilities = ["read"]
}
path "messenger/data/s3/worker" {
capabilities = ["read"]
}
path "auth/token/lookup-self" {
capabilities = ["read"]
}
path "auth/token/renew-self" {
capabilities = ["update"]
}
path "auth/token/revoke-self" {
capabilities = ["update"]
}