Obtaining S3 credentials in Ozone

Learn how to authenticate an Ozone cluster using Kerberos, generating S3-compatible access keys, and configuring the AWS CLI to interact directly with Ozone storage.

  • Access to an Ozone environment with Kerberos authentication enabled.
  • AWS CLI installed on your workstation.
  • A valid Kerberos keytab file or principal password.
  1. Open a terminal on your device.
  2. Perform the following command to get the permanent credentials:
    kinit -kt [***PATH_TO_KEYTAB_FILE***] [***HOSTNAME***] && ozone s3 getsecret 

    Example,

    kinit -kt /cdep/keytabs/svc-iceberg-rest-catalog.keytab svc-iceberg-rest-catalog/icebergclient@example.com && ozone s3 getsecret
  3. Note down the awsAccessKey and awsSecret values displayed in the terminal output.
  4. Configure the AWS client:
    aws configure
  5. When prompted, provide the following information:
    • AWS Access Key ID: Enter the awsAccessKey obtained earlier.
    • AWS Secret Access Key: Enter the awsSecret obtained earlier.
    • Default region name: Enter the region that’s appropriate for your installation. For example, us-east-1.
    • Default output format: Leave it blank.
  6. Press Enter.