Security
How Atlas Data keeps one company separate.
Every stored row carries the company it belongs to. Secrets are stripped before a write. The SQL endpoint is one read-only select.
Questions.
Can one company read another’s rows?
Every row is stored with the company it belongs to. The session sets atlas.company_id for that company, and Row Level Security is what enforces it, so the filter does not depend on the query being written correctly. A query from another company gets nothing back, including a direct select, because there are no rows it is allowed to see.
What is removed before a write?
Door codes, lock codes, Wi-Fi passwords, account passwords, and card numbers are replaced with [REDACTED] before they are written, so the stored value does not hold the secret. A labelled account or routing number is stored as the last four digits, which is enough to recognise the account and not enough to move money.
Where do connector secrets live?
Connector secrets and the sign-in code key live in the server environment or in files with mode 0600. They are not columns in the database, so a query that reaches the database cannot read them.
What can the SQL endpoint run?
One select. Comments and a second statement are rejected. Write statements and helpers that can read another company or the server filesystem are rejected, including set_config, pg_read_file, and dblink. Postgres runs the statement in a read-only transaction with a 15 second statement timeout. The result is capped at 500 rows so a broad select cannot turn into a full export.
How does sign-in work?
Passwords are hashed with argon2id. An authenticator code can be required. The shared secret is encrypted with the server token key before it is stored, so the key is what unlocks it and the database alone does not. MCP tools are read-only and use the caller’s API key, so a tool acts with that caller’s access and cannot widen it.
What happens when a document holds a secret?
The value is redacted before the row is written, so the secret is not in the table to be read back later. A redacted value is stored as [REDACTED] and an account number keeps only its last four digits.
Is the data copied anywhere else?
The company’s own Postgres database is the record. The desk queries it and does not keep a second warehouse beside it, so there is one place to read and one place to delete.