feat(access): denial retention knob, State Store sweep and dashboard denials page (#1842)
Add [access].denial_retention (default 90 days, matching the audit-retention seed) wired through config defaults and validation; the State Store sweeps denial records older than the configured age hourly via the new access.DenialPruner / PruneDenials store query. The dashboard gains GET /api/access/denials (read_audit-gated, so org admins/owners see their org's records; the store scopes by the credential's org) and an /org/denials page backed by a Pinia store.
This commit is contained in:
1 parent
369e741df1
commit
da01f2cbe1
28 files changed
+625
-116
No files matched your search
@@ -414,6 +414,7 @@ type Config struct {
|
||||
Containers ContainerConfig `toml:"containers" yaml:"containers"`
|
||||
Chat ChatConfig `toml:"chat" yaml:"chat"`
|
||||
Capture CaptureConfig `toml:"capture" yaml:"capture"`
|
||||
Access AccessConfig `toml:"access" yaml:"access"`
|
||||
Bindings BindingsConfig `toml:"bindings" yaml:"bindings"`
|
||||
|
||||
// Memory holds memory provider configuration (from config.memory.yaml).
|
||||
@@ -662,6 +663,14 @@ type CaptureConfig struct {
|
||||
RateBurst int `toml:"rate_burst" yaml:"rate_burst"`
|
||||
}
|
||||
|
||||
// AccessConfig configures the access surfaces: the stored policy chain and
|
||||
// the denial records the State Store keeps.
|
||||
type AccessConfig struct {
|
||||
// DenialRetention is how long a recorded access denial is kept before
|
||||
// the State Store's sweep deletes it. Zero means the 90-day default.
|
||||
DenialRetention Duration `toml:"denial_retention" yaml:"denial_retention"`
|
||||
}
|
||||
|
||||
// BindingsConfig configures the playbook-binding store (t2db). When
|
||||
// EncryptionKey is unset, binding secrets are persisted as plaintext
|
||||
// (legacy behaviour); when set, they are AES-256-GCM encrypted at rest
|
||||
|
||||
Reference in new issue
Block a user