Oracle Cloud Infrastructure (OCI) Object Storage keeps buckets private by default, but two features can open them to anyone on the internet: public bucket visibility and pre-authenticated requests, and both deserve the same governance as any other credential. This guide explains how bucket visibility works, why pre-authenticated requests (PARs) are effectively bearer tokens tied to the identity that created them, how encryption options differ, and how to set up versioning, retention, events and review so that a misconfigured bucket is found before it becomes a leak.
The tenancy-wide picture, including compartments, IAM policies and API keys, is covered in the Oracle Cloud Infrastructure Security Guide. This page stays on Object Storage.
This is an independent guide from NHI Mgmt Group, based on Oracle's public documentation as of November 2026. It is not sponsored or reviewed by Oracle. Product features change, so confirm settings against Oracle's current documentation.
Key takeaways
- New buckets are private. Making a bucket public allows anonymous, unauthenticated access, and Oracle's own documentation recommends PARs instead because they offer more scoping and expiry options.
- Anyone holding a PAR URL can use it with ordinary HTTP tools. Treat each PAR as a secret, and treat the creator's permissions as the real authorisation behind it.
- A PAR's creator permissions are checked on every use. If the creator loses permissions or is deleted, the PAR stops working, which is both a safety net and an operational risk.
- PARs require an expiry date but there is no upper limit, and they cannot be edited. Set short expiries and delete PARs that are no longer needed.
- Changing a bucket from public to private does not invalidate existing PARs. Closing an exposure means checking both.
- Encryption at rest is always on with AES-256. Customer-managed Vault keys add control over the master key; SSE-C puts key custody entirely on you.
How access to OCI Object Storage works
Every request to Object Storage is either authenticated or anonymous. Authenticated requests come from users, groups, dynamic groups for instances and functions, or service principals, and are authorised by IAM policies written against compartments and resource types. These are the normal paths for applications and pipelines, and they rely on non-human identities such as API signing keys, instance principals and resource principals. Least privilege applies to them in the usual way: grant the narrowest verbs on the narrowest compartment, and avoid tenancy-wide object permissions for workloads.
Anonymous access exists in two forms. A public bucket allows anyone to read objects without credentials. A PAR gives anyone holding a specific URL access to a bucket, a prefix or an object. Both bypass the need for the caller to have an OCI identity, which is why they are the most common route for unintended exposure. MITRE ATT&CK technique Data from Cloud Storage (T1530) describes adversaries collecting data from exactly this kind of misconfigured store.
Bucket visibility: private and public
According to Oracle's documentation on managing buckets, a new bucket is private and access requires authentication and authorisation. A bucket becomes public when read access is enabled for anonymous users. Two public options exist:
| Public option | What anonymous users can do |
|---|---|
| List and download (the default when public access is enabled) | List bucket contents and download objects |
| Download only | Download objects whose names they know, without listing contents |
Making a bucket public at creation needs the BUCKET_CREATE permission, and making an existing bucket public needs BUCKET_UPDATE. Those two permissions are therefore the identity controls that decide who can expose data. Many broad policies grant manage buckets or manage object-family, which include them. Review which groups and dynamic groups hold these permissions, and in workload compartments restrict them to a small platform team.
Oracle warns that anonymous access lets any user obtain object metadata, download objects and, optionally, list contents. Download only reduces discovery, but object names are often predictable, so it is not a confidentiality control.
Object Storage supports anonymous access only for buckets that are not in a security zone. Placing sensitive compartments in a security zone is therefore a structural way to rule out public buckets. The OCI Cloud Guard and Security Zones Guide explains how zones and Cloud Guard detectors work together.
Changing visibility works both ways, and Oracle notes that switching a bucket from public to private does not affect existing PARs. They still work. Any response to a public bucket finding must include a PAR review.
Pre-authenticated requests: how they work
Oracle's pre-authenticated requests documentation describes PARs as a way to let users access a bucket or object without their own credentials. A unique URL is generated, and anyone with the URL can access the targets using standard HTTP tools such as curl and wget.
The options when creating a PAR are:
- Access type: read, write or read and write.
- Scope: all objects in a bucket, a specific object, or all objects with a given prefix.
- Listing: for bucket and prefix PARs, object listing is off by default and must be enabled explicitly at creation.
- Expiry: an expiry date is required, but there is no limit on how far in the future it can be set.
A PAR cannot be edited. To change access or enable listing, a new PAR must be created. Deleting a PAR revokes access. A prefix PAR only allows GET and PUT on object names that start with the prefix, PARs cannot be used to delete buckets or objects, and a bucket cannot be deleted while any PAR is associated with it or its objects. There is no limit on the number of PARs.
Permissions behind a PAR
Creating or managing PARs requires PAR_MANAGE on the target bucket. The access type needs more: write PARs require OBJECT_CREATE and OBJECT_OVERWRITE, and read and write PARs require OBJECT_READ, OBJECT_CREATE and OBJECT_OVERWRITE.
The most important design point is that the creator's permissions are checked every time the PAR is used. The PAR is bound to the creator's permissions, not to their sign-in credentials, so changing a password or key does not affect it. The documentation lists the conditions under which a PAR stops working: the creator's permissions change, the creator user is deleted, a federated creator loses the capabilities they had when creating it, or the PAR expires or is deleted.
Two consequences follow. First, a PAR created by a highly privileged administrator keeps working as long as that administrator's access stays the same, which can be years if expiry is set far ahead. Second, PARs used by production integrations can break without warning when someone tidies up a user's group memberships. Both point to the same answer: create PARs from a dedicated identity whose permissions are scoped to the bucket and are stable, rather than from a personal administrator account.
Governing PARs as non-human credentials
A PAR URL is a bearer credential. It has no user attached at the point of use, it can be copied into tickets, chat messages, scripts and partner emails, and it remains valid until it expires or is deleted. Apply the same lifecycle you apply to API keys:
- Inventory. List PARs on every bucket in every compartment and Region. Record bucket, scope, access type, listing setting, expiry and creator.
- Ownership. Every PAR should map to a named business purpose and owner. Unknown PARs are removed.
- Expiry policy. Set a house maximum, for example days for ad hoc sharing and a short, renewed period for automated integrations. Long expiries should require approval.
- Least scope. Prefer object or prefix scope to bucket scope, read to read and write, and leave listing off unless it is needed.
- Dedicated creator identity. Create integration PARs from a service identity with only
PAR_MANAGEand the object permissions the PAR needs, on the target bucket only. - Distribution. Send PAR URLs through a secrets channel, not email or tickets, and never commit them to source control.
- Revocation. Delete PARs as soon as the purpose ends, and immediately when a URL may have leaked.
Because PARs cannot be edited, rotation is delete and recreate. Build that into integrations so that a rotation does not become an outage.
Encryption options
Oracle's Object Storage encryption documentation states that all objects are encrypted on the server with AES-256, that encryption is always on and cannot be turned off, and that each object gets its own data encryption key, which is encrypted with the master encryption key assigned to the bucket.
| Option | Who holds the master key | Notes from the documentation |
|---|---|---|
| Oracle-managed (default) | Oracle | No configuration required |
| Vault customer-managed key (SSE-KMS) | Customer, in OCI Vault in the customer's tenancy | Assign at bucket level or per object with --opc-sse-kms-key-id; rotate on a schedule |
| Customer-provided key (SSE-C) | Customer, outside OCI | 256-bit AES key supplied per request and not stored; per object only; not available in the Console; losing the key means losing the object |
Customer-managed Vault keys give you control over who can use the key, when it rotates and when it is disabled. Disabling a key is a powerful containment action, because it stops decryption of the data it protects. Buckets in security zones must use customer-managed Vault keys. The OCI Vault and Key Management guide covers key policies and rotation.
Two operational points from the documentation are easy to miss. First, after a key rotation, existing data stays encrypted under older key versions until you run bucket re-encryption. Second, the optional SSE-KMS Bucket Key, which reduces per-object calls to the key service for high-throughput buckets, is off by default, requires the Object Storage service principal to have permission to use the key, and does not migrate existing objects until re-encryption is run.
SSE-C is useful when policy requires keys to stay outside the provider, but it moves all custody to your side. You must track which key protects which object and handle rotation yourself, and the documentation is explicit that a lost key means an unrecoverable object.
Encryption at rest does not protect against public buckets or PARs. A public object is decrypted for anyone who requests it. Visibility and PAR controls come first.
Versioning, retention and events
The bucket management documentation describes three features that support integrity and detection:
- Object versioning keeps previous versions so they can be retrieved and recovered, protecting against accidental or malicious overwrite or deletion. Enable it on buckets that hold important data, and pair it with lifecycle rules so old versions do not accumulate indefinitely.
- Retention rules provide immutable storage at bucket level for governance, regulatory and legal requirements. Use them for audit logs and backups that ransomware or a compromised identity should not be able to delete.
- Events. Buckets emit events for bucket state changes by default, but objects do not emit events unless you enable that setting during or after bucket creation. Turn on object events for sensitive buckets so that uploads, overwrites and deletes can feed your monitoring.
Detection and review
Build three recurring checks:
- Public bucket review. List buckets with public visibility across compartments and Regions, confirm each one has an approved purpose, and route others to the owner for closure. The Cloud Guard guide linked above covers continuous detection options.
- PAR review. List PARs, flag those with bucket scope, write access, listing enabled, long expiry or creators who are personal administrator accounts, and remove those without an owner.
- Identity review. Find every group and dynamic group that holds
BUCKET_UPDATE,BUCKET_CREATEorPAR_MANAGEin production compartments. Those are the identities that can create anonymous access. Apply NIST SP 800-53 AC-6 Least Privilege as the test.
Watch the OCI Audit service for visibility changes on buckets and for PAR creation, and alert when either happens outside an approved pipeline.
Common failure patterns
- Public bucket for convenience. A bucket is made public to share a file quickly and never closed, often with list and download enabled.
- Closing the bucket but not the PARs. Visibility is switched to private while existing PARs keep working.
- Far-future expiry. PARs created with expiries years ahead because the field is required but unbounded.
- Admin-created PARs. PARs created from personal administrator accounts inherit broad, long-lived permissions and break unexpectedly when that person moves role.
- PAR URLs in tickets and code. The URL is treated as a link, not a credential.
- Broad bucket permissions.
managegrants across compartments give many identities the power to make buckets public. - Objects without events. Object-level events are off by default, so deletions and overwrites go unseen.
- Rotation without re-encryption. Keys are rotated, but bucket re-encryption is never run.
Practitioner checklist
- Keep buckets private by default and require approval for any public bucket, preferring download only where public access is unavoidable.
- Place sensitive compartments in security zones so anonymous access is not possible.
- Restrict
BUCKET_CREATE,BUCKET_UPDATEandPAR_MANAGEto a small set of identities in production compartments. - Inventory all PARs, assign owners, enforce a maximum expiry and delete unknown or unused PARs.
- Create integration PARs from dedicated service identities with bucket-scoped permissions.
- Prefer object or prefix scope, read-only access and listing off for PARs.
- After any public bucket finding, review and delete PARs on that bucket too.
- Use customer-managed Vault keys for sensitive buckets and run re-encryption after rotation.
- Enable versioning, retention rules and object events on buckets that hold important data.
- Alert on visibility changes and PAR creation outside approved pipelines.
Standards and references
- Oracle: Using Pre-Authenticated Requests
- Oracle: Managing Object Storage Buckets
- Oracle: Object Storage Data Encryption
- MITRE ATT&CK: Data from Cloud Storage
- NIST: SP 800-53 Rev. 5 (AC-6 Least Privilege, SC-28 Protection of Information at Rest)
- NIST: SP 800-57 Part 1 Rev. 5, Recommendation for Key Management
- CIS: Critical Security Controls v8.1
Related NHI Mgmt Group resources: Oracle Cloud Infrastructure Security Guide · OCI Vault and Key Management · OCI Cloud Guard and Security Zones Guide