131 lines
4.3 KiB
Plaintext
131 lines
4.3 KiB
Plaintext
# TT-008 Source Inspection Correction Summary
|
|
# TT-008 Source Inspection — Итоги коррекции
|
|
|
|
## Коррекция 1: Service Account ≠ User subtype
|
|
|
|
**Было / Was:** `User.source="service_account"`, extending User model
|
|
**Стало / Corrected:** Separate Principal type
|
|
|
|
```text
|
|
Principal
|
|
├── User
|
|
└── ServiceAccount
|
|
```
|
|
|
|
Service Account — отдельная сущность, не подтип User. Authorization primitives (Role, Permission, RolePermission) могут быть переиспользованы через generic Principal abstraction.
|
|
|
|
Service Account is a separate entity, not a User subtype. Authorization primitives can be reused via generic Principal abstraction.
|
|
|
|
## Коррекция 2: API keys — не принятое решение
|
|
|
|
**Было / Was:** "API key fields in User"
|
|
**Стало / Corrected:** Only requirements documented
|
|
|
|
Требования / Requirements:
|
|
- machine-to-machine credential
|
|
- secret shown once
|
|
- rotation
|
|
- revocation
|
|
- local validation
|
|
- operation during Platform outage
|
|
|
|
Конкретный протокол остаётся OPEN / Concrete protocol remains OPEN.
|
|
|
|
## Коррекция 3: Lifecycle ≠ is_active
|
|
|
|
**Было / Was:** `is_active` as complete lifecycle
|
|
**Стало / Corrected:** Separate states
|
|
|
|
```text
|
|
CREATED → ACTIVE → DISABLED → REVOKED
|
|
↗
|
|
ROTATION
|
|
```
|
|
|
|
- `is_active` может быть переиспользован для ACTIVE/DISABLED
|
|
- CREATED и REVOKED требуют отдельных состояний
|
|
- Credential state отличается от Principal state
|
|
- REVOKED — терминальное состояние
|
|
|
|
## Коррекция 4: Emergency Administration ≠ RBAC Role
|
|
|
|
**Было / Was:** `emergency_admin` role
|
|
**Стало / Corrected:** Vendor-assisted Administrative Recovery
|
|
|
|
```text
|
|
Vendor Authorization
|
|
↓
|
|
Emergency Authority / Recovery Grant
|
|
↓
|
|
Recovery Policy + Scope + TTL
|
|
↓
|
|
Security Recovery Operations
|
|
```
|
|
|
|
Emergency Administration не является обычной Role и не получает business permissions.
|
|
|
|
## Коррекция 5: Platform ≠ source of Emergency Authority
|
|
|
|
**Было / Was:** Platform creates emergency credentials
|
|
**Стало / Corrected:** Corporate recovery workflow
|
|
|
|
```text
|
|
Customer → official recovery request
|
|
↓
|
|
Vendor validation / authorization
|
|
↓
|
|
Vendor Authorization
|
|
↓
|
|
Platform orchestration
|
|
↓
|
|
Module verification
|
|
↓
|
|
Emergency Authority
|
|
```
|
|
|
|
Platform — orchestration/control-plane, не root authority.
|
|
|
|
## Коррекция 6: Break-Glass — Corporate capability
|
|
|
|
- Только в Corporate Platform
|
|
- Standalone не обязан иметь
|
|
- LDAP/AD — штатный механизм
|
|
- Не «платный root», не backdoor
|
|
- Термин: **Vendor-assisted Administrative Recovery**
|
|
|
|
## Коррекция 7: Database Tampering — не только audit
|
|
|
|
**Было / Was:** Audit as main recommendation
|
|
**Стало / Corrected:** Authorization artifact requirement
|
|
|
|
> Database stores state and audit; authorization proof establishes authority.
|
|
|
|
- mutable DB fields не должны быть единственным источником security-critical authority
|
|
- SQL UPDATE не должен создавать легитимную Vendor Emergency Authority
|
|
- Нужен authorization artifact для независимой проверки
|
|
- Audit — accountability, не защита от tampering
|
|
|
|
## Коррекция 8: Audit clarification
|
|
|
|
Audit provides:
|
|
- accountability
|
|
- forensic history
|
|
- Break-Glass requests
|
|
- authorization issuance
|
|
- expiration
|
|
- results
|
|
- security lifecycle events
|
|
|
|
Audit НЕ является самостоятельным механизмом предотвращения SQL tampering.
|
|
|
|
## Коррекция 9: Platform outage — reusable ≠ ready
|
|
|
|
**Было / Was:** Existing JWT/User implementation as ready for SA
|
|
**Стало / Corrected:** Separated assessment
|
|
|
|
- Reusable mechanisms: JWT validation, bcrypt, DB-driven auth
|
|
- Architectural feasibility: YES, local auth possible
|
|
- Implementation gaps: No SA model, no credential lifecycle, no API key mechanism
|
|
|
|
Existing User/JWT implementation НЕ является автоматически готовой реализацией Service Account.
|