- The Archil disk mount for mounting the disk on Linux, on macOS, or inside containers.
- The Archil API for creating Archil disks or sandboxes
- The Archil S3 API for calling the S3-compatible API from AWS SDKs
Disk mount authorization
Each Archil disk manages which servers are authorized to mount the disk using thearchil CLI or macOS application. Authorizing
a server to mount the disk gives that server access to the entire file system. Even though Archil respects the POSIX permissions
of the files stored on the disk, they should not be used as an isolation boundary for unstrusted workloads running together.
Archil supports two ways to authorize a server to mount a disk:
- IAM-based authorization - recommended when you are mounting a disk located in AWS from the same AWS region
- Token-based authorization - recommended when you need the lowest disk mount latency
IAM-based disk authorization
IAM-based disk authorization allows you to configure an AWS IAM role or user ARN that is allowed to mount the disk. You can use thearchil utils get-iam-role CLI command to get the IAM role ARN of the current EC2 instance.
You can mount a disk on an IAM-authorized server by running the archil mount command without any additional flags.
When using AWS IAM Roles Anywhere, you must set the
AWS_EC2_METADATA_SERVICE_ENDPOINT and AWS_REGION environment variables before mounting. These can be set inline with the mount command or exported in your shell session.Token-based disk authorization
Token-based disk authorization allows you to create a long-lived bearer token that grants the ability to mount the disk. You mount a disk using a token by setting theARCHIL_MOUNT_TOKEN environment variable and passing it through sudo.
Using
--preserve-env=ARCHIL_MOUNT_TOKEN passes the disk token through sudo’s environment rather than the command line, preventing it from being visible in process listings (ps aux). This is more secure than both sudo -E (which passes all environment variables) and inline assignment (which exposes the token in the process list).