Files
ispctl/model/audit.go
T

22 lines
608 B
Go

package model
import "encoding/json"
// AuditModule is a module with its raw config schema; the raw form keeps the
// x-ui-exposed keyword that a typed unmarshal may drop.
type AuditModule struct {
Id string
Name string
ConfigSchema json.RawMessage
}
// AuditViolation names a config field that violates the secret policy in the
// module's active config: a UI-exposed field referencing a SECRET variable,
// or a sensitive field holding a plain value or a non-SECRET reference.
type AuditViolation struct {
Module string
Path string
Variables []string
Reason string
}