oci-data-safe
/oci-data-safe
OCI Data Safe administration via oci-cli and the OCI SDK: target-database registration (Autonomous and Base DB / Exadata cloud service), Data Safe private endpoints, Security Assessment and User Assessment, Activity Auditing (scim_query time filters), Data Discovery (sensitive data models), and Data Masking. Use whenever a request mentions OCI Data Safe, target database registration, Data Safe private endpoint, security assessment, user assessment, activity auditing, audit policy/retention, sensitive data discovery, data masking, or a database NEEDS_ATTENTION / ORA-01017 in Data Safe. Assessme
- Author
- adibirzu ↗
- Repository
- oci-skills ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
OCI Data Safe administration via oci-cli and the OCI SDK: target-database registration (Autonomous and Base DB / Exadata cloud service), Data Safe private endpoints, Security Assessment and User Assessment, Activity Auditing (scim_query time filters), Data Discovery (sensitive data models), and Data Masking. Use whenever a request mentions OCI Data Safe, target database registration, Data Safe private endpoint, security assessment, user assessment, activity auditing, audit policy/retention, sensitive data discovery, data masking, or a database NEEDS_ATTENTION / ORA-01017 in Data Safe. Assessme
Original author description
OCI Data Safe administration via oci-cli and the OCI SDK: target-database registration (Autonomous and Base DB / Exadata cloud service), Data Safe private endpoints, Security Assessment and User Assessment, Activity Auditing (scim_query time filters), Data Discovery (sensitive data models), and Data Masking. Use whenever a request mentions OCI Data Safe, target database registration, Data Safe private endpoint, security assessment, user assessment, activity auditing, audit policy/retention, sensitive data discovery, data masking, or a database NEEDS_ATTENTION / ORA-01017 in Data Safe. Assessme
How it works
- First move (always)
- Routing — pick the task
- Common multi-step flows
- Common tasks
- Key rules
- Safety notes
- Expected output
- Official documentation
SKILL.md preview
--- name: oci-data-safe description: >- OCI Data Safe administration via oci-cli and the OCI SDK: target-database registration (Autonomous and Base DB / Exadata cloud service), Data Safe private endpoints, Security Assessment and User Assessment, Activity Auditing (scim_query time filters), Data Discovery (sensitive data models), and Data Masking. Use whenever a request mentions OCI Data Safe, target database registration, Data Safe private endpoint, security assessment, user assessment, activity auditing, audit policy/retention, sensitive data discovery, data masking, or a database NEEDS_ATTENTION / ORA-01017 in Data Safe. Assessments are read; registration/masking/audit-policy changes go through the safety core. --- # OCI Data Safe Register and assess databases with Data Safe safely. Reading assessments is safe; **registration**, **audit-policy/retention changes**, and **masking** are mutations and go through `run_action`. All CLI runs through `oci_cli` (`../../scripts/common.sh`). Never inline real OCIDs, IPs, service names, or credentials — use `<PLACEHOLDER>` tokens. ## First move (always) 1. Confirm the tenancy/compartment: ```bash ./scripts/oci_preflight.sh -c <COMPARTMENT_OCID> ``` 2. Check the KB before debugging a registration failure: ```bash python3 scripts/kb_lookup.py "data safe target" observability-db ``` Read [../../references/data-safe.md](../../references/data-safe.md) for the registration payloads, privilege scripts, and assessment/audit/masking commands, and [../../references/tenancy-safety.md](../../references/tenancy-safety.md) for the safety rules. ## Routing — pick the task | Request mentions… | Go to | |---|---| | register/onboard a target, private endpoint | Target registration | | privileges, "download privilege script", grants | DB-side privileges | | security posture, risky config, drift | Security & User Assessment | | audit events, retention, who did what | Activity Auditing | | sensitive columns, PII discovery | Data Discovery | | mask/redact data for non-prod | Data Masking | | NEEDS_ATTENTION / ORA-01017 | Gotchas | **Scope.** This skill drives the **OCI Data Safe service** (registration, assessments, activity auditing, masking) — the security layer *around* the database. For security work *inside* the database that Data Safe doesn't own — SQL-level `GRANT`/`REVOKE`, Unified Auditing policy authoring, schema hardening — route to `oracle/skills` `db/`. See [references/oracle-skills-alignment.md](../../references/oracle-skills-alignment.md). ## Common multi-step flows | Task | Sequence | |------|----------| | Register a target | ensure a Data Safe private endpoint (for cloud/Exadata DB) → run the DB-side privilege script → `target-database create` (creds via `file://`) → wait the work request → read the Security Assessment | | Fix `NEEDS_ATTENTION` / `ORA-01017` | rotate the DB service-account password `CONTAINER=ALL` → update the target credential → wait the work request → re-check lifecycle-state (KB-057) | | Mask a non-prod copy | run Data Discovery (sensitive data model) → **verify the target is a non-prod copy** → run masking (irreversible) → confirm masked columns | | Audit a time window | `audit-event list --scim-query` with `auditEventTime` bounds (NOT `time_started`/`time_ended`, KB-032) → check retention covers the window | ## Common tasks ```bash # Register an Autonomous DB target (credentials via file://, never argv). run_action --risk additive --compartment <COMPARTMENT_OCID> --description "register ADB target" -- oci_cli data-safe target-database create \ --compartment-id <COMPARTMENT_OCID> --display-name <NAME> \ --database-details file://database-details.json \ --credentials file://credentials.json # Read latest Security Assessment for a target (safe). oci_cli data-safe security-assessment list --compartment-id <COMPARTMENT_OCID> \ --target-id <TARGET_OCID> --query 'data[0]' # Activity audit window — scim_query, NOT time_started/time_ended. oci_cli data-safe audit-event list --compartment-id <COMPARTMENT_OCID> \ --scim-query '(auditEventTime ge "<RFC3339_START>") and (auditEventTime le "<RFC3339_END>")' ``` ## Key rules - **Target type drives the payload:** `AUTONOMOUS_DATABASE` uses `autonomousDatabaseId`; `DATABASE_CLOUD_SERVICE` is keyed off `dbSystemId` + `serviceName` (not the DB OCID). - **`target-database update` is async** (`--wait-for-state SUCCEEDED`) and needs `--force` non-interactively. - **Audit queries use `scim_query`** for the time window. - **`NEEDS_ATTENTION` + `ORA-01017`** = stale service-account password: rotate `CONTAINER=ALL`, update the target credential, wait the work request. ## Safety notes - **Read assessments freely; gate the rest.** Registration, audit-policy/retention changes, and masking are mutations — `run_action`. - **Never print or commit credentials.** `file://` payloads in `0600` files under a `0700` dir, deleted in `finally`; `redact` any output. - **Mask only a verified non-prod copy** — it is irreversible on the masked data. - **Never invent `oci` flags.** Fetch the exact command shape first: `python3 scripts/oci_cli_help.py <service> <op>`. ## Expected output ```markdown **Finding** — target/assessment state or risk (names, not OCIDs). **Evidence** — redacted assessment / audit result. **Action** — exact command(s); registration/masking gated by confirm/dry-run. **Verification** — re-read the assessment / target lifecycle-state showing the result. **KB** — KB entry used, or new KB-<n> added. ``` ## Official documentation [Data Safe](https://docs.oracle.com/en-us/iaas/data-safe/doc/oracle-data-safe-overview.html). Full list in the [data-safe reference](../../references/data-safe.md). **Open Knowledge Format grounding** — every doc link here is registered and liveness-checked in the [oracle-docs.md index](../../references/oracle-docs.md) (the pack's single source of truth). When extending this skill to build an OCI customer solution, cite the most specific official page through that index so every claim stays verifiable; the non-official MCP gateway is never a source of truth.
Files in this package (2)
- SKILL.md 6 KB
- agents/openai.yaml 1 KB
Versions
The database has no other skills named oci-data-safe.
Database snapshot: 13.11.2026 · package version b4d581a584f9 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100oci-database-cloud
Operate OCI Base Database Service and Exadata Database Service control-plane lifecycle: DB systems, Exadata infrastructure and VM clusters, DB homes, databases and PDB resources, backups and restores, scaling, maintenance, patching, upgrades, and Data Guard associations. Use… - 95build-oci-exadata-database-main-tf
Generate or update Terraform configuration only for OCI Exadata Database Service on Dedicated Infrastructure with the upstream `oci-landing-zones/terraform-oci-modules-oracle-database/tree/main/exadata-database` folder. Use for Cloud Exadata Infrastructure, Cloud VM Clusters, DB… - 87oci
Oracle Cloud Infrastructure guidance for designing, operating, and troubleshooting OCI services, including OCI Kubernetes Engine (OKE), OCI Internet of Things Platform, OCI Functions deployment and troubleshooting, OCI Exadata Database Service Terraform configuration, OCI IAM… - 95oracle-cloud
Use this skill when the user says 'oracle cloud', 'oci', 'oracle cloud infrastructure', 'oracle database cloud', 'oci compute', 'oci networking', 'oci storage', 'oci identity', 'oci iam', 'oracle autonomous database', 'oci load balancer', 'oci dns', 'oci functions', 'oci… - 100oraclecloud-security-basics
Master OCI IAM policy syntax, common policy patterns, and API key management. Use when writing IAM policies, granting access to compartments, or managing API keys. Trigger with "oraclecloud security basics", "oci iam policy", "oci policy syntax", "oci api key setup". - 100oci-cve-checker
Use this skill to compare CVE vulnerabilities between two OCI container images and generate reports showing fixed and new CVEs.