@openauditmodel/cli 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/conformance-kit/README.md +109 -0
- package/conformance-kit/manifest.json +8023 -0
- package/examples/README.md +62 -0
- package/examples/integrity/README.md +103 -0
- package/examples/integrity/invalid/broken-previous-hash/001.json +53 -0
- package/examples/integrity/invalid/broken-previous-hash/002.json +52 -0
- package/examples/integrity/invalid/broken-previous-hash/003.json +43 -0
- package/examples/integrity/invalid/duplicate-sequence/001.json +53 -0
- package/examples/integrity/invalid/duplicate-sequence/002.json +52 -0
- package/examples/integrity/invalid/duplicate-sequence/003.json +43 -0
- package/examples/integrity/invalid/missing-sequence/001.json +53 -0
- package/examples/integrity/invalid/missing-sequence/002.json +51 -0
- package/examples/integrity/invalid/missing-sequence/003.json +43 -0
- package/examples/integrity/invalid/reordered-chain/001.json +53 -0
- package/examples/integrity/invalid/reordered-chain/002.json +52 -0
- package/examples/integrity/invalid/reordered-chain/003.json +43 -0
- package/examples/integrity/invalid/tampered-event.json +51 -0
- package/examples/integrity/invalid/tampered-signed-event.json +46 -0
- package/examples/integrity/invalid/unsupported-algorithm.json +51 -0
- package/examples/integrity/invalid/unsupported-signature-algorithm.json +46 -0
- package/examples/integrity/invalid/wrong-declared-hash.json +51 -0
- package/examples/integrity/keys/ed25519-test-public.pem +3 -0
- package/examples/integrity/valid/signed-event-ed25519.json +46 -0
- package/examples/integrity/valid/single-event-sha256.json +51 -0
- package/examples/integrity/valid/three-event-chain/001.json +53 -0
- package/examples/integrity/valid/three-event-chain/002.json +52 -0
- package/examples/integrity/valid/three-event-chain/003.json +43 -0
- package/examples/integrity/valid/unicode-and-number-event.json +68 -0
- package/examples/invalid/README.md +38 -0
- package/examples/invalid/delegation-without-subject.json +27 -0
- package/examples/invalid/failure-without-error.json +28 -0
- package/examples/invalid/invalid-event-name.json +22 -0
- package/examples/invalid/invalid-extension-name.json +25 -0
- package/examples/invalid/missing-actor.json +18 -0
- package/examples/invalid/missing-resource.json +18 -0
- package/examples/invalid/unknown-core-property.json +23 -0
- package/examples/privacy/README.md +101 -0
- package/examples/privacy/clean/hashes-and-identifiers.json +42 -0
- package/examples/privacy/clean/minimal-clean-event.json +22 -0
- package/examples/privacy/clean/safe-evidence-reference.json +43 -0
- package/examples/privacy/clean/sanitized-change.json +40 -0
- package/examples/privacy/clean/structured-metadata.json +43 -0
- package/examples/privacy/findings/access-token-field.json +27 -0
- package/examples/privacy/findings/bearer-token.json +26 -0
- package/examples/privacy/findings/credentialed-connection-string.json +26 -0
- package/examples/privacy/findings/evidence-query-string.json +29 -0
- package/examples/privacy/findings/high-entropy-token.json +26 -0
- package/examples/privacy/findings/jwt-token.json +26 -0
- package/examples/privacy/findings/oversized-change-before.json +89 -0
- package/examples/privacy/findings/password-field.json +27 -0
- package/examples/privacy/findings/private-key.json +26 -0
- package/examples/privacy/findings/raw-response-body.json +26 -0
- package/examples/privacy/findings/url-userinfo.json +26 -0
- package/examples/profiles/api-and-integration-management/README.md +119 -0
- package/examples/profiles/api-and-integration-management/invalid/api-key-create-missing-authentication.json +64 -0
- package/examples/profiles/api-and-integration-management/invalid/api-key-create-missing-authorization.json +64 -0
- package/examples/profiles/api-and-integration-management/invalid/api-key-rotate-missing-credential-reference.json +58 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-configuration-update-missing-connection-id.json +67 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-connect-missing-approval-status.json +78 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-disconnect-missing-authentication.json +63 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-reauthorize-missing-error-type.json +68 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-sync-start-missing-correlation-id.json +58 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-create-missing-endpoint-class.json +63 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-create-missing-type.json +63 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-disable-missing-reason.json +58 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-update-missing-change.json +63 -0
- package/examples/profiles/api-and-integration-management/not-applicable/api-request.json +45 -0
- package/examples/profiles/api-and-integration-management/not-applicable/integration-sync-progress.json +44 -0
- package/examples/profiles/api-and-integration-management/not-applicable/webhook-delivery.json +44 -0
- package/examples/profiles/api-and-integration-management/valid/api-key-create.json +70 -0
- package/examples/profiles/api-and-integration-management/valid/api-key-revoke.json +72 -0
- package/examples/profiles/api-and-integration-management/valid/api-key-rotate.json +59 -0
- package/examples/profiles/api-and-integration-management/valid/integration-configuration-update.json +68 -0
- package/examples/profiles/api-and-integration-management/valid/integration-connect.json +79 -0
- package/examples/profiles/api-and-integration-management/valid/integration-disconnect.json +69 -0
- package/examples/profiles/api-and-integration-management/valid/integration-reauthorize-failure.json +69 -0
- package/examples/profiles/api-and-integration-management/valid/integration-sync-cancel.json +65 -0
- package/examples/profiles/api-and-integration-management/valid/integration-sync-start.json +59 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-create.json +64 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-disable.json +63 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-test.json +59 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-update.json +76 -0
- package/examples/profiles/backup-and-recovery/README.md +127 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-complete-missing-backup-id.json +55 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-complete-missing-recovery-point.json +55 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-create-missing-authorization.json +50 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-delete-missing-reason.json +78 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-expire-missing-retention-class.json +55 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-verify-missing-verification-status.json +66 -0
- package/examples/profiles/backup-and-recovery/invalid/policy-update-missing-change.json +65 -0
- package/examples/profiles/backup-and-recovery/invalid/recovery-failover-missing-recovery-id.json +71 -0
- package/examples/profiles/backup-and-recovery/invalid/recovery-failover-missing-target-scope.json +71 -0
- package/examples/profiles/backup-and-recovery/invalid/restore-start-missing-approval.json +66 -0
- package/examples/profiles/backup-and-recovery/invalid/restore-start-missing-source-id.json +73 -0
- package/examples/profiles/backup-and-recovery/invalid/snapshot-create-missing-snapshot-id.json +57 -0
- package/examples/profiles/backup-and-recovery/not-applicable/backup-chunk-write.json +43 -0
- package/examples/profiles/backup-and-recovery/not-applicable/restore-progress.json +42 -0
- package/examples/profiles/backup-and-recovery/not-applicable/storage-replica-heartbeat.json +37 -0
- package/examples/profiles/backup-and-recovery/valid/backup-complete-failed.json +62 -0
- package/examples/profiles/backup-and-recovery/valid/backup-complete.json +56 -0
- package/examples/profiles/backup-and-recovery/valid/backup-create.json +56 -0
- package/examples/profiles/backup-and-recovery/valid/backup-delete.json +83 -0
- package/examples/profiles/backup-and-recovery/valid/backup-expire.json +56 -0
- package/examples/profiles/backup-and-recovery/valid/backup-verify.json +67 -0
- package/examples/profiles/backup-and-recovery/valid/policy-update.json +78 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-complete.json +61 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-failback.json +72 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-failover.json +72 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-start.json +61 -0
- package/examples/profiles/backup-and-recovery/valid/restore-complete.json +63 -0
- package/examples/profiles/backup-and-recovery/valid/restore-start.json +74 -0
- package/examples/profiles/backup-and-recovery/valid/snapshot-create.json +58 -0
- package/examples/profiles/backup-and-recovery/valid/snapshot-delete.json +60 -0
- package/examples/profiles/customer-and-account-management/README.md +127 -0
- package/examples/profiles/customer-and-account-management/invalid/account-close-missing-approval.json +70 -0
- package/examples/profiles/customer-and-account-management/invalid/account-freeze-missing-restriction-scope.json +83 -0
- package/examples/profiles/customer-and-account-management/invalid/account-freeze-missing-status.json +83 -0
- package/examples/profiles/customer-and-account-management/invalid/account-limit-missing-before.json +74 -0
- package/examples/profiles/customer-and-account-management/invalid/account-open-missing-owner.json +58 -0
- package/examples/profiles/customer-and-account-management/invalid/account-status-missing-subject.json +73 -0
- package/examples/profiles/customer-and-account-management/invalid/account-update-missing-override-reason.json +67 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-close-missing-authorization.json +69 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-create-missing-customer-type.json +62 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-delete-missing-scope.json +70 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-merge-missing-source.json +78 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-update-missing-change.json +61 -0
- package/examples/profiles/customer-and-account-management/not-applicable/account-balance-view.json +39 -0
- package/examples/profiles/customer-and-account-management/not-applicable/customer-profile-view.json +38 -0
- package/examples/profiles/customer-and-account-management/not-applicable/customer-search.json +38 -0
- package/examples/profiles/customer-and-account-management/valid/account-close-approved.json +78 -0
- package/examples/profiles/customer-and-account-management/valid/account-freeze.json +84 -0
- package/examples/profiles/customer-and-account-management/valid/account-limit-increase.json +77 -0
- package/examples/profiles/customer-and-account-management/valid/account-open.json +59 -0
- package/examples/profiles/customer-and-account-management/valid/account-status-on-behalf.json +79 -0
- package/examples/profiles/customer-and-account-management/valid/account-update-override.json +72 -0
- package/examples/profiles/customer-and-account-management/valid/customer-close.json +75 -0
- package/examples/profiles/customer-and-account-management/valid/customer-create.json +63 -0
- package/examples/profiles/customer-and-account-management/valid/customer-delete.json +71 -0
- package/examples/profiles/customer-and-account-management/valid/customer-merge.json +79 -0
- package/examples/profiles/customer-and-account-management/valid/customer-restrict.json +76 -0
- package/examples/profiles/customer-and-account-management/valid/customer-update.json +65 -0
- package/examples/profiles/deployment-and-change-management/README.md +115 -0
- package/examples/profiles/deployment-and-change-management/invalid/cancel-missing-authorization.json +59 -0
- package/examples/profiles/deployment-and-change-management/invalid/cancel-missing-reason.json +61 -0
- package/examples/profiles/deployment-and-change-management/invalid/change-request-approve-missing-approval.json +57 -0
- package/examples/profiles/deployment-and-change-management/invalid/configuration-update-missing-authorization.json +81 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-approved-missing-approval.json +73 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-failed-missing-resulting-state.json +71 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-approval-required.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-deployment-id.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-environment.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-previous-version.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-version.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-partial-missing-resulting-state.json +68 -0
- package/examples/profiles/deployment-and-change-management/invalid/secret-rotate-missing-changed-fields.json +72 -0
- package/examples/profiles/deployment-and-change-management/invalid/secret-rotate-missing-reason.json +68 -0
- package/examples/profiles/deployment-and-change-management/not-applicable/build-log-append.json +33 -0
- package/examples/profiles/deployment-and-change-management/not-applicable/pipeline-poll.json +33 -0
- package/examples/profiles/deployment-and-change-management/not-applicable/secret-access.json +39 -0
- package/examples/profiles/deployment-and-change-management/valid/change-request-approve.json +69 -0
- package/examples/profiles/deployment-and-change-management/valid/configuration-update.json +88 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-approved.json +85 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-automated.json +68 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-failed.json +72 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-partial.json +69 -0
- package/examples/profiles/deployment-and-change-management/valid/infrastructure-apply.json +78 -0
- package/examples/profiles/deployment-and-change-management/valid/release-approve.json +77 -0
- package/examples/profiles/deployment-and-change-management/valid/release-cancel.json +65 -0
- package/examples/profiles/deployment-and-change-management/valid/release-create.json +53 -0
- package/examples/profiles/deployment-and-change-management/valid/rollback-emergency.json +80 -0
- package/examples/profiles/deployment-and-change-management/valid/secret-rotate-emergency.json +73 -0
- package/examples/profiles/document-management/README.md +80 -0
- package/examples/profiles/document-management/invalid/delete-missing-reason.json +53 -0
- package/examples/profiles/document-management/invalid/download-missing-classification.json +46 -0
- package/examples/profiles/document-management/invalid/external-share-missing-expiry.json +68 -0
- package/examples/profiles/document-management/invalid/external-share-missing-reason.json +64 -0
- package/examples/profiles/document-management/invalid/legal-hold-missing-state.json +63 -0
- package/examples/profiles/document-management/invalid/permission-grant-missing-grantee.json +57 -0
- package/examples/profiles/document-management/invalid/retention-update-missing-class.json +71 -0
- package/examples/profiles/document-management/invalid/share-create-missing-permission.json +53 -0
- package/examples/profiles/document-management/invalid/share-missing-recipient-type.json +53 -0
- package/examples/profiles/document-management/invalid/upload-missing-authorization.json +42 -0
- package/examples/profiles/document-management/invalid/version-rollback-missing-previous.json +58 -0
- package/examples/profiles/document-management/not-applicable/file-view.json +42 -0
- package/examples/profiles/document-management/valid/file-delete.json +58 -0
- package/examples/profiles/document-management/valid/file-download.json +47 -0
- package/examples/profiles/document-management/valid/file-upload.json +47 -0
- package/examples/profiles/document-management/valid/legal-hold-apply.json +64 -0
- package/examples/profiles/document-management/valid/permission-grant.json +58 -0
- package/examples/profiles/document-management/valid/retention-update.json +72 -0
- package/examples/profiles/document-management/valid/share-external.json +69 -0
- package/examples/profiles/document-management/valid/share-internal.json +54 -0
- package/examples/profiles/document-management/valid/share-revoke.json +56 -0
- package/examples/profiles/document-management/valid/version-rollback.json +59 -0
- package/examples/profiles/financial-transaction-management/README.md +123 -0
- package/examples/profiles/financial-transaction-management/invalid/limit-update-missing-limit-type.json +101 -0
- package/examples/profiles/financial-transaction-management/invalid/manual-deposit-missing-change.json +85 -0
- package/examples/profiles/financial-transaction-management/invalid/payment-capture-missing-amount.json +69 -0
- package/examples/profiles/financial-transaction-management/invalid/payment-capture-missing-authorization.json +65 -0
- package/examples/profiles/financial-transaction-management/invalid/payout-missing-direction.json +63 -0
- package/examples/profiles/financial-transaction-management/invalid/reconciliation-adjust-missing-change.json +79 -0
- package/examples/profiles/financial-transaction-management/invalid/reconciliation-missing-identifier.json +88 -0
- package/examples/profiles/financial-transaction-management/invalid/refund-missing-reason.json +70 -0
- package/examples/profiles/financial-transaction-management/invalid/reversal-missing-original-transaction.json +84 -0
- package/examples/profiles/financial-transaction-management/invalid/transfer-missing-related-resources.json +66 -0
- package/examples/profiles/financial-transaction-management/invalid/withdrawal-missing-approval-status.json +96 -0
- package/examples/profiles/financial-transaction-management/invalid/withdrawal-missing-correlation.json +96 -0
- package/examples/profiles/financial-transaction-management/not-applicable/balance-view.json +36 -0
- package/examples/profiles/financial-transaction-management/not-applicable/quote-create.json +33 -0
- package/examples/profiles/financial-transaction-management/not-applicable/report-generate.json +36 -0
- package/examples/profiles/financial-transaction-management/valid/chargeback-open.json +73 -0
- package/examples/profiles/financial-transaction-management/valid/deposit-manual-correction.json +86 -0
- package/examples/profiles/financial-transaction-management/valid/limit-update.json +92 -0
- package/examples/profiles/financial-transaction-management/valid/payment-capture.json +70 -0
- package/examples/profiles/financial-transaction-management/valid/payment-reject.json +76 -0
- package/examples/profiles/financial-transaction-management/valid/payout-execute.json +64 -0
- package/examples/profiles/financial-transaction-management/valid/reconciliation-adjust.json +85 -0
- package/examples/profiles/financial-transaction-management/valid/refund-create.json +75 -0
- package/examples/profiles/financial-transaction-management/valid/reversal-execute.json +80 -0
- package/examples/profiles/financial-transaction-management/valid/settlement-execute.json +70 -0
- package/examples/profiles/financial-transaction-management/valid/transfer-execute.json +74 -0
- package/examples/profiles/financial-transaction-management/valid/withdrawal-execute.json +91 -0
- package/examples/profiles/identity-and-access-management/README.md +93 -0
- package/examples/profiles/identity-and-access-management/invalid/credential-rotate-missing-reason.json +47 -0
- package/examples/profiles/identity-and-access-management/invalid/permission-grant-missing-scope.json +54 -0
- package/examples/profiles/identity-and-access-management/invalid/privileged-role-without-approval.json +68 -0
- package/examples/profiles/identity-and-access-management/invalid/privileged-role-without-mfa.json +83 -0
- package/examples/profiles/identity-and-access-management/invalid/role-assign-missing-authorization.json +54 -0
- package/examples/profiles/identity-and-access-management/invalid/role-assign-missing-role-id.json +60 -0
- package/examples/profiles/identity-and-access-management/invalid/service-account-missing-owner.json +53 -0
- package/examples/profiles/identity-and-access-management/not-applicable/document-share.json +49 -0
- package/examples/profiles/identity-and-access-management/valid/credential-rotate.json +59 -0
- package/examples/profiles/identity-and-access-management/valid/permission-revoke.json +77 -0
- package/examples/profiles/identity-and-access-management/valid/role-assign-privileged.json +87 -0
- package/examples/profiles/identity-and-access-management/valid/role-assign-standard.json +80 -0
- package/examples/profiles/identity-and-access-management/valid/service-account-create.json +55 -0
- package/examples/profiles/identity-and-access-management/valid/user-create.json +55 -0
- package/examples/profiles/identity-and-access-management/valid/user-disable.json +79 -0
- package/examples/profiles/incident-management/README.md +125 -0
- package/examples/profiles/incident-management/invalid/assignment-change-missing-assignee.json +69 -0
- package/examples/profiles/incident-management/invalid/assignment-change-missing-change.json +59 -0
- package/examples/profiles/incident-management/invalid/case-close-missing-approval.json +94 -0
- package/examples/profiles/incident-management/invalid/case-close-missing-authorization.json +108 -0
- package/examples/profiles/incident-management/invalid/case-close-missing-reason.json +109 -0
- package/examples/profiles/incident-management/invalid/case-create-missing-status.json +67 -0
- package/examples/profiles/incident-management/invalid/case-reopen-missing-change.json +66 -0
- package/examples/profiles/incident-management/invalid/case-reopen-missing-reason.json +72 -0
- package/examples/profiles/incident-management/invalid/case-resolve-missing-resolution-type.json +74 -0
- package/examples/profiles/incident-management/invalid/corrective-action-verify-missing-method.json +81 -0
- package/examples/profiles/incident-management/invalid/priority-change-missing-priority.json +73 -0
- package/examples/profiles/incident-management/invalid/rca-approve-missing-approval.json +66 -0
- package/examples/profiles/incident-management/invalid/rca-create-missing-method.json +72 -0
- package/examples/profiles/incident-management/invalid/sla-breach-missing-target.json +49 -0
- package/examples/profiles/incident-management/not-applicable/case-view.json +40 -0
- package/examples/profiles/incident-management/not-applicable/monitoring-alert-raise.json +40 -0
- package/examples/profiles/incident-management/not-applicable/note-create.json +46 -0
- package/examples/profiles/incident-management/valid/assignment-change.json +70 -0
- package/examples/profiles/incident-management/valid/case-close.json +114 -0
- package/examples/profiles/incident-management/valid/case-create.json +68 -0
- package/examples/profiles/incident-management/valid/case-reopen.json +77 -0
- package/examples/profiles/incident-management/valid/case-resolve.json +75 -0
- package/examples/profiles/incident-management/valid/corrective-action-open.json +72 -0
- package/examples/profiles/incident-management/valid/corrective-action-verify.json +82 -0
- package/examples/profiles/incident-management/valid/create-short-form.json +64 -0
- package/examples/profiles/incident-management/valid/major-declare.json +79 -0
- package/examples/profiles/incident-management/valid/priority-change.json +74 -0
- package/examples/profiles/incident-management/valid/problem-case-close.json +73 -0
- package/examples/profiles/incident-management/valid/rca-approve.json +86 -0
- package/examples/profiles/incident-management/valid/rca-create.json +73 -0
- package/examples/profiles/incident-management/valid/sla-breach.json +50 -0
- package/examples/profiles/message-broker-management/README.md +123 -0
- package/examples/profiles/message-broker-management/invalid/acl-grant-missing-principal.json +78 -0
- package/examples/profiles/message-broker-management/invalid/configuration-update-missing-change.json +58 -0
- package/examples/profiles/message-broker-management/invalid/message-replay-missing-scope.json +76 -0
- package/examples/profiles/message-broker-management/invalid/offset-reset-missing-target.json +96 -0
- package/examples/profiles/message-broker-management/invalid/queue-purge-missing-destructive-flag.json +79 -0
- package/examples/profiles/message-broker-management/invalid/queue-purge-missing-reason.json +77 -0
- package/examples/profiles/message-broker-management/invalid/quota-update-missing-dimension.json +72 -0
- package/examples/profiles/message-broker-management/invalid/topic-create-missing-authorization.json +61 -0
- package/examples/profiles/message-broker-management/invalid/topic-create-missing-classification.json +66 -0
- package/examples/profiles/message-broker-management/invalid/topic-create-missing-cluster.json +66 -0
- package/examples/profiles/message-broker-management/invalid/topic-delete-denied-missing-error-type.json +68 -0
- package/examples/profiles/message-broker-management/invalid/topic-delete-missing-approval.json +65 -0
- package/examples/profiles/message-broker-management/not-applicable/consumer-group-rebalance.json +40 -0
- package/examples/profiles/message-broker-management/not-applicable/message-consume.json +41 -0
- package/examples/profiles/message-broker-management/not-applicable/message-publish.json +41 -0
- package/examples/profiles/message-broker-management/valid/acl-grant.json +79 -0
- package/examples/profiles/message-broker-management/valid/cluster-upgrade.json +77 -0
- package/examples/profiles/message-broker-management/valid/configuration-update.json +65 -0
- package/examples/profiles/message-broker-management/valid/consumer-group-delete.json +64 -0
- package/examples/profiles/message-broker-management/valid/message-replay.json +77 -0
- package/examples/profiles/message-broker-management/valid/offset-reset.json +97 -0
- package/examples/profiles/message-broker-management/valid/queue-purge.json +82 -0
- package/examples/profiles/message-broker-management/valid/quota-update.json +73 -0
- package/examples/profiles/message-broker-management/valid/topic-create.json +67 -0
- package/examples/profiles/message-broker-management/valid/topic-delete-denied.json +69 -0
- package/examples/profiles/message-broker-management/valid/topic-delete.json +77 -0
- package/examples/profiles/message-broker-management/valid/topic-retention-reduce.json +77 -0
- package/examples/profiles/secrets-and-key-management/README.md +115 -0
- package/examples/profiles/secrets-and-key-management/invalid/certificate-issue-missing-expiry.json +54 -0
- package/examples/profiles/secrets-and-key-management/invalid/emergency-reveal-missing-approval.json +61 -0
- package/examples/profiles/secrets-and-key-management/invalid/key-destroy-missing-approval.json +56 -0
- package/examples/profiles/secrets-and-key-management/invalid/key-generate-missing-owner.json +56 -0
- package/examples/profiles/secrets-and-key-management/invalid/key-import-missing-reason.json +59 -0
- package/examples/profiles/secrets-and-key-management/invalid/policy-update-missing-change.json +61 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-create-missing-authorization.json +53 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-export-missing-destination.json +74 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-reveal-missing-reason.json +65 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-revoke-missing-reason.json +52 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-rotate-missing-change.json +48 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-rotate-missing-type.json +54 -0
- package/examples/profiles/secrets-and-key-management/not-applicable/key-decrypt.json +27 -0
- package/examples/profiles/secrets-and-key-management/not-applicable/secret-cache-refresh.json +27 -0
- package/examples/profiles/secrets-and-key-management/not-applicable/secret-retrieve.json +27 -0
- package/examples/profiles/secrets-and-key-management/valid/certificate-issue.json +55 -0
- package/examples/profiles/secrets-and-key-management/valid/key-destroy.json +64 -0
- package/examples/profiles/secrets-and-key-management/valid/key-export.json +73 -0
- package/examples/profiles/secrets-and-key-management/valid/key-generate.json +57 -0
- package/examples/profiles/secrets-and-key-management/valid/key-import.json +64 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-create.json +59 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-export.json +75 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-policy-update.json +68 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-reveal-emergency.json +68 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-reveal.json +70 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-revoke.json +57 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-rotate.json +55 -0
- package/examples/valid/access-request-approval.json +47 -0
- package/examples/valid/document-external-share.json +92 -0
- package/examples/valid/incident-case-close.json +114 -0
- package/examples/valid/kafka-consumer-offset-reset.json +105 -0
- package/examples/valid/minimal-event.json +22 -0
- package/examples/valid/nightly-reconciliation-job.json +33 -0
- package/examples/valid/order-api-publish.json +34 -0
- package/examples/valid/order-consumer-new-trace.json +36 -0
- package/examples/valid/privileged-configuration-change.json +109 -0
- package/examples/valid/service-account-data-export.json +83 -0
- package/examples/valid/user-role-assignment.json +92 -0
- package/package.json +6 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2a10-0009-7c4d-8b1e-2f3a40516209",
|
|
4
|
+
"time": "2026-03-19T09:37:26.900Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "restore.complete",
|
|
7
|
+
"category": "data-infrastructure",
|
|
8
|
+
"type": "restore",
|
|
9
|
+
"outcome": "partial",
|
|
10
|
+
"severity": "critical",
|
|
11
|
+
"summary": "Restore finished for the order tables; two reporting views were rebuilt separately."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "service",
|
|
15
|
+
"id": "service-restore-engine",
|
|
16
|
+
"tenantId": "tenant-7"
|
|
17
|
+
},
|
|
18
|
+
"resource": {
|
|
19
|
+
"type": "database",
|
|
20
|
+
"id": "database-orders",
|
|
21
|
+
"name": "orders-primary",
|
|
22
|
+
"parentId": "cluster-north-primary",
|
|
23
|
+
"classification": "confidential",
|
|
24
|
+
"ownerId": "team-payments",
|
|
25
|
+
"tenantId": "tenant-7"
|
|
26
|
+
},
|
|
27
|
+
"application": {
|
|
28
|
+
"name": "backup-service",
|
|
29
|
+
"environment": "production",
|
|
30
|
+
"version": "4.2.0",
|
|
31
|
+
"region": "region-north"
|
|
32
|
+
},
|
|
33
|
+
"organization": {
|
|
34
|
+
"tenantId": "tenant-7"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"correlationId": "restore-run-2026-0319"
|
|
38
|
+
},
|
|
39
|
+
"authorization": {
|
|
40
|
+
"decision": "allow",
|
|
41
|
+
"policy": "restore-authorization",
|
|
42
|
+
"policyVersion": "2"
|
|
43
|
+
},
|
|
44
|
+
"approval": {
|
|
45
|
+
"status": "approved",
|
|
46
|
+
"workflowId": "workflow-production-restore",
|
|
47
|
+
"requestId": "request-9014",
|
|
48
|
+
"approvedAt": "2026-03-19T08:40:00Z"
|
|
49
|
+
},
|
|
50
|
+
"reason": {
|
|
51
|
+
"code": "data-corruption",
|
|
52
|
+
"text": "Completion of the restore authorized under the same request.",
|
|
53
|
+
"reference": "incident-record-2211"
|
|
54
|
+
},
|
|
55
|
+
"metadata": {
|
|
56
|
+
"backup": {
|
|
57
|
+
"restoreId": "restore-2026-0319-0850",
|
|
58
|
+
"sourceId": "backup-2026-0318-0200",
|
|
59
|
+
"recoveryPoint": "2026-03-18T02:00:00Z",
|
|
60
|
+
"targetScope": "cluster-north-primary"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2a10-0008-7c4d-8b1e-2f3a40516208",
|
|
4
|
+
"time": "2026-03-19T08:50:02.770Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "restore.start",
|
|
7
|
+
"category": "data-infrastructure",
|
|
8
|
+
"type": "restore",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "critical",
|
|
11
|
+
"summary": "Point-in-time restore of the orders database started."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "admin",
|
|
15
|
+
"id": "user-3312",
|
|
16
|
+
"tenantId": "tenant-7",
|
|
17
|
+
"roles": ["database-operator"]
|
|
18
|
+
},
|
|
19
|
+
"resource": {
|
|
20
|
+
"type": "database",
|
|
21
|
+
"id": "database-orders",
|
|
22
|
+
"name": "orders-primary",
|
|
23
|
+
"parentId": "cluster-north-primary",
|
|
24
|
+
"classification": "confidential",
|
|
25
|
+
"ownerId": "team-payments",
|
|
26
|
+
"tenantId": "tenant-7"
|
|
27
|
+
},
|
|
28
|
+
"application": {
|
|
29
|
+
"name": "backup-service",
|
|
30
|
+
"environment": "production",
|
|
31
|
+
"version": "4.2.0",
|
|
32
|
+
"region": "region-north"
|
|
33
|
+
},
|
|
34
|
+
"organization": {
|
|
35
|
+
"tenantId": "tenant-7"
|
|
36
|
+
},
|
|
37
|
+
"request": {
|
|
38
|
+
"correlationId": "restore-run-2026-0319"
|
|
39
|
+
},
|
|
40
|
+
"authentication": {
|
|
41
|
+
"method": "mfa",
|
|
42
|
+
"mfa": true,
|
|
43
|
+
"assuranceLevel": "high"
|
|
44
|
+
},
|
|
45
|
+
"authorization": {
|
|
46
|
+
"decision": "allow",
|
|
47
|
+
"policy": "restore-authorization",
|
|
48
|
+
"policyVersion": "2",
|
|
49
|
+
"permissions": ["restore-execute"]
|
|
50
|
+
},
|
|
51
|
+
"approval": {
|
|
52
|
+
"status": "approved",
|
|
53
|
+
"workflowId": "workflow-production-restore",
|
|
54
|
+
"requestId": "request-9014",
|
|
55
|
+
"requiredApprovals": 2,
|
|
56
|
+
"receivedApprovals": 2,
|
|
57
|
+
"approvedAt": "2026-03-19T08:40:00Z"
|
|
58
|
+
},
|
|
59
|
+
"reason": {
|
|
60
|
+
"code": "data-corruption",
|
|
61
|
+
"text": "A faulty migration corrupted order records; service is being returned to the last verified recovery point.",
|
|
62
|
+
"reference": "incident-record-2211"
|
|
63
|
+
},
|
|
64
|
+
"controlCategories": ["recoverability", "privileged-access"],
|
|
65
|
+
"metadata": {
|
|
66
|
+
"backup": {
|
|
67
|
+
"restoreId": "restore-2026-0319-0850",
|
|
68
|
+
"sourceId": "backup-2026-0318-0200",
|
|
69
|
+
"recoveryPoint": "2026-03-18T02:00:00Z",
|
|
70
|
+
"targetScope": "cluster-north-primary",
|
|
71
|
+
"approvalRequired": true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2a10-0007-7c4d-8b1e-2f3a40516207",
|
|
4
|
+
"time": "2026-03-18T11:05:44.310Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "snapshot.create",
|
|
7
|
+
"category": "data-infrastructure",
|
|
8
|
+
"type": "create",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "info",
|
|
11
|
+
"summary": "Volume snapshot taken immediately before a schema migration."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "user-2201",
|
|
16
|
+
"tenantId": "tenant-7",
|
|
17
|
+
"roles": ["database-operator"]
|
|
18
|
+
},
|
|
19
|
+
"resource": {
|
|
20
|
+
"type": "volume",
|
|
21
|
+
"id": "volume-4471",
|
|
22
|
+
"name": "orders-data-volume",
|
|
23
|
+
"parentId": "cluster-north-primary",
|
|
24
|
+
"classification": "confidential",
|
|
25
|
+
"ownerId": "team-payments",
|
|
26
|
+
"tenantId": "tenant-7"
|
|
27
|
+
},
|
|
28
|
+
"application": {
|
|
29
|
+
"name": "backup-service",
|
|
30
|
+
"environment": "production",
|
|
31
|
+
"version": "4.2.0",
|
|
32
|
+
"region": "region-north"
|
|
33
|
+
},
|
|
34
|
+
"organization": {
|
|
35
|
+
"tenantId": "tenant-7"
|
|
36
|
+
},
|
|
37
|
+
"request": {
|
|
38
|
+
"correlationId": "change-request-4471"
|
|
39
|
+
},
|
|
40
|
+
"authorization": {
|
|
41
|
+
"decision": "allow",
|
|
42
|
+
"policy": "storage-administration",
|
|
43
|
+
"policyVersion": "4"
|
|
44
|
+
},
|
|
45
|
+
"reason": {
|
|
46
|
+
"code": "pre-change-safeguard",
|
|
47
|
+
"text": "Snapshot taken so the migration can be reversed without a full restore.",
|
|
48
|
+
"reference": "change-request-4471"
|
|
49
|
+
},
|
|
50
|
+
"metadata": {
|
|
51
|
+
"backup": {
|
|
52
|
+
"snapshotId": "snapshot-2026-0318-1105",
|
|
53
|
+
"recoveryPoint": "2026-03-18T11:05:00Z",
|
|
54
|
+
"retentionClass": "short-lived-7-day",
|
|
55
|
+
"targetScope": "storage-pool-north"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2a10-000d-7c4d-8b1e-2f3a4051620d",
|
|
4
|
+
"time": "2026-03-20T16:40:18.070Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "snapshot.delete",
|
|
7
|
+
"category": "data-infrastructure",
|
|
8
|
+
"type": "delete",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "medium",
|
|
11
|
+
"summary": "Pre-migration volume snapshot removed after the migration was verified."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "user-2201",
|
|
16
|
+
"tenantId": "tenant-7",
|
|
17
|
+
"roles": ["database-operator"]
|
|
18
|
+
},
|
|
19
|
+
"resource": {
|
|
20
|
+
"type": "volume",
|
|
21
|
+
"id": "volume-4471",
|
|
22
|
+
"name": "orders-data-volume",
|
|
23
|
+
"parentId": "cluster-north-primary",
|
|
24
|
+
"classification": "confidential",
|
|
25
|
+
"ownerId": "team-payments",
|
|
26
|
+
"tenantId": "tenant-7"
|
|
27
|
+
},
|
|
28
|
+
"application": {
|
|
29
|
+
"name": "backup-service",
|
|
30
|
+
"environment": "production",
|
|
31
|
+
"version": "4.2.0",
|
|
32
|
+
"region": "region-north"
|
|
33
|
+
},
|
|
34
|
+
"organization": {
|
|
35
|
+
"tenantId": "tenant-7"
|
|
36
|
+
},
|
|
37
|
+
"request": {
|
|
38
|
+
"correlationId": "change-request-4471"
|
|
39
|
+
},
|
|
40
|
+
"authorization": {
|
|
41
|
+
"decision": "allow",
|
|
42
|
+
"policy": "storage-administration",
|
|
43
|
+
"policyVersion": "4",
|
|
44
|
+
"permissions": ["snapshot-delete"]
|
|
45
|
+
},
|
|
46
|
+
"reason": {
|
|
47
|
+
"code": "migration-verified",
|
|
48
|
+
"text": "The migration this snapshot guarded completed and was verified, so the rollback point is no longer needed.",
|
|
49
|
+
"reference": "change-request-4471"
|
|
50
|
+
},
|
|
51
|
+
"controlCategories": ["data-protection", "recoverability"],
|
|
52
|
+
"metadata": {
|
|
53
|
+
"backup": {
|
|
54
|
+
"snapshotId": "snapshot-2026-0318-1105",
|
|
55
|
+
"recoveryPoint": "2026-03-18T11:05:00Z",
|
|
56
|
+
"retentionClass": "short-lived-7-day",
|
|
57
|
+
"approvalRequired": false
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Customer and account management profile fixtures
|
|
2
|
+
|
|
3
|
+
**Status: Informative.** These fixtures illustrate and regression-test the
|
|
4
|
+
[customer-and-account-management profile](../../../profiles/customer-and-account-management/). The
|
|
5
|
+
rules themselves are in
|
|
6
|
+
[profile.json](../../../profiles/customer-and-account-management/profile.json).
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
auditmodel check-profile examples/profiles/customer-and-account-management/valid \
|
|
10
|
+
--profile customer-and-account-management
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Every fixture here — valid, invalid and not-applicable alike — is a **core-conforming**,
|
|
14
|
+
**privacy-clean** event. The ones under `invalid/` fail the profile, not the core schema. That
|
|
15
|
+
separation is the point: a profile adds requirements to events the core already accepts.
|
|
16
|
+
|
|
17
|
+
## The guarantee these fixtures carry
|
|
18
|
+
|
|
19
|
+
Each file under `valid/` must satisfy all three commands, and a test enforces it:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
auditmodel validate examples/profiles/customer-and-account-management/valid
|
|
23
|
+
auditmodel lint-privacy examples/profiles/customer-and-account-management/valid
|
|
24
|
+
auditmodel check-profile examples/profiles/customer-and-account-management/valid \
|
|
25
|
+
--profile customer-and-account-management
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
A profile that accepted an event the core rejects would break the core invariant. A profile whose own
|
|
29
|
+
examples carried a customer's name, address or account number would be worse than no profile.
|
|
30
|
+
|
|
31
|
+
## Valid fixtures
|
|
32
|
+
|
|
33
|
+
All twelve conform with **zero** warnings: each one records the recommended `/reason`,
|
|
34
|
+
`/request/correlationId` and `/resource/classification` as well as everything its rules require.
|
|
35
|
+
|
|
36
|
+
| File | Event | Demonstrates |
|
|
37
|
+
| ------------------------------- | ------------------------ | -------------------------------------------------------------------- |
|
|
38
|
+
| `customer-create.json` | `customer.create` | Onboarding: the party type alone is what this event must add |
|
|
39
|
+
| `customer-update.json` | `customer.update` | A record change carrying field names instead of values |
|
|
40
|
+
| `customer-merge.json` | `customer.merge` | A merge naming the retired record on both sides |
|
|
41
|
+
| `customer-close.json` | `customer.close` | A closure recorded as a state transition |
|
|
42
|
+
| `customer-restrict.json` | `customer.restrict` | A restriction stating what it prevents, with the review behind it |
|
|
43
|
+
| `customer-delete.json` | `customer.delete` | Erasure of personal data with the transactional record retained |
|
|
44
|
+
| `account-open.json` | `account.open` | An account naming the customer it belongs to |
|
|
45
|
+
| `account-update-override.json` | `account.update` | A manual override, which needs a justification an update does not |
|
|
46
|
+
| `account-freeze.json` | `account.freeze` | A freeze: restriction scope, resulting status and transition |
|
|
47
|
+
| `account-close-approved.json` | `account.close` | A closure the producer declared needed approval |
|
|
48
|
+
| `account-limit-increase.json` | `account.limit.increase` | A limit change recorded as a before-and-after pair |
|
|
49
|
+
| `account-status-on-behalf.json` | `account.status.update` | The alternative status-event shape, performed for the account holder |
|
|
50
|
+
|
|
51
|
+
Two pairs are deliberately near-identical so that the conditional rules are visible:
|
|
52
|
+
|
|
53
|
+
- `account-close-approved.json` sets `approvalRequired: true` and therefore must carry
|
|
54
|
+
`/approval/status`; `customer-close.json` does not set it and carries an approval anyway.
|
|
55
|
+
- `account-status-on-behalf.json` sets `onBehalfOf: true` and therefore must name a `/subject`;
|
|
56
|
+
every other fixture omits both.
|
|
57
|
+
- `account-update-override.json` sets `manualOverride: true` and therefore must carry an
|
|
58
|
+
authorization decision and a justification, which no rule requires of a plain `account.update`.
|
|
59
|
+
|
|
60
|
+
`account-status-on-behalf.json` records a `/subject` **without** a `/delegation` object, because many
|
|
61
|
+
systems record acting-for relationships without modelling delegation. Where delegation _is_ modelled,
|
|
62
|
+
the core already requires a subject.
|
|
63
|
+
|
|
64
|
+
## Invalid fixtures
|
|
65
|
+
|
|
66
|
+
Each is its valid counterpart with exactly one profile-required value removed, so it fails for one
|
|
67
|
+
documented reason. A test asserts the rule, the pointer, and that **exactly one** error is produced.
|
|
68
|
+
|
|
69
|
+
| File | Derived from | Violates | At |
|
|
70
|
+
| ----------------------------------------------- | ------------------------------- | ----------------------- | ------------------------------------- |
|
|
71
|
+
| `customer-create-missing-customer-type.json` | `customer-create.json` | `CUSTOMER-CORE-001` | `/metadata/customer/customerType` |
|
|
72
|
+
| `account-open-missing-owner.json` | `account-open.json` | `CUSTOMER-ACCOUNT-001` | `/resource/ownerId` |
|
|
73
|
+
| `customer-close-missing-authorization.json` | `customer-close.json` | `CUSTOMER-CONTROL-001` | `/authorization` |
|
|
74
|
+
| `customer-update-missing-change.json` | `customer-update.json` | `CUSTOMER-UPDATE-001` | `/change` |
|
|
75
|
+
| `account-freeze-missing-status.json` | `account-freeze.json` | `CUSTOMER-STATE-001` | `/metadata/customer/status` |
|
|
76
|
+
| `account-freeze-missing-restriction-scope.json` | `account-freeze.json` | `CUSTOMER-RESTRICT-001` | `/metadata/customer/restrictionScope` |
|
|
77
|
+
| `account-limit-missing-before.json` | `account-limit-increase.json` | `CUSTOMER-LIMIT-001` | `/change/before` |
|
|
78
|
+
| `customer-merge-missing-source.json` | `customer-merge.json` | `CUSTOMER-MERGE-001` | `/metadata/customer/mergedFromId` |
|
|
79
|
+
| `customer-delete-missing-scope.json` | `customer-delete.json` | `CUSTOMER-DELETE-001` | `/metadata/customer/deletionScope` |
|
|
80
|
+
| `account-close-missing-approval.json` | `account-close-approved.json` | `CUSTOMER-APPROVAL-001` | `/approval/status` |
|
|
81
|
+
| `account-status-missing-subject.json` | `account-status-on-behalf.json` | `CUSTOMER-SUBJECT-001` | `/subject` |
|
|
82
|
+
| `account-update-missing-override-reason.json` | `account-update-override.json` | `CUSTOMER-OVERRIDE-001` | `/reason` |
|
|
83
|
+
|
|
84
|
+
Every enforceable rule in the profile has a fixture here. Three of these fixtures also produce a
|
|
85
|
+
**warning** — a missing recommended `/approval`, `/change/changedFields` or `/reason` — which is
|
|
86
|
+
correct: a recommendation never fails conformance, and the negative test counts errors only.
|
|
87
|
+
|
|
88
|
+
Each fixture keeps the `id` of the valid event it was derived from, so a reader can diff the two files
|
|
89
|
+
and see the single removed field.
|
|
90
|
+
|
|
91
|
+
## Not-applicable fixtures
|
|
92
|
+
|
|
93
|
+
| File | Event | Why it is out of scope |
|
|
94
|
+
| ---------------------------- | ----------------------- | ---------------------------------------------- |
|
|
95
|
+
| `customer-profile-view.json` | `customer.profile.view` | An ordinary read of a customer record |
|
|
96
|
+
| `customer-search.json` | `customer.search` | A directory search from a service desk console |
|
|
97
|
+
| `account-balance-view.json` | `account.balance.view` | A routine balance lookup |
|
|
98
|
+
|
|
99
|
+
These are perfectly good audit events that this profile deliberately does not govern.
|
|
100
|
+
`check-profile` reports each as not applicable with exit code 3.
|
|
101
|
+
|
|
102
|
+
They exist to hold the exclusion in place. No selector in the profile uses a bare `customer.` or
|
|
103
|
+
`account.` prefix; the lifecycle families are named event-by-event and only `account.limit.` and
|
|
104
|
+
`account.status.` are matched by prefix. If a future edit widened a selector to `customer.` or
|
|
105
|
+
`account.`, these three fixtures would start conforming instead of being skipped and the test would
|
|
106
|
+
fail — which is the point, because that edit would silently impose a party type, an owning customer
|
|
107
|
+
and a justification on every profile view, search and balance lookup in a customer platform.
|
|
108
|
+
|
|
109
|
+
Not applicable is **not** conformance. It is reported as out of scope, never as satisfied.
|
|
110
|
+
|
|
111
|
+
## Vendor neutrality
|
|
112
|
+
|
|
113
|
+
No fixture names a real product, company, bank, regulator, jurisdiction or regulation. Customer types,
|
|
114
|
+
account types, statuses, restriction scopes, limit types and policy names are illustrative strings,
|
|
115
|
+
not any organization's scheme, and no rule constrains their values.
|
|
116
|
+
|
|
117
|
+
## Privacy
|
|
118
|
+
|
|
119
|
+
No fixture contains a personal name, an email address, a telephone number, a postal address, a date of
|
|
120
|
+
birth, a national identifier, an account number, a card number or an IBAN — and none contains a
|
|
121
|
+
credential, token or secret of any kind. Parties and accounts are referred to only by opaque
|
|
122
|
+
identifiers such as `customer-42`, `account-ref-781` and `review-2026-044`, and `resource.name` is
|
|
123
|
+
left unused throughout because for a customer record it would usually be a person's or a company's
|
|
124
|
+
name.
|
|
125
|
+
|
|
126
|
+
The only values that appear inside `change.before` and `change.after` are a status token and a numeric
|
|
127
|
+
limit — exactly the minimum needed to make each transition reviewable.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2c40-0010-7b3c-8d4e-5f6071829310",
|
|
4
|
+
"time": "2026-04-08T18:05:27.310Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "account.close",
|
|
7
|
+
"category": "resource-lifecycle",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "high",
|
|
11
|
+
"summary": "Settlement account closed after the balance was transferred and the contract ended."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "operator-3318",
|
|
16
|
+
"tenantId": "tenant-19",
|
|
17
|
+
"roles": ["customer-administrator"]
|
|
18
|
+
},
|
|
19
|
+
"resource": {
|
|
20
|
+
"type": "account",
|
|
21
|
+
"id": "account-ref-781",
|
|
22
|
+
"ownerId": "customer-42",
|
|
23
|
+
"classification": "restricted",
|
|
24
|
+
"tenantId": "tenant-19"
|
|
25
|
+
},
|
|
26
|
+
"application": {
|
|
27
|
+
"name": "customer-platform",
|
|
28
|
+
"environment": "production",
|
|
29
|
+
"version": "5.2.0",
|
|
30
|
+
"service": "account-records"
|
|
31
|
+
},
|
|
32
|
+
"organization": {
|
|
33
|
+
"tenantId": "tenant-19",
|
|
34
|
+
"businessUnitId": "unit-retail"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"requestId": "request-9f3239",
|
|
38
|
+
"correlationId": "offboarding-6633"
|
|
39
|
+
},
|
|
40
|
+
"authorization": {
|
|
41
|
+
"decision": "allow",
|
|
42
|
+
"engine": "policy-service",
|
|
43
|
+
"policy": "account-closure",
|
|
44
|
+
"policyVersion": "8"
|
|
45
|
+
},
|
|
46
|
+
"reason": {
|
|
47
|
+
"code": "contract-ended",
|
|
48
|
+
"text": "Account closed as part of an agreed end of the customer relationship.",
|
|
49
|
+
"reference": "case-3688"
|
|
50
|
+
},
|
|
51
|
+
"change": {
|
|
52
|
+
"type": "update",
|
|
53
|
+
"changedFields": ["status"],
|
|
54
|
+
"before": {
|
|
55
|
+
"status": "active"
|
|
56
|
+
},
|
|
57
|
+
"after": {
|
|
58
|
+
"status": "closed"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"controlCategories": ["account-lifecycle", "change-approval"],
|
|
62
|
+
"metadata": {
|
|
63
|
+
"customer": {
|
|
64
|
+
"customerType": "business",
|
|
65
|
+
"accountType": "settlement",
|
|
66
|
+
"status": "closed",
|
|
67
|
+
"approvalRequired": true
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2c40-0009-7b3c-8d4e-5f6071829309",
|
|
4
|
+
"time": "2026-04-08T17:33:44.190Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "account.freeze",
|
|
7
|
+
"category": "security",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "critical",
|
|
11
|
+
"summary": "Outbound transactions frozen on a settlement account after a fraud alert."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "operator-4102",
|
|
16
|
+
"tenantId": "tenant-19",
|
|
17
|
+
"roles": ["customer-risk-officer"]
|
|
18
|
+
},
|
|
19
|
+
"resource": {
|
|
20
|
+
"type": "account",
|
|
21
|
+
"id": "account-ref-781",
|
|
22
|
+
"ownerId": "customer-42",
|
|
23
|
+
"classification": "restricted",
|
|
24
|
+
"tenantId": "tenant-19"
|
|
25
|
+
},
|
|
26
|
+
"application": {
|
|
27
|
+
"name": "customer-platform",
|
|
28
|
+
"environment": "production",
|
|
29
|
+
"version": "5.2.0",
|
|
30
|
+
"service": "account-risk"
|
|
31
|
+
},
|
|
32
|
+
"organization": {
|
|
33
|
+
"tenantId": "tenant-19",
|
|
34
|
+
"businessUnitId": "unit-retail"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"requestId": "request-9f3227",
|
|
38
|
+
"correlationId": "fraud-alert-8823"
|
|
39
|
+
},
|
|
40
|
+
"authentication": {
|
|
41
|
+
"method": "oidc",
|
|
42
|
+
"provider": "corporate-idp",
|
|
43
|
+
"mfa": true,
|
|
44
|
+
"authenticatedAt": "2026-04-08T17:29:02Z"
|
|
45
|
+
},
|
|
46
|
+
"authorization": {
|
|
47
|
+
"decision": "allow",
|
|
48
|
+
"engine": "policy-service",
|
|
49
|
+
"policy": "account-risk-controls",
|
|
50
|
+
"policyVersion": "11"
|
|
51
|
+
},
|
|
52
|
+
"approval": {
|
|
53
|
+
"status": "approved",
|
|
54
|
+
"workflowId": "workflow-account-freeze",
|
|
55
|
+
"requiredApprovals": 1,
|
|
56
|
+
"receivedApprovals": 1,
|
|
57
|
+
"approvedAt": "2026-04-08T17:32:18Z"
|
|
58
|
+
},
|
|
59
|
+
"reason": {
|
|
60
|
+
"code": "fraud-alert",
|
|
61
|
+
"text": "Automated monitoring flagged an unusual outbound pattern for manual review.",
|
|
62
|
+
"reference": "case-4180"
|
|
63
|
+
},
|
|
64
|
+
"change": {
|
|
65
|
+
"type": "update",
|
|
66
|
+
"changedFields": ["status"],
|
|
67
|
+
"before": {
|
|
68
|
+
"status": "active"
|
|
69
|
+
},
|
|
70
|
+
"after": {
|
|
71
|
+
"status": "frozen"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"controlCategories": ["account-lifecycle", "account-restriction"],
|
|
75
|
+
"metadata": {
|
|
76
|
+
"customer": {
|
|
77
|
+
"customerType": "business",
|
|
78
|
+
"accountType": "settlement",
|
|
79
|
+
"status": "frozen",
|
|
80
|
+
"reviewId": "review-2026-051"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
package/examples/profiles/customer-and-account-management/invalid/account-freeze-missing-status.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2c40-0009-7b3c-8d4e-5f6071829309",
|
|
4
|
+
"time": "2026-04-08T17:33:44.190Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "account.freeze",
|
|
7
|
+
"category": "security",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "critical",
|
|
11
|
+
"summary": "Outbound transactions frozen on a settlement account after a fraud alert."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "operator-4102",
|
|
16
|
+
"tenantId": "tenant-19",
|
|
17
|
+
"roles": ["customer-risk-officer"]
|
|
18
|
+
},
|
|
19
|
+
"resource": {
|
|
20
|
+
"type": "account",
|
|
21
|
+
"id": "account-ref-781",
|
|
22
|
+
"ownerId": "customer-42",
|
|
23
|
+
"classification": "restricted",
|
|
24
|
+
"tenantId": "tenant-19"
|
|
25
|
+
},
|
|
26
|
+
"application": {
|
|
27
|
+
"name": "customer-platform",
|
|
28
|
+
"environment": "production",
|
|
29
|
+
"version": "5.2.0",
|
|
30
|
+
"service": "account-risk"
|
|
31
|
+
},
|
|
32
|
+
"organization": {
|
|
33
|
+
"tenantId": "tenant-19",
|
|
34
|
+
"businessUnitId": "unit-retail"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"requestId": "request-9f3227",
|
|
38
|
+
"correlationId": "fraud-alert-8823"
|
|
39
|
+
},
|
|
40
|
+
"authentication": {
|
|
41
|
+
"method": "oidc",
|
|
42
|
+
"provider": "corporate-idp",
|
|
43
|
+
"mfa": true,
|
|
44
|
+
"authenticatedAt": "2026-04-08T17:29:02Z"
|
|
45
|
+
},
|
|
46
|
+
"authorization": {
|
|
47
|
+
"decision": "allow",
|
|
48
|
+
"engine": "policy-service",
|
|
49
|
+
"policy": "account-risk-controls",
|
|
50
|
+
"policyVersion": "11"
|
|
51
|
+
},
|
|
52
|
+
"approval": {
|
|
53
|
+
"status": "approved",
|
|
54
|
+
"workflowId": "workflow-account-freeze",
|
|
55
|
+
"requiredApprovals": 1,
|
|
56
|
+
"receivedApprovals": 1,
|
|
57
|
+
"approvedAt": "2026-04-08T17:32:18Z"
|
|
58
|
+
},
|
|
59
|
+
"reason": {
|
|
60
|
+
"code": "fraud-alert",
|
|
61
|
+
"text": "Automated monitoring flagged an unusual outbound pattern for manual review.",
|
|
62
|
+
"reference": "case-4180"
|
|
63
|
+
},
|
|
64
|
+
"change": {
|
|
65
|
+
"type": "update",
|
|
66
|
+
"changedFields": ["status"],
|
|
67
|
+
"before": {
|
|
68
|
+
"status": "active"
|
|
69
|
+
},
|
|
70
|
+
"after": {
|
|
71
|
+
"status": "frozen"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"controlCategories": ["account-lifecycle", "account-restriction"],
|
|
75
|
+
"metadata": {
|
|
76
|
+
"customer": {
|
|
77
|
+
"customerType": "business",
|
|
78
|
+
"accountType": "settlement",
|
|
79
|
+
"restrictionScope": "outbound-transactions",
|
|
80
|
+
"reviewId": "review-2026-051"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|