Getting started with sOocret
Set the vault key, store or import your secrets, reveal or copy them without displaying them, share them with colleagues or through a one-time link, read the access log and keep the vault tidy.
sOocret is a team vault for secrets, inside Odoo. A password, an API key, an SSH access becomes an encrypted record: displayed masked, shared with the right people, and logged each time it is revealed. No more passwords sent by e-mail or chat.
- Who: the server administrator for the key (once), then every Odoo user.
- What you need: Odoo 20 and the sOocret app. The encryption library is already installed with Odoo.
- Good to know: secrets are encrypted with a server key, kept in
odoo.confand never in the database. A stolen database backup therefore gives away no secret.
1. First of all: the vault key (administrator)
sOocret encrypts every secret with a key kept on the server, outside the database. It is created once. Install sOocret from Apps (on your own server, the list is updated in developer mode: Apps → Update Apps List), then open it: as long as the vault has no key, the getting-started panel opens instead of the list.
-
Tell it where your Odoo runs: your own server, Odoo.sh, or a container (Docker).
-
Create the key, in one of two ways:
- Recommended — on the server. Copy the command the panel gives and run it on the server. It
creates the key, adds it at the end of
odoo.confin a[soocret]section, and prints it once so that you can store it. The key goes through no browser. Come back to the panel and click I ran the command: check. - Or from the screen. Click Create the key here. Odoo asks for your password again, then the key is displayed once, with Copy and Download the key file (a text file that holds nothing else). When Odoo can write to its configuration file, sOocret adds the key to it itself; otherwise the panel tells you where to put it.
- Store the key outside the server, right away: a personal password manager, an encrypted file on an offline USB stick, or paper in a safe. Never next to a database backup, never in sOocret itself, never in an e-mail or a chat: a key that has been seen is a key to change. Tick I have stored my key outside the server, then Finish.
No restart is needed. The panel never replaces a key that is already in place, and other users only read there that an administrator must be told. It can be opened again from Help → Getting started.
By hand, if you prefer: add a [soocret] section at the end of odoo.conf, with a line
key = <your-44-character-key>. In every case, the file must stay readable only by the odoo user (and
root): sudo chown odoo:odoo /etc/odoo/odoo.conf then sudo chmod 640 /etc/odoo/odoo.conf.
Losing the key means losing every secret, for good: nobody, not even the publisher, can recover them. Without a key, sOocret says so clearly and refuses to save: no secret is ever stored in clear text.
At installation, all administrators of the database become Managers of the vault. Then give the
others their role in Settings → Users (application sOocret: User or Manager). Key rotation and the
SOOCRET_KEY environment variable are described in the Documentation tab of the app page.
2. Store a secret
Open sOocret → Secrets → My secrets, then New.
| Field | What goes in it |
|---|---|
| Name | What it is, in plain words: "Hosting provider — customer account". |
| Category | What it is used for: Mailbox, Customer account, Server, Encryption key… One per secret (see § 8). |
| Type | Its form: Password, API key, OAuth client, Database, SSH access, Other. |
| Login, URL | Where and with what to sign in. They are not secret: readable and searchable. |
| Secret | The value to protect, or Generate a strong password (the wand). Encrypted when saved. |
| Vendor / third party | The contact where this account exists: the secret appears on its form (see § 6). |
| Tags, Expires on | To complete the filing, and to be warned in time (see § 7). |
| TOTP key | The two-factor key of the account, if the site has one (see § 3). |
| Encrypted notes, Extra values | What goes with the secret: backup codes, a second key… |
Each extra value has an Encrypted box, ticked by default. Untick it for what is not secret (an account name, a date): the value stays in clear text and is read without a log entry.
Import your secrets from another tool
You come from Bitwarden, KeePass, 1Password or LastPass, or your passwords are in Chrome, Edge or Firefox: export them as CSV from that tool, then open sOocret → Secrets → Import.
- Choose the file, then Preview. sOocret tells which format it recognised, how many secrets it found and how many are already in the vault. No password is displayed.
- Choose a category and tags if you wish. Folders of the export become tags; secrets you already have (same name, same login, same URL) are skipped.
- Import. You are the owner of the imported secrets.
The file is read in memory and never kept on the server. Delete the export from your computer once the import is done: it holds your passwords in clear text.
3. Reveal, copy
A secret is always displayed masked.
- The eye reveals it for 30 seconds, with a countdown, then it masks itself again.
- Copy puts it in the clipboard without displaying it: the gesture to prefer when several people are looking at the screen.
Both gestures are logged: who, when, from which record.
6-digit codes (TOTP)
Many sites ask, on top of the password, for a 6-digit code that changes every 30 seconds: this is two-factor authentication. When you turn it on, the site gives a key (often behind "enter the key manually", under the QR code). Paste it in TOTP key and save: the Show the code button then gives the code of the moment, with its countdown.
A shared account no longer depends on one person's phone. Each code shown is logged.
Ask for an SMS code for sensitive secrets (optional)
For the bank account or the key of a server, you can require a code received by SMS before any reveal. It is an option, because each code uses one SMS credit of Odoo:
- An administrator turns it on in Configuration → Settings → SMS code before a reveal (Odoo's SMS app must be installed).
- On the secret, the owner or the Manager ticks Ask for an SMS code.
From then on, the eye, the Copy button, the TOTP code, the history, sending by link and exporting this secret ask for a 6-digit code, sent to the mobile phone of the person who asks (the number of their user record). The right code is valid 5 minutes for this secret. Three attempts per code; codes sent and wrong codes are logged. Unticking the box also asks for the code.
4. Share
In the Sharing tab, add users or groups: one secret, many people. They find it in Secrets → Shared with me. Remove them to end their access. Only the owner and the Manager can change the sharing, and every change is logged.
Private: a secret ticked Private is out of reach of the Vault Manager; only the owner and the people it is shared with can read it.
Send a secret to someone who has no account
A customer, a contractor: instead of writing the password in an e-mail, send a one-time link. In the Sharing tab, Send by one-time link:
| Setting | What it does |
|---|---|
| Valid for | 1 hour, 1 day or 7 days. After that, the link is dead. |
| Openings allowed | 1 by default: the secret is displayed once, then the link stops working. |
| Recipient | A contact, for the log and for the SMS code. |
| Ask for an SMS code | The recipient must type a 6-digit code received on their mobile phone. Shown only when Odoo's SMS app is installed; each SMS uses one SMS credit. |
The link is displayed once: copy it and send it, preferably by a different channel than the login it goes with. Your contact opens it, clicks Show the secret, and sees it once.
The links of a secret are listed in its Sharing tab, where you can revoke them. Every creation, opening and revocation is logged. Only the owner and the Manager (except for a private secret) can send a secret by link.
5. The access log
sOocret → Access log lists every reveal, copy, code shown, update, sharing change, link, import, export and deletion, with the person, the date, the originating record and the IP address. Each secret also has its own Log tab, and the Access button at the top of the form gives the count.
Nobody can edit or delete an entry, not even the Manager, and deleting a secret does not erase its history. The log purges itself after 3 months; an administrator changes this duration in Configuration → Settings.
6. The credentials of a vendor
On a contact form, the Access button and the Access tab gather the secrets it is the vendor of: the hosting provider, the bank, the e-mailing tool… Everyone only sees what they are allowed to see.
7. Expiry and provider status
- With an Expires on date, the owner receives a reminder activity 15 days before, in their own language. The Expired and Expiring within 30 days filters find them.
- Issued on fills itself in: today's date when the secret is created, then each time its value changes. Correct it if the credential is older; an import leaves it empty.
- For an API key or an OAuth client, Issued on thus keeps the date it was created at the provider and Provider status (Active, Disabled, Revoked) its state there. The Issued more than a year ago and Disabled / revoked filters help with the cleaning.
8. Keep the vault tidy
Categories. Lists open grouped by category, and the panel on the left filters in one click by category, type and vendor. The Manager renames, adds or archives categories in Configuration → Categories; the Without category filter finds what is left to file. Tags stay free, for the rest: Production, Personal, To check…
Health check. Secrets → Health check lists the secrets that are weak, reused (two records hold the same value), expired, or not changed for more than a year.
History. The History tab of a secret keeps its last ten values, encrypted. The eye and the copy button work there as on the secret itself; Restore puts a previous value back.
9. Export, delete
- Export: Secrets → Export (or Action → Export (clear text) on a selection) produces a CSV file in the Bitwarden format, which sOocret and the other password managers can read. Odoo asks for your password again, and every exported secret is logged. You export your own secrets; the Manager also exports those of others that are not private. The file holds your secrets in clear text: keep it in a safe place, delete it once it has served.
- Delete: the owner deletes their secrets, private or not (Action → Delete); the Manager deletes secrets that are not private. The deletion is logged.
Two roles
- User: their own secrets and those shared with them.
- Manager: all secrets, except the private secrets of others; the whole log; the categories; key rotation (action sOocret: re-encrypt all, in the Actions menu of "All secrets").
If something goes wrong
| What you see | Why, and what to do |
|---|---|
| The getting-started panel opens instead of the list | The vault has no key yet. An administrator creates it from this panel. See § 1. |
| "sOocret is not configured: no encryption key" | The [soocret] section is missing from odoo.conf. Open sOocret as an administrator: the getting-started panel creates it. See § 1. |
| The panel refuses to create a key: "encrypted secrets but no key" | The original key has gone from the configuration file. Put it back: a new key could not read the existing secrets. |
| "Your user has no phone number" | The SMS code goes to the number of your user record: add your mobile number in your preferences. |
| "Invalid sOocret key" | The key was cut or altered when pasted: 44 characters, ending with =. |
| "Cannot decrypt this value" | The key in place is not the one that encrypted this secret. Put the previous key back in key_previous, restart, then run re-encrypt all. |
| "This secret is not shared with you" | Ask the owner for access; their name is given in the message. |
| The import refuses the file | It is not a recognised CSV export. Export again as CSV from your tool (not JSON, not an encrypted file). |
| "This is not a two-factor key" | Paste the key given by the site (letters A to Z, digits 2 to 7), or the otpauth:// address of its QR code — not a 6-digit code. |
| The "Ask for an SMS code" box does not appear | Odoo's SMS app is not installed — or, on a secret, the option is not turned on in the settings. |
| The recipient sees "This link no longer works" | The link has already been used, has expired or was revoked — or three wrong codes were typed. Create a new one. |
| A script gets "sOocret does not reveal a secret through the API" | This is intended: secrets are only read in the Odoo interface. |
What sOocret does not do
- No end-to-end encryption: the key is on the server. Whoever administers the server and reads
odoo.confcan, in principle, decrypt everything. sOocret protects against stolen backups, glances over the shoulder and passwords that travel around; not against a malicious server administrator. - No reveal through the external API: a script or an integration connected with an API key never receives a secret in clear text, nor a code, a link or an export. All of this happens in the Odoo interface.
- No browser extension and no automatic filling of login forms, for now: planned after the first release.
- No check against known leaks: the health check does not tell whether a password already circulates on the Internet.
- No vault shared with the Odoo portal: for an outside person, only the one-time link exists.
Support
sOocret → Help → Report a Bug and Suggest an Improvement write to the support, with the useful technical details (versions of Odoo and of sOocret, language, whether a key is configured). You see them before sending and can remove them; they never contain the key, a secret, an account or the name of your database.
A bug on our side is fixed free of charge. Help with installing or using the app is billed. You can also write to support@polytalents.fr.













