Skip to content

S3 connection actions and buckets

A connection to S3-compatible storage has settings of its own: versioning, cross-origin rules, locking, and the buckets themselves. macSCP gathers them in one menu in the window’s toolbar, next to the Upload and Download buttons.

The menu is the circled-dots button labelled Connection Actions; its tooltip reads “Manage this connection”. It appears while an S3 tab is connected. SFTP and WebDAV connections have no such menu, so nothing is drawn for them.

It always lists the same four rows:

RowPage
Create Bucket…This page, below
Versioning…Versioning
CORS Rules…CORS rules
Object Lock…Object Lock

A row that cannot be carried out on this connection, where you are now, is greyed out, not hidden. Whether it is live depends on where the remote pane is standing:

RowLive when
Create Bucket…The connection starts at the bucket list and the remote pane is showing that list. Inside a bucket it is greyed out.
Versioning…, CORS Rules…, Object Lock…There is a bucket to apply them to. On a connection to a single bucket that is always the case. On a connection that starts at the bucket list it is the bucket the remote pane is inside; at the list itself these three are greyed out.

So the rows trade places as you move: open a bucket and Create Bucket… greys out while the other three become live; go back to the list and it is the other way round.

You can also start from a saved connection that is not open yet: its context menu in the session sidebar offers Connect and Create Bucket…, see below.

A connection to one bucket never offers Create Bucket…. A bucket made there would not appear anywhere in the browser. To make buckets, use a connection that starts at the bucket list (see your first connection).

Every setting needs your access key to be allowed to read and change it. When it is not, the sheet says “Your access key is not allowed to…” and names what it could not do. When the storage service does not support a setting or turns the request down for another reason, the sheet says the setting could not be read or could not be changed; it does not repeat the service’s own wording.

Each change you make from these sheets is written to the connection’s audit log.

Open the remote pane’s bucket list, then choose Connection Actions → Create Bucket….

  1. Type a bucket name. The name has 3 to 63 characters, made of lowercase letters, digits, hyphens or dots; it starts and ends with a letter or a digit, and cannot look like an IP address. A bucket cannot be renamed later. The sheet names the first rule your text breaks as you type.
  2. Decide on the two switches, Versioning and Object Lock. Both are covered below. Leave both off for a plain bucket.
  3. Press Create. macSCP creates the bucket and then reads it back to see what it really has. Only when that matches what you chose does the sheet say “The bucket “…” was created.” Otherwise it tells you what it found, in red; see After you press Create. Either way the list refreshes, so the bucket appears in it. Close ends the sheet.

Both are one-way, which the sheet says in plain words under each:

  • Versioning. “Once switched on, versioning can be suspended later but not removed.” While it is on, every earlier version of a file is kept and counts toward your storage costs. See Versioning.
  • Object Lock. “Object Lock can never be switched off for this bucket, and it keeps versioning on for good.” Ticking it ticks Versioning too and holds it on: the Versioning box cannot be cleared while Object Lock is ticked. See Object Lock.

The sheet compares your name with the buckets in the list the remote pane is showing. A name that is already there is refused: “Your list already has a bucket with this name. Choose a different name.” If the list has not been loaded, for example because it failed to load, the sheet says it cannot check that the name is free and asks you to refresh the list first. Create stays off until it can check.

A name can still be refused by the service: “That bucket name is already taken by another account” (bucket names are shared by everyone using the service), or “You already own a bucket with that name” when the bucket exists but your list was out of date.

A store accepting the request is not proof that the bucket is what you asked for, so macSCP checks. It reads the bucket’s versioning and Object Lock, and, when the bucket has Object Lock, whether it carries a default retention. What it finds decides which sentence you see:

You seeWhat it means
”The bucket “…” was created.”The bucket has what you chose and nothing else.
”A bucket named “…” exists now, and it does not have the settings you chose. Open Versioning and Object Lock for it to see what it has, and do not create it again.”The bucket is there but has less than you asked for, for example no versioning.
”A bucket named “…” exists now, but macSCP could not check whether it has the settings you chose. Open Versioning and Object Lock for it to see what it has, and do not create it again.”The bucket is there, and what it has was not established. Open the two sheets and look.
”A bucket named “…” already existed, and it carries protection you did not choose. …”See below.
”A bucket named “…” already existed, and it has a default retention that was not set here. …”See below.

Every one of these except the first is shown in red and counts as a problem in the audit log, even though the bucket exists. In each, the name is treated as taken from then on, so Create stays off for it and you cannot send the same request twice.

A bucket that already existed with protection you did not choose

Section titled “A bucket that already existed with protection you did not choose”

If a bucket of that name was already there, for example because your list was out of date, macSCP finds the bucket as it already is. When that is more than you asked for, the sheet says:

A bucket named “…” already existed, and it carries protection you did not choose. Object Lock, once a bucket has it, can never be switched off. Open Versioning and Object Lock for it to see what it has, and do not create it again.

This is not an error to retry. Object Lock cannot be switched off, and versioning, once on, can only be suspended. Open Versioning… and Object Lock… for the bucket to see exactly what it has.

A bucket that already had a default retention

Section titled “A bucket that already had a default retention”

This is the one to read twice. When the bucket has Object Lock and a default retention, every file you put into it is locked under that retention. The sheet says:

A bucket named “…” already existed, and it has a default retention that was not set here. Every file you add to it is kept under that retention and cannot be deleted until its date passes; a COMPLIANCE retention cannot be lifted by anyone, not even the account owner. Open Versioning and Object Lock for it to see what it has, and do not create it again.

Before you upload anything to that bucket, open Object Lock… and read the default: its mode and its number of days. A Compliance default means the files you add cannot be removed by anyone until their dates pass. See Object Lock.

If creating the bucket with versioning or Object Lock fails after the bucket itself was made, the sheet says so instead of just “failed”: “A bucket named “…” exists now, but the request to create it with the settings you chose did not complete. It may not have those settings. Open Versioning and Object Lock for it to see what it has, and do not create it again.” If a request was interrupted in a way that does not say whether the bucket was made, the sheet says the bucket may exist now; refresh the list and check.

Right-click a saved S3 connection in the session sidebar and choose Connect and Create Bucket…. macSCP connects, then opens the same Create Bucket sheet as the menu row, so you do not have to open the connection and find the menu first.

The row is offered only for a saved connection that starts at the bucket list. A connection rooted inside a single bucket does not have it, and neither does a connection of another kind. It is the same rule as for Create Bucket… above.

The row names the connecting as well as the creating on purpose: connecting is not silent. It can still ask you to confirm a host key or for your credentials before the sheet appears.

If the connection is already open in a tab, macSCP first asks This session is already open. Open Anyway opens a second tab and shows the sheet there.

An account that has no buckets yet can now be opened. Up to and including v1.6.0, connecting with the bucket list as the starting point stopped with “This key can list buckets, but the account has none.” Now the connection opens, and the remote pane says so itself instead of staying blank: No buckets yet — “This account has no buckets. Create one to start keeping files here.” Under it is a Create Bucket button, which opens the same sheet as the menu row (Create Bucket… is live in the Connection Actions menu, too). The first bucket is made from inside macSCP. A key that is not allowed to list buckets at all is still turned away, as before.