Generate Pre-Authenticated Requests for Time-Limited Object Storage Access
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this lab you will learn how to create and use Pre-Authenticated Requests (PARs) in OCI Object Storage. PARs let you grant time-limited, unauthenticated access to buckets or individual objects without sharing credentials. You will create a bucket, upload objects, generate PARs with expiry times, validate access via curl, and then verify that expired or deleted PARs deny access — all against the local OCI emulator.
What you’ll learn
- Create an Object Storage bucket and upload sample objects using the OCI CLI
- Generate Pre-Authenticated Requests (PARs) scoped to individual objects and to entire buckets with explicit expiry times
- Validate PAR-based access using curl and verify that PAR lifecycle management (listing and deletion) works correctly
How this lab works
- Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: An emulated cloud on your computer: no cloud account, no bill
- Cloud: OCI
- Services: object-storage
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A OCI sandbox created in the Local Cloud Playground
Topics: oci, object-storage, pre-authenticated-requests, par, time-limited-access, security, storage, curl, access-control
Create a free account to start this lab.
Keep going
- Fire an S3 Event Notification into an SQS Queue on Object Upload
- Object Versioning & Lifecycle Rules on a Cloud Storage Bucket
- Blob Lifecycle Policies and Access Tiers in Azure Storage
- Multipart Upload to OCI Object Storage
- Cloud Storage Fundamentals: Buckets, Objects, and gcloud storage
- Azure Blob Storage: Create Containers, Upload, Download, and List Blobs