Fidant in Slack
How the Slack app's commands work, and what Slack and we see when you use them.
Three commands
/fidantopens Share a secret, for a password, a key or any other secret/fidant-secretdoes the same/fidant-fileopens Send a file
Never type a secret, a file name or a link after the command: Slack sends it to us.
Starting from Slack
Our Slack app has three commands: /fidant and /fidant-secret open the Share a secret page, and /fidant-file the Send a file page. The app asks Slack only for its commands: it can't read messages and has no buttons. Its bot user, which Slack requires for commands, only gives it a name in Slack, and nobody can send it messages there. Slack sends each command to our server at sto.signal.fidant.se, in Stockholm, which first checks Slack's signature and logs nothing about the request. It reads only which command it was, the channel and workspace names, your Slack user ID, and Slack's address for replying there. Its reply, which only you see, links to the page with those names, your user ID, that address and the time after the # sign, signed by our server. Browsers never send that part to us, but the address bar and history keep it.
Slack also sends the names and IDs of the user, channel and workspace, and whatever was typed after the command. A secret, a file name or a link typed there by mistake reaches our load balancer and server inside Slack's request. The server never uses it, logs it or sends it back, but Slack keeps it, so the reply says never to type one there.
When the page opens from the reply, it checks the signature with our server's public key, that the link is less than 30 minutes old and that Slack's address is on hooks.slack.com. You then create a link for the channel for each person who should get it, and each link's card offers “Post in #channel”, naming the channel and the workspace, unless the channel's name is directmessage, the name Slack gives a direct message, or privategroup, the name Slack is reported to give some private channels, because those names don't tell you where the post would go. Then you copy the link instead. The button sends that link, after a line that mentions you and a line saying it works once and only while your page is open, from your browser straight to Slack, which posts it in the conversation for everyone there. The post never passes through our servers, but Slack keeps it, key included. Never the file, its name or the secret: they leave your browser only encrypted. Slack takes five posts per command within 30 minutes, so after that, or when a post fails, the card offers copying only.
Anyone can add the app to a workspace from fidant.se/apps/slack. The app isn't listed in Slack's Marketplace, so Slack shows “App not approved by Slack”. After you allow it, Slack sends your browser to our server with a one-time code, and your browser's history can keep that address. Our server sends the code back to Slack once, with the app's own secret, to finish the install. This is the only call our servers make to Slack. Slack answers with a token for the workspace, the workspace's name and ID (and its enterprise's, on Enterprise Grid), the Slack user ID of the person who added the app, the bot user's ID and the app's ID. Our server reads none of it except whether the install worked, and drops all of it without using, keeping or logging it, so we keep no Slack token. Our server logs only whether the app was added, and then sends your browser to a page that says so. Slack keeps who added the app to which workspace, and when.
What Slack and we see
- A Slack command
- If you run one of our Slack commands, Slack tells us which Slack user ran it, and when. It also sends the user, channel and workspace names and IDs, and whatever you typed after the command. We never use or keep that text. Only the channel and workspace names, your user ID, Slack's address for replying there and the time go back to you, inside the reply's link, after the # sign and signed. We keep and log none of it. If you click “Post in #channel” on the page it opens, your browser sends the link you created for the channel, key included, straight to Slack, after a line that mentions you and a line saying it works once. Slack posts it in the conversation and keeps it. The link never passes through us. That request also tells Slack your IP address and browser details, that it came from fidant.se, and when.
- Adding our Slack app
- When someone adds our Slack app to a workspace from fidant.se, Slack sends their browser back to our server with a one-time code, and the browser's history can keep that address. Our server sends the code to Slack once, with our app's own secret, to finish adding the app. Slack answers with a token for the workspace, the workspace's name and ID (and its enterprise's, on Enterprise Grid), the Slack user ID of the person who added the app, the bot user's ID and the app's ID. Our server reads none of it except whether the install worked, and drops all of it at once without using, keeping or logging it: we keep no Slack token. Our log notes only whether the app was added, and when. Slack keeps who added the app to which workspace, and when.
Add Fidant to your workspace
Then your team can type /fidant in any conversation. Fidant is unlisted: it isn't in the Slack Marketplace.
Add to SlackSlack will show “App not approved by Slack” because Fidant isn't in Slack's directory.