S3 sessions
An S3 session connects to Amazon S3 or a compatible store (MinIO, Ceph, Cloudflare R2,
Backblaze B2, Wasabi). KryoDesk signs requests itself (AWS Signature V4) and sends them over
HTTPS with the macOS TLS stack. The tab is the connection console; buckets and objects are
browsed in the Files window as /bucket/key.
Shared fields are on the Session dialog page. For S3, Remote host is
the endpoint host only (s3.amazonaws.com, s3.eu-central-1.amazonaws.com,
minio.example.com), and the login field is Access key ID. Default port 443.
S3 settings
Section titled “S3 settings”
| Field | Values | Default | What it does |
|---|---|---|---|
| Bucket | Empty, bucket or bucket/prefix |
Empty | Start folder in the Files window. Empty lists all buckets of the key. Leading and trailing / are removed. |
| Region | Region name; R2: auto |
Empty = us-east-1 |
Signing region. On AWS the region of each bucket is found from its replies (x-amz-bucket-region), so empty works for buckets in any region. |
| Addressing | Auto: virtual-host on AWS, path-style elsewhere, Path-style: https://host/bucket/key (MinIO, Ceph), Virtual-host: https://bucket.host/key | Auto | How the bucket name goes into the URL. |
| AWS profile | Profile name of ~/.aws/credentials |
Empty | Takes aws_access_key_id, aws_secret_access_key and, if present, aws_session_token from that profile instead of Access key ID and the vault. SSO, credential_process and role profiles are not supported. |
| HTTPS | Checkbox | On | Off sends requests, data and session tokens unencrypted (for local test servers). Turning it off changes port 443 to 80, and back. |
Credentials
Section titled “Credentials”In this order:
- AWS profile, when set.
- Access key ID; without it the console asks
Access key ID (empty = anonymous):. An empty answer sends unsigned requests (public buckets only). - The secret key saved in the vault (
password:s3://<access key ID>@<host>:<port>), elseSecret access key for <access key ID>:. A rejected key is asked again, up to 3 times. After a successful typed key:Save the secret key in Keychain? [y/N].
Over plain HTTP, a saved secret key or a session token is used only after a question
(Sign requests with the secret key saved in Keychain over plain HTTP? …). The secret key itself
is never sent; requests and data can be read and replayed.
Connection console
Section titled “Connection console”
The console of an S3 session after the bucket list was read.
The first request lists the buckets, or the start bucket. A TLS certificate that macOS does not
trust is read by a handshake that sends no request, shown with its subject, issuer, validity and
SHA-256, and pinned after Trust this certificate for <host:port> (pin its SHA-256)? [y/N]
(s3_known_hosts.json in the configuration folder, owner-only). Later connections to that host
and port accept only that certificate, also when macOS would trust another one; another one is
reported as CERTIFICATE CHANGED and asked about again. When listing
buckets is denied for the key and no bucket is set, the connection stays open: type /bucket-name
in the path field of the Files window.
Commands (paths /bucket/key, or relative to the start folder):
| Command | What it does |
|---|---|
info |
Endpoint, TLS (verified or pinned SHA-256), region, clock offset, credentials (access key; never the secret). |
ls [path] |
Lists a folder, or the buckets with /. |
head <path> |
Object metadata (HEAD). |
perms [path] |
ACL, bucket policy, Block Public Access, encryption, versioning. |
presign <path> [secs] [put] |
A presigned URL; default 3600 s, at most 7 days; put for an upload URL. |
uploads [path] |
Incomplete multipart uploads of the bucket (below the path): started, key, upload id, class. |
region <bucket> |
The bucket’s region. |
secret |
Asks for the secret key again after the app lock wiped one typed at sign-in and not saved; kept until the next lock. From then on the tab does not read the saved key again. |
clear |
Clears the screen. |
In the Files window an S3 object is written in one PUT or a multipart upload that is aborted on
error, so a failed upload leaves no partial object. Writing over an object keeps its
Content-Type, Cache-Control and other headers, x-amz-meta-*, storage class, encryption and
tags (the console says what was kept; the object ACL is not copied); a new object gets its
Content-Type from the file name. A key that may write but not read (HEAD answers 403) writes
with the type from the name and says so; any other failed HEAD or reading of the tags stops the
write before anything is replaced. A write whose tags are denied (x-amz-tagging needs
s3:PutObjectTagging) fails with the server’s code and is not sent again without the tags: tags may
drive bucket policies, lifecycle rules and replication. Copy and rename inside one connection are done on the server
and keep the storage class and encryption; an archived object (Glacier, Deep Archive) must be
restored first. Failed GET, HEAD, PUT, DELETE and multipart parts (5xx, SlowDown, a broken
connection) are retried up to 4 times with growing pauses, each retry in the console. After
RequestTimeTooSkewed over HTTPS, requests (and presigned URLs, whose console line shows the offset)
are signed with the server’s time when the difference is at most 24 hours; over plain HTTP or beyond
24 hours the difference is only reported and the request fails. In a
versioned bucket a delete adds delete markers: the confirmation and the console say so.
Object Permissions… / Bucket Permissions… in the Files window’s context menu prepare the
exact request of a change (method, URL, headers, body); Send Request sends that request
unchanged within 5 minutes, once. The same dialog lists incomplete multipart uploads and aborts the
selected ones the same way. Copy Presigned Link… creates a link as presign does.