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
Run-scoped finding keys "<run_id>_<finding_id>" of one target's latest finished drift check.
Why the findings are expected, up to 1000 characters.
When the acceptance ends. Must be in the future. Leave it out and set no_end_date to accept with no end date.
Accept with no end date, as the new normal. Exactly one of until and no_end_date is set.
Responses
The findings are accepted. Items carry their acceptance.
AcceptDriftFindingsResponse · 3 fields
31 fields
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
Closed registry of asynchronous operation failure causes, independent of HTTP problem codes.
ACCESS_PROFILE_STALE AMBIGUOUS_TARGET_OUTCOME APPLY_INTERRUPTED AUTHENTICATION_FAILED CLICKHOUSE_REPLICAS_OUT_OF_SYNC CLICKHOUSE_USER_NAME_RESERVED CONNECTION_FAILED CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTOR_CREDENTIALS_MISSING CONNECTOR_PAUSED CONNECTOR_SOURCE_CHANGED CONNECTOR_TYPE_UNAVAILABLE CONSTRAINT_VIOLATION CREDENTIAL_EXPIRED CREDENTIAL_NOT_FOUND DATABASE_NOT_FOUND DRIFT_BINDING_NOT_FOUND DRIFT_DEFAULT_INHERITED_SKIPPED DRIFT_NO_EXECUTABLE_DIFF DRIFT_PARTIAL_APPLY DRIFT_PLAN_GENERATION_FAILED DRIFT_RESOURCE_MISMATCH DRIFT_RULE_DELETING DRIFT_RUN_OUTDATED DRIFT_SCOPE_MISMATCH GROUP_EXPANSION_LIMIT_EXCEEDED HANDLER_NOT_FOUND K8S_CHANGE_REJECTED K8S_CLUSTER_UNREACHABLE K8S_NAMESPACE_FORBIDDEN K8S_NAMESPACE_NOT_FOUND K8S_RBAC_FORBIDDEN KUBERNETES_MEMBER_CREDENTIALS_PENDING KUBERNETES_SERVICE_ACCOUNT_KUBECONFIG_NOT_ISSUED MARIADB_TRUNCATE_UNSUPPORTED MARIADB_USAGE_UNSUPPORTED MARIADB_GRANTS_AMBIGUOUS MUTATION_LOCKED MYSQL_MANAGEMENT_PRIVILEGES_MISSING 34 more values
NOT_FOUND OPERATION_BACKOFF OPERATION_CANCELLED OPERATION_TIMEOUT OWNED_OBJECTS_DECISION_REQUIRED PERMISSION_DENIED PLAN_APPLY_ARTIFACT_INVALID PLAN_APPLY_ORPHANED_LOCK PLAN_APPLY_ROLLBACK_BASELINE_INVALID PLAN_APPLY_RULE_CHANGED PLAN_APPLY_TARGET_STATE_CHANGED PLAN_APPLY_ACCESS_IMPACT_CHANGED POSTGRES_FUTURE_OBJECT_CREATORS_MISSING POSTGRES_GRANT_AUTHORITY_MISSING POSTGRES_MANAGEMENT_PRIVILEGES_MISSING POSTGRES_ROLE_ATTRIBUTE_UNSUPPORTED POSTGRES_ROLE_NAME_RESERVED POSTGRES_TLS_FILE_NOT_ALLOWED PROVIDER_REQUEST_FAILED RATE_LIMITED ROLE_EXISTS ROLE_NOT_FOUND ROTATION_CHECK_REQUIRED SECRET_STORE_UNAVAILABLE SERIALIZATION_ERROR TARGET_ACCOUNT_IDENTITY_MISMATCH TARGET_ACCOUNT_IDENTITY_UNVERIFIED TARGET_ACCOUNT_IMPORT_PENDING TARGET_ACCOUNT_PRINCIPAL_LOGIN TARGET_ACCOUNT_TAKEN TARGET_CONNECTION_MISSING TARGET_REPAIR_REQUIRED UNKNOWN_ERROR VALIDATION_FAILED 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.
Whether the failed attempt was eligible for an automatic retry under the actual queue policy.
Known operation phase at failure, when available.
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.
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.
Run-scoped finding key "<run_id>_<finding_id>". Identifies the finding in /drift/run-findings/{id}/remedy and in drift:run-finding live events.
Canonical name of the rule that produced the finding (the rule's display_name), when the rule is visible.
Identity the rule grants access to.
Display name of the rule subject.
Kind of the rule subject identity.
10 fields
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.
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.
closedkeptunknownLatest remediation status for this finding snapshot.
openremediatedfailedalready_in_sync skippedTimestamp of the latest remediation status update.
Last remediation job that touched this finding snapshot.
Machine-readable error code from the last failed remediation attempt.
Human-readable error message from the last failed remediation attempt.
Human-readable description of the drift finding.
Human-readable resource identifier (e.g. "ClusterRole principal-role in default").
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
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.
What made Principal create the object.
rule_role rule_binding template_role template_binding profile_role profile_binding service_account legacydeleted_rule other_target unknownRule the object belongs to. For owner_kind deleted_rule the rule no longer exists and must not be linked.
Name a person gave the rule. Absent when the rule has no own name.
Template whose role or binding this is.
Template version the shared role or binding was created from.
Whether rules of the target still use a shared template role. Absent when unknown.
in_use unusedRules of the target whose bindings use a shared template role.
Identity the object grants access to, when it exists in the organization.
Display name of the identity.
Kubernetes kind of the object.
Raw Kubernetes object name, for technical details and copying only.
Namespace of a namespaced object.
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
When the acceptance ends. Null means it has no end date.
Identity that accepted the finding. Absent when that identity no longer exists.
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.
A finding is not in a drift check of the caller's organization.
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.