VAULT-42083 remove raw_policy from policy upsert observations (#11957) (#11979)

* VAULT-42083 remove raw_policy from policy upsert observations

* whoops

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
This commit is contained in:
Vault Automation 2026-01-26 11:55:29 -05:00 committed by GitHub
parent 744024c83e
commit a1f3a33a46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {