Docs
Live demo
POST/api/v2/drift/run-findings/accept
drift:manageAPI token

Accept findings of the target's latest finished drift check as expected, with a reason, until a date and time or with no end date. An accepted finding stays in the check with its acceptance but is no longer a problem: drift summaries, open_stats, the found-drift notification and "remedy all" leave it out. The decision lasts across checks while the finding stays the same, ends when its until passes, and is removed when a successful check no longer finds it. It cannot be withdrawn. Only an organization admin can accept, and all findings of one request belong to one target.

Request body application/json · AcceptDriftFindingsRequest

Required2 of 4 fields
run_finding_idsarray of stringrequired

Run-scoped finding keys "<run_id>_<finding_id>" of one target's latest finished drift check.

min items 1 · max items 500
reasonstringrequired

Why the findings are expected, up to 1000 characters.

Optional2 fields
untilstring · date-time

When the acceptance ends. Must be in the future. Leave it out and set no_end_date to accept with no end date.

can be null
no_end_dateboolean

Accept with no end date, as the new normal. Exactly one of until and no_end_date is set.

Responses

200

The findings are accepted. Items carry their acceptance.

AcceptDriftFindingsResponse · 3 fields
target_idstring · uuidrequired
run_idstring · uuidrequired
itemsarray of DriftResponserequired
31 fields
remediation_failureOperationFailureResponse

Safe operation failure. Explanation and recommended_action come from the static failure-code registry. The only text not written by Principal is cluster_answer.

8 fields
codestring (JobFailureCode)required

Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.

ACCESS_PROFILE_STALEAMBIGUOUS_TARGET_OUTCOMEAPPLY_INTERRUPTEDAUTHENTICATION_FAILEDCLICKHOUSE_REPLICAS_OUT_OF_SYNCCLICKHOUSE_USER_NAME_RESERVEDCONNECTION_FAILEDCONNECTION_REFUSEDCONNECTION_TIMEOUTCONNECTOR_CREDENTIALS_MISSINGCONNECTOR_PAUSEDCONNECTOR_SOURCE_CHANGEDCONNECTOR_TYPE_UNAVAILABLECONSTRAINT_VIOLATIONCREDENTIAL_EXPIREDCREDENTIAL_NOT_FOUNDDATABASE_NOT_FOUNDDRIFT_BINDING_NOT_FOUNDDRIFT_DEFAULT_INHERITED_SKIPPEDDRIFT_NO_EXECUTABLE_DIFFDRIFT_PARTIAL_APPLYDRIFT_PLAN_GENERATION_FAILEDDRIFT_RESOURCE_MISMATCHDRIFT_RULE_DELETINGDRIFT_RUN_OUTDATEDDRIFT_SCOPE_MISMATCHGROUP_EXPANSION_LIMIT_EXCEEDEDHANDLER_NOT_FOUNDK8S_CHANGE_REJECTEDK8S_CLUSTER_UNREACHABLEK8S_NAMESPACE_FORBIDDENK8S_NAMESPACE_NOT_FOUNDK8S_RBAC_FORBIDDENKUBERNETES_MEMBER_CREDENTIALS_PENDINGKUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUEDMARIADB_TRUNCATE_UNSUPPORTEDMARIADB_USAGE_UNSUPPORTEDMARIADB_GRANTS_AMBIGUOUSMUTATION_LOCKEDMYSQL_MANAGEMENT_PRIVILEGES_MISSING
34 more values
NOT_FOUNDOPERATION_BACKOFFOPERATION_CANCELLEDOPERATION_TIMEOUTOWNED_OBJECTS_DECISION_REQUIREDPERMISSION_DENIEDPLAN_APPLY_ARTIFACT_INVALIDPLAN_APPLY_ORPHANED_LOCKPLAN_APPLY_ROLLBACK_BASELINE_INVALIDPLAN_APPLY_RULE_CHANGEDPLAN_APPLY_TARGET_STATE_CHANGEDPLAN_APPLY_ACCESS_IMPACT_CHANGEDPOSTGRES_FUTURE_OBJECT_CREATORS_MISSINGPOSTGRES_GRANT_AUTHORITY_MISSINGPOSTGRES_MANAGEMENT_PRIVILEGES_MISSINGPOSTGRES_ROLE_ATTRIBUTE_UNSUPPORTEDPOSTGRES_ROLE_NAME_RESERVEDPOSTGRES_TLS_FILE_NOT_ALLOWEDPROVIDER_REQUEST_FAILEDRATE_LIMITEDROLE_EXISTSROLE_NOT_FOUNDROTATION_CHECK_REQUIREDSECRET_STORE_UNAVAILABLESERIALIZATION_ERRORTARGET_ACCOUNT_IDENTITY_MISMATCHTARGET_ACCOUNT_IDENTITY_UNVERIFIEDTARGET_ACCOUNT_IMPORT_PENDINGTARGET_ACCOUNT_PRINCIPAL_LOGINTARGET_ACCOUNT_TAKENTARGET_CONNECTION_MISSINGTARGET_REPAIR_REQUIREDUNKNOWN_ERRORVALIDATION_FAILED
titlestring

Short name of the failure from the same registry, for lists and queues where the explanation is too long. Absent on failures saved before the field existed.

max length 32
explanationstringrequired
recommended_actionstringrequired
retryablebooleanrequired

