Access Keys

Access keys are credentials that allow you to interact with Rabata.io’s API and services. This guide explains how to create, manage, and secure your access keys.

Understanding Access Keys

Access keys in Rabata.io consist of two parts:

  1. Access Key ID: A public identifier for your key (similar to a username)
  2. Secret Access Key: A private key that should be kept confidential (similar to a password)

These credentials authenticate your requests to Rabata.io and determine what actions you’re allowed to perform.

Creating Access Keys

To create new access keys:

  1. Log in to the Rabata.io dashboard
  2. Navigate to the Access Keys section in your account settings
  3. Click the Create Access Key button
  4. Add a description to help you identify this key later
  5. Select the appropriate permissions for this key
  6. Click Create
  7. Important: Download or copy your Secret Access Key immediately, as it won’t be shown again

Managing Access Keys

Viewing Your Access Keys

To view your existing access keys:

  1. Log in to the Rabata.io dashboard
  2. Navigate to the Access Keys section
  3. You’ll see a list of your active access keys with their descriptions and creation dates

Rotating Access Keys

For security, it’s recommended to rotate your access keys regularly:

  1. Create a new access key
  2. Update your applications to use the new key
  3. Disable (but don’t delete) the old key to ensure your applications are working correctly
  4. Delete the old key once you’ve confirmed everything is working

Deleting Access Keys

To delete an access key:

  1. Navigate to the Access Keys section
  2. Find the key you want to delete
  3. Click the Delete button
  4. Confirm the deletion

Note: Deleting an access key is permanent and cannot be undone. Make sure the key is no longer in use before deleting it.

Using Access Keys

In the AWS CLI

To configure the AWS CLI to work with Rabata.io:

aws configure --profile rabata

When prompted, enter:

Then use the profile in your commands:

aws s3 ls --profile rabata --endpoint-url https://s3.rabata.io

In SDKs

Most AWS SDKs can be configured to work with Rabata.io. Here’s an example using the AWS SDK for JavaScript:

const AWS = require('aws-sdk');

const s3 = new AWS.S3({
  accessKeyId: 'YOUR_ACCESS_KEY_ID',
  secretAccessKey: 'YOUR_SECRET_ACCESS_KEY',
  endpoint: 'https://s3.rabata.io',
  s3ForcePathStyle: true,
  signatureVersion: 'v4'
});

In Environment Variables

You can set your access keys as environment variables:

export RABATA_ACCESS_KEY_ID=YOUR_ACCESS_KEY_ID
export RABATA_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY

Security Best Practices

Protect Your Access Keys

Use Least Privilege

Create access keys with only the permissions they need:

  1. When creating a key, select only the specific services and actions required
  2. Regularly review and remove unnecessary permissions
  3. Use separate keys for different purposes (development, production, etc.)

Monitor Key Usage

Regularly check the activity of your access keys:

  1. Navigate to the Access Keys section
  2. Click on a key to view its recent activity
  3. Look for any suspicious or unexpected usage
  4. Set up alerts for unusual activity

Implement Key Rotation

Rotate your access keys regularly:

Troubleshooting

Common Issues

Getting Help

If you encounter issues with your access keys, contact Rabata.io Support.