Dekko S3 Gateway 1.0.8, commit 1306fa1

New in 1.0.8: one gateway holds tokens for several folders or hubs of your account. Make a token for each folder
(in Dekko, select the folder, then More, then "S3 token") and add each one here. Each gets its own access keys, and each
key reaches only its own folder. Until 1.0.7 a token for one folder or one hub had to be the only token on its gateway.
Built on .NET 10 (since 1.0.7), included in this folder, so there is nothing else to install.

One program for every Dekko: Australia (au.dekko.io), US (us.dekko.io) and Canada (ca.dekko.io).
The token you copy from Dekko says which Dekko it was made on, and the gateway connects there. You never choose.

1. Unzip this folder anywhere, for example to Documents.
2. Run DekkoS3Gateway.exe. If Windows says the app is unrecognised, click "More info", then "Run anyway".
3. The gateway opens a window and then lives in the system tray (bottom right, near the clock). Click its icon to open
   the window again. The window's title bar shows its version: "Dekko S3 Gateway 1.0.8 (1306fa1)".
4. In Dekko go to Settings, then Account, then S3 gateway, and click New token. Click Copy token, paste it into
   the gateway window, and click Add. Do it within 5 minutes.
5. Open your S3 program (for example S3 Browser or Cyberduck), add a new account or connection, and copy each field
   it asks for from the gateway window. Choose "S3 compatible" (not Amazon S3) and turn SSL/TLS off.
6. Use the gateway on a computer only you sign in to. It answers on this computer only, without TLS, so while it is not
   running another Windows account on the same computer could listen on its port and receive what your S3 program
   sends. Leave "Start with Windows" on so it is running whenever you are signed in.

Run it as a Windows service (new in 1.0.2)

For a computer nobody stays signed in to, such as a server that backs up files every night. The service serves your
S3 programs after a restart and while nobody is signed in.

1. Use a standard Windows account for it, not an administrator. The service refuses an administrator's account,
   because an administrator's service would have full administrator rights.
2. An administrator creates the folder C:\Program Files\Dekko S3 Gateway and copies everything inside this
   DekkoS3Gateway folder into it. Copy or extract the files there. Do not move them: a moved folder keeps permissions
   that let other programs change it, and the window then refuses.
3. Signed in as the standard account, start C:\Program Files\Dekko S3 Gateway\DekkoS3Gateway.exe, add the account's
   token, and tick "Run as a Windows service". Windows asks for administrator rights, then for the account's own
   Windows password: the service signs in as that account, so that it can open its tokens.
4. Your S3 programs keep their settings. The service answers at the same address as the window did.

Good to know about the service:
- If you change the account's Windows password, clear the box and tick it again.
- To update to a newer gateway: clear the box. An administrator deletes C:\Program Files\Dekko S3 Gateway, then
  copies the new version there as in step 2. Start it from there and tick the box again.
- To remove the service, clear the box. If the folder was deleted first, an administrator removes the service with:
  sc.exe delete DekkoS3Gateway

Good to know:
- Several tokens: each one is listed in the window with its own connection details. Give the S3 program for each folder
  the keys of that folder's token. A key for one folder cannot list, read or write another folder.
- Do not add a token for a folder and a token for a folder inside it to the same gateway: both reach the inner folder, and
  two programs writing one new file name there within half a minute can leave two files of that name. A token for every hub,
  or for a hub, is refused beside a token for one of its folders.
- One gateway serves one Dekko account. A token from another Dekko account is refused, and NOT used up: add it to a
  gateway on another computer or Windows account.
- A token copied without its first part (the name before the colon, for example "au-1:") is refused and NOT used up:
  copy it again, whole.

If S3 gateway is not in your Settings, your organisation has not turned it on yet: ask your Dekko administrator.
