mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
* VAULT-42083 remove raw_policy from policy upsert observations * whoops Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
This commit is contained in:
parent
744024c83e
commit
a1f3a33a46
@ -468,14 +468,12 @@ func (ps *PolicyStore) setPolicyInternal(ctx context.Context, p *Policy, req *lo
|
||||
entityId = req.EntityID
|
||||
requestId = req.ID
|
||||
}
|
||||
// TODO Violet 1
|
||||
err = ps.core.Observations().RecordObservationToLedger(ctx, observations.ObservationTypePolicyUpsert, p.namespace, map[string]interface{}{
|
||||
"client_id": clientId,
|
||||
"entity_id": entityId,
|
||||
"request_id": requestId,
|
||||
"type": p.Type.String(),
|
||||
"name": p.Name,
|
||||
"raw_policy": p.Raw,
|
||||
"path_rules": pathRulesToObservationPathRules(p.Paths),
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user