Whether the failed attempt was eligible for an automatic retry under the actual queue policy.

phasestring

Known operation phase at failure, when available.

resolution_codestring

Stable code of the action that can resolve this failure, the same vocabulary as a problem's resolution.code, for example upstream.check_connection. Absent when no single action does. A screen that offers the action shows it next to the failure, otherwise it shows recommended_action.

max length 128 · pattern ^[a-z][a-z0-9_-]*(\.[a-z0-9_-]+)*$
cluster_answerstring

The Kubernetes cluster's own answer to a change its admission policy or webhook refused: the policy or webhook name and its message. Only a step failure with code K8S_CHANGE_REJECTED carries it, as plain text without control characters, cut to 500 characters. The cluster administrator writes it, not Principal. Given only to callers with access:read in the rule's organization. Absent for runs saved before the field existed.

max length 500
idstring
run_finding_idstring

Run-scoped finding key "<run_id>_<finding_id>". Identifies the finding in /drift/run-findings/{id}/remedy and in drift:run-finding live events.

run_idstring
policy_idstring
policy_labelstring

Canonical name of the rule that produced the finding (the rule's display_name), when the rule is visible.

subject_idstring

Identity the rule grants access to.

subject_display_namestring

Display name of the rule subject.

subject_kindstring

Kind of the rule subject identity.

10 fields
typestring
dbstring
schemastring
tablestring
rolestring
object_typestring
inherited_viastring

Comma-separated roles through whose membership a PostgreSQL account holds the extra privileges of the finding. Absent when the privileges are granted directly.

What an application finding is about: an entry of the access list (subject_id, subject_kind) or a Dex client of the application (client_id, the changed fields, whether it is gone from Dex and whether Principal can write back the client it applied).

Where an SSH finding is. Present only for findings of SSH targets.

originstring
drift_typestring
desired_setmap of string → boolean
actual_setmap of string → boolean
severitystring
remediation_sessionsstring

MariaDB only: what fixing this finding with Apply of its rule does to the open sessions of the account, computed by the drift check with the same assessment the plan of the rule uses. closed: Apply closes them. kept: they keep their access. unknown: Principal could not tell, so expect them to close. Absent on a finding checked before Principal computed it, which a client treats as unknown. The exact answer comes from the plan of the rule when it is applied.

closedkeptunknown
remediation_statusstring

Latest remediation status for this finding snapshot.

openremediatedfailedalready_in_syncskipped
remediation_updated_atstring · date-time

Timestamp of the latest remediation status update.

remediation_job_idstring · uuid

Last remediation job that touched this finding snapshot.

remediation_error_codestring

Machine-readable error code from the last failed remediation attempt.

remediation_errorstring

Human-readable error message from the last failed remediation attempt.

fingerprintstring
messagestring

Human-readable description of the drift finding.

resource_urnstring

Human-readable resource identifier (e.g. "ClusterRole principal-role in default").

managed_objectManagedObjectResponse

Owner of the Kubernetes object the finding is about, resolved on read. Absent for database targets and for objects Principal does not manage.

13 fields
labelstringrequired

Short English phrase naming the object for a person, such as "Role for Data policy" or "Unused shared role of template Namespace viewer v1". Never contains IDs or hashes.

owner_kindstringrequired

What made Principal create the object.

rule_rolerule_bindingtemplate_roletemplate_bindingprofile_roleprofile_bindingservice_accountlegacydeleted_ruleother_targetunknown
rule_idstring · uuid

Rule the object belongs to. For owner_kind deleted_rule the rule no longer exists and must not be linked.

rule_namestring

Name a person gave the rule. Absent when the rule has no own name.

template_namestring

Template whose role or binding this is.

template_versioninteger

Template version the shared role or binding was created from.

template_usagestring

Whether rules of the target still use a shared template role. Absent when unknown.

in_useunused
used_by_rulesarray of ManagedObjectRuleResponse

Rules of the target whose bindings use a shared template role.

identity_idstring · uuid

Identity the object grants access to, when it exists in the organization.

identity_namestring

Display name of the identity.

object_kindstringrequired

Kubernetes kind of the object.

object_namestringrequired

Raw Kubernetes object name, for technical details and copying only.

namespacestring

Namespace of a namespaced object.

account_namestring

Name of the database account on the target whose access the finding is about (for example anna_petrova), resolved on read. Absent for Kubernetes targets and when the account is unknown.

Present while the finding is accepted as expected: it is then not a problem. Absent when the finding is not accepted or its acceptance has ended.

5 fields
reasonstringrequired
untilstring · date-timerequired

When the acceptance ends. Null means it has no end date.

can be null
accepted_atstring · date-timerequired
accepted_bystring · uuid

Identity that accepted the finding. Absent when that identity no longer exists.

accepted_by_namestring
first_seen_atstring
last_seen_atstring
created_atstring
updated_atstring
400

No reason, no choice between until and no_end_date, an until that is not in the future, no findings, more than 500 findings, or findings of several targets.

404

A finding is not in a drift check of the caller's organization.

409

drift.acceptance_already_active: a finding is already accepted. drift.acceptance_finding_resolved: a finding is already fixed. drift.acceptance_check_outdated: the findings are not from the target's latest finished drift check, or that check finished before the update that added accepting. Nothing is accepted.

Common errors: 401 403 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close