Password protection for Enterprise apps
Status: being rolled out, not available yet. This page describes password protection per app as sota is rolling it out. Until it is switched on, the dashboard shows no Access tab on an app's page and every app stays behind the company sign-in. Your AI assistant sees an app's mode in
get-statusonce it is on; you can also ask us.
Every sota Enterprise app sits behind your company's Microsoft 365 sign-in. Password protection is the other way in: one shared password for one app, which sota checks before a request reaches the app. Use it to publish an app and show it to people before the Microsoft sign-in is set up, for example while your IT still registers sota in Microsoft Entra (set-up guide).
A shared password is not a sign-in of a person. Read the limits before you use it for anything but a first look.
How it works
- sota checks the password at its edge, in front of the app. Without a valid password session, no byte of the app goes out: a browser that opens a page is sent to the password page, every other request (API calls,
fetch, form posts, webhooks, scripts) gets401. APOST,PUT,PATCHorDELETEfrom another website that carries a valid password session gets403. - The password page is on the app's own address,
https://<app>.<yourcompany>.sota.io/.sota/access/password. It shows the app's address and one password field, nothing else: no company name, no account name. - After the right password the visitor gets a session for this one app: at most 8 hours, and it ends after 1 hour without activity. A wrong password always gets the same answer: "That password is not correct."
/.sota/access/logoutends the session in this browser ("Signed out", with a link to sign in again; see the limits).- sota stores the password only as a one-way hash (argon2id), encrypted. Nobody can read it back, sota included; it never appears in logs or in the audit log.
Who can manage it
- The owner and the admins of the Enterprise account switch password protection on and off, generate or set the password and change the mode, on the app's page in the sota dashboard, tab Access.
- Developers of the account see an app's mode, but cannot change it or see the password.
- API keys, team keys and AI assistants cannot set, change or read a password: the routes accept only a dashboard sign-in. An assistant connected over MCP sees the mode in
get-status. Never paste the password into a chat with an assistant: a chat transcript keeps it.
Every change is recorded in sota's audit log with who did it, without the password.
For the owner: step by step
-
Open the app's page in the sota dashboard and the tab Access.
-
Choose Password. sota asks for the password first:
- Generate a password (recommended): sota creates one like
k7m3q-xr9tz-…, four groups of five lower-case letters and digits (look-alikes such asl,o,0and1are left out). - Set my own: an own password needs at least 16 characters and must not be easy to guess: not one word with digits or punctuation (
Welcome2026!!!!!), no keyboard run or repeated block (qwertz,12345,abcdef,Ab1!Ab1!…), and not the app's address or the word "password" (or "Passwort", also asP4ssw0rd). At most 256 characters, no control characters. Several words with digits or signs in between work, for example a sentence only you know. The dialog warns while you type; sota decides when you save.
Use a generated password for anything with real data. Someone who sends guesses from many internet addresses at once gets about 100 guesses per 15 minutes checked per app, about 9,600 a day (see too many wrong tries). That is pointless against a generated password and a real risk for a password a person chose.
- Generate a password (recommended): sota creates one like
-
A generated password is shown exactly once. Copy it and store it, for example in your password manager, then confirm that you stored it. sota cannot show it again; if it is lost, generate a new one.
-
Give the password to the people who should see the app, through a channel you trust.
From then on the app's address asks for the password. Changes reach the sign-in within about 15 seconds.
- Change the password at any time. Everyone signed in with the old one is signed out within about 15 seconds.
- Switch the password off at any time. The app is behind the company sign-in again.
- An app without an address yet cannot be protected.
The three modes
| Mode in the dashboard | Who gets in |
|---|---|
| Company sign-in (the default) | Approved colleagues with Microsoft 365, as on every Enterprise app. No password. |
| Password | Whoever has the app's password. The Microsoft sign-in is not offered for this app. Works with or without a sign-in connection. |
| Company sign-in or password | Either. The password page also offers "Sign in with Microsoft" when the sign-in connection is set up. A colleague who signs in with Microsoft but is not approved for this app is sent to the password page. |
Nothing switches by itself. When your Microsoft sign-in becomes ready, a password app stays a password app; the Access tab then shows a hint that you can switch it to the company sign-in. When you switch an app from a password mode to Company sign-in, sota asks whether to keep the password as a second way in: by default the password is switched off and deleted; if you keep it, the mode becomes Company sign-in or password.
Every change of the password or the mode signs out everyone who signed in with the password, within about 15 seconds.
What the app must do
This is for whoever builds the app, and for their AI assistant. sota tells the app how a visitor came in with the header X-Sota-Access-Method:
- With X-Sota-Access-Method: password the visitor is whoever holds the app's shared password, not a person: the app gets no X-Sota-Access-User-Id, e-mail or name. Serve the view meant for everyone with the password, or refuse; never invent a user. X-Sota-Access-Method: sso means a signed-in person with the usual headers.
An app built to the usual rule "answer 401 without X-Sota-Access-User-Id" refuses every password visitor. Before you switch an app to a password mode, make sure it accepts them: it shows the view meant for everyone with the password, and refuses only what really needs a person (for example "my settings" or anything stored per user). Like every header from sota, X-Sota-Access-Method cannot be sent by a browser: sota removes any copy before the request is checked.
// Who is this request? null: not through sota's sign-in (refuse it).
function visitor(req) {
if (req.get("X-Sota-Access-Method") === "password") {
return { kind: "password" } // whoever holds the app's password, not a person
}
const userId = req.get("X-Sota-Access-User-Id")
if (userId) {
return { kind: "person", userId, name: req.get("X-Sota-Access-Name") || req.get("X-Sota-Access-Email") }
}
return null
}
app.get("/api/report", async (req, res) => {
const v = visitor(req)
if (!v) return res.status(401).send("not signed in")
if (v.kind === "password") return res.json(await sharedReport()) // the view for everyone with the password
res.json(await reportFor(v.userId))
})
app.post("/api/settings", async (req, res) => {
const v = visitor(req)
if (!v || v.kind !== "person") return res.status(403).send("needs a personal sign-in")
// ... store per v.userId
})
The rest of the app contract stays: GET /health and GET / answer without any header, paths under /.sota/ belong to sota, and a link to /.sota/access/logout signs the visitor out. The full contract is on Build with your AI agent and identity headers.
Limits
- One shared password per app. There are no personal passwords. Everyone who has it gets in, and nobody can be locked out alone: to shut one person out, change the password and give the new one to the others.
- No identity, no roles. The app does not learn who someone is, so it cannot keep data per person, show who did what, or give roles. Everyone with the password sees the same.
- Machine callers are refused. Webhooks, scripts, API clients and other apps get
401. (On an app behind the company sign-in, aPOST,PUT,PATCHorDELETEwithout a browser'sOrigingets403instead; refused either way.) - Not a replacement for the company sign-in. There is no approval, no blocking of a person and no record of who signed in. Use it to show an app before the Microsoft sign-in is ready, then switch the app to the company sign-in.
- Nothing switches by itself when the sign-in becomes ready (see the three modes).
- Rules cannot catch every guessable password. sota refuses the common patterns, but a phrase from your company's everyday words with a year can still pass; for anything with real data, use the generated password.
- Signing out ends the session in this browser only. sota cannot end a copy of the session cookie that someone took from the browser before; such a copy works until the session's own end (1 hour without activity, 8 hours at most). Changing the password ends every session within about 15 seconds: do that when a device or the password may have fallen into the wrong hands.
- Only the whole app. A password protects every path of the app, not single pages.
- Enterprise only. Ordinary sota accounts have no password protection.
Too many wrong tries
sota slows down guessing before it checks any password:
- Per address: after 5 wrong tries from one internet address (for IPv6: one /64 network) within 15 minutes, that address gets "Too many attempts" for this app until the oldest of those tries is 15 minutes old. Other visitors are not affected.
- Per app: after 100 wrong tries within 15 minutes, from any addresses together, the app's password page refuses new tries for 1 minute. If the wrong tries go on, the pause doubles each time, up to 15 minutes, and ends after 15 quiet minutes. People who are already signed in keep working. A browser that signed in to this app with the current password within the last 30 days is not paused either: sota remembers it with a cookie of its own (
__Host-sota_pwdev, only on the app's address, never passed to the app; it opens nothing by itself, each one covers at most 5 wrong tries per 15 minutes, signing out removes it so a shared computer forgets the app, and a password change ends it). Everyone else sees "Too many attempts" meanwhile. - Values that can never be the password (empty, shorter than 12 or longer than 256 characters, with control characters) get the same answer as a wrong password and count against the address, but not against the app.
- Busy: sota's sign-in service checks at most two passwords at a time. A try that finds no free slot within two seconds gets "Busy, please try again" and can be repeated a moment later.
What remains during an attack. Someone who sends wrong passwords from many internet addresses at once can keep an app's password page paused for as long as the attack lasts. People on a device that never signed in to the app before (or not since the last password change) may then be refused for up to 15 minutes at a time; devices that signed in before keep working, and people who are signed in stay signed in. The Access tab counts these refusals.
The Access tab shows the numbers of the last 24 hours: sign-ins, wrong tries and tries that were refused (too many tries from one address, or the app's sign-in paused). sota keeps them without the tried passwords. With each password sign-in, and with the wrong or refused tries of each minute, sota stores the internet address they came from, to spot and handle guessing; it deletes these records after 90 days.
A long, generated password makes guessing pointless; the throttle protects the page and the server.
Search engines
Every answer of a sota Enterprise app, and every page of sota's sign-in, carries X-Robots-Tag: noindex, nofollow, so search engines do not list it.
Through the API
The dashboard uses these routes; they accept only a dashboard sign-in of the owner or an admin (API keys, team keys and assistants get 403; developers get 404):
| Route | What it does |
|---|---|
GET /v1/enterprise/apps/{projectID}/access | Mode, whether a password is set, when, whether sota generated it, the sign-in connection's state and the numbers of the last 24 hours |
POST /v1/enterprise/apps/{projectID}/access/password | {"generate": true} generates a password and returns it once; {"password": "…"} sets your own (never returned) |
PUT /v1/enterprise/apps/{projectID}/access | {"mode": "sso"}, "password" or "sso_and_password"; {"mode": "sso", "keep_password": true} keeps the password as a second way in |
DELETE /v1/enterprise/apps/{projectID}/access/password | Switches the password off (the app is back on the company sign-in) |
All four share a limit of 10 changes per minute per account. GET /v1/projects/{id} of an Enterprise app shows enterprise_access with the mode and password_set, for everyone who may read the project.
| Answer | Meaning |
|---|---|
409 app_has_no_host | The app has no address yet. |
409 password_required | A password mode needs a password first. |
422 password_invalid | Shorter than 16 or longer than 256 characters, with control characters, containing the app's address or the word password, a repeated block, straight run or keyboard run, or one word with digits or punctuation (reason: too_short, too_long, control_characters, contains_name, too_simple, one_word). |
429 rate_limited | More than 10 changes in a minute. |
503 edge_not_ready | Password protection is not available yet (being rolled out). |