Can a "read-only key" lock AI's hands? Odoo 20 separates write permissions from connection credentials

Today is Sunday, November 29, 2026. On November 27, Odoo committed an unremarkable one-line change to the public 20.0 branch: a new "read-only" option for API keys. There was no launch event, no press release, only a commit record (number 5a60051) and a hands-on note from a partner.

But if you are connecting AI agents, reporting tools, or any external system into ERP, this is worth taking a careful look at twice. Because it touches the most fundamental and most easily overlooked link in connection permissions—whether a key can be given only "view" and not "modify".

1. What changed on November 27: what was changed was the "key", not the "door"

First, let's state the technical facts clearly, without exaggeration. According to a hands-on test note published by Odoo partner AorBorC on November 27, this change includes three things:

  • Added a read-only option to API keys in the public 20.0 branch;
  • Requests authenticated with this key run in a read-only database session on Odoo's main HTTP entry point and legacy RPC entry point;
  • Odoo also added a automated test that verifies that a standard JSON-2 write request made with a read-only key is rejected.

To put it in plain terms: previously, an API key basically meant "whatever this account can do, the key can do"; now you can add another gate at the key level—even if the account has write permission, requests coming in with this read-only key still can't modify the database.

Ordinary key

Inherit all permissions of the account: readable, writable, and able to invoke business methods. Leaking it is equivalent to handing over the account.

Read-only key

Enforce read-only sessions on the covered entry point; write requests are rejected. It can be used as a dedicated credential for reporting, AI reads, and data synchronization.

A reminder: this is a "public branch commit," not formal feature documentation for any released stable version. The note's author also emphasizes that before going live, you should first verify on your own deployed version whether the option exists and whether its behavior meets expectations. Treating branch capabilities as an established fact in production is the starting point of many upgrade incidents.

II. Why Now, of All Times: AI Is Becoming ERP's "New Connector"

Look back at the main thread of the past two years and you'll understand. Connecting external systems to ERP used to be the exclusive job of the IT department—a few fixed interfaces and a few scripts that, once written, rarely needed changing. But now there is a new type of connector: AI agents.

It has three essential differences from traditional interfaces. First, uncertain invocation: the same agent may read inventory this time and try to modify an order next time; second, a surge in numbers: every department can spin up an agent; third, blurred permissions: they are often attached directly to a high-privilege account that 'takes the easy way out.' Previously, one master key was hidden in an IT cabinet; now, it seems every agent should carry one in its pocket.

This change in the public branch is aimed precisely at this scenario: making "read-only" a credential attribute that can be handed out at will, rather than having to be achieved indirectly through a whole set of role configurations.

5–30×

Omdia 11-27 report: A single agent task consumes 5 to 30 times the tokens of an ordinary conversation task. Integration costs and permission risks increase in tandem.

Here is a set of real-world tests that are well worth comparing. In November, the security research team SGit built a billing agent workflow connected to Odoo 20, specifically to measure 'how much a single restricted credential can actually do.' The results included two findings that send a chill down one's spine:

First, Odoo's default user role allows a "narrow" integration account to email vendors and read bank account information—capabilities that are not on its task list, but are enabled by default. Second, they want a "create-only" permission, which is not possible: Odoo does not allow a user to create a bill with line items unless it can also update journal entries; the narrowest usable permission can only be the trio of "create, read, and update on draft vendor bills."

When you connect an agent to ERP, what you think of as "least privilege" is often not truly minimal. The permissions that default roles quietly grant in excess, and the permissions you "want to narrow but cannot," are two gaps running in opposite directions. A read-only key solves the latter half of the former, but it will not configure the account roles for you.

III. But a “read-only key” is not the same as “read-only security”: three easily overlooked cracks

This is exactly where we most need to pour cold water. A read-only key only locks down 'this one kind of write operation at this one entry point.' Treat it as a universal insurance policy, and you will fail disastrously.

CrackSpecific manifestationsWhy can't read-only keys be controlled
Account privilege escalationThe key is read-only, but the account role is broad, so it can still read sensitive data such as other companies' inventory and supplier costs.A read-only key only imposes write restrictions; the scope of reading is determined by access permissions, record rules, and field access—the key has no control over it.
Custom side effectsCustom methods or external services may produce actions outside the databaseThe official change only covers database writes at the main HTTP and legacy RPC entry points; other paths must be reviewed separately
Downstream retentionExported files, AI services, caches, and logs may all retain the data that was read.Easy to read in, hard to spill out; replicas and logs are not in the domain of "read-only".

The most dangerous combination: a read-only key + a high-privilege account. It looks like "we use read-only access," but in reality, all the sensitive data that should be viewed is still viewed—nothing less. When the auditors ask, the logs say read-only; who would go on to question what it actually read?

There is also a reminder on the timeline. Odoo has already scheduled retirement dates for the old APIs in its documentation: the old XML-RPC / JSON-RPC are planned to be removed in Odoo 22 (autumn 2028), while Odoo Online will move earlier to 21.1 (winter 2027); the official recommendation is that all new integrations use JSON-2. In other words, the very entry point through which the read key takes effect is itself in a transition period—boundaries that pass validation today will need to be revalidated after the upgrade.

IV. Three practical recommendations for CIOs: Start by establishing a "connector permission ledger"

The technical details are done; now let's turn to managers. My view is clear: A read-only key is a good tool, but what truly determines the security level is the ledger, not the tool. A tool is only useful when you give it to the right people for the right scenarios.

Article 1: Create a three-column ledger for each connector covering "what can be viewed, what can be changed, and who approves."Do not record by system; record by "purpose"—a warehouse stockout report is one purpose, so assign it a dedicated read-only account and a read-only key. Write out item by item the company, warehouse, fields, and data that must be excluded (other companies' inventory, supplier costs, customer contact information), and set an owner, validity period, and rotation cycle for the key.

Article 2: Before going live, conduct acceptance based on the "four pieces of evidence," rather than only checking that the functionality runs.One permitted read, one excluded read, one rejected write, and one row of data verification traced back to the source—only sign off when there is evidence for all four. In particular, keep a separate record of the "rejected write," because an account permission rejection and a read-only key rejection are two different things, and both must be provable.

Article 3: Separate reporting from decision-making; write credentials must never enter the read path. Reports are responsible for alerts and summaries, AI is responsible for classification and drafting, and actual write operations go through a separate set of controlled identities and approval processes. The former holds read-only keys, the latter holds write credentials, and the two are physically isolated. After approval, an independent executing party commits to the database and records the approver and transaction voucher number.

One final reality check: don't automatically treat legacy connectors as read-only. After upgrading to 20, review credentials and permissions one by one first—the previous "read-write" access won't automatically narrow just because a new read-only option has appeared. The tool provides the choice, but the choice has to be made by people, and verified by people.


Finally, I want to say one thing: from 'the account determines permissions' to 'the key determines permissions,' it may seem like just one more option, but it is actually a downward shift in ERP access governance. Only when every AI agent can enter with its own dedicated key does 'least privilege' finally have a practical lever to work with. But remember—the key determines what you can do, while the account still determines what you can see. Two locks, and neither can be missing.

This article is based on a compilation and analysis of public information: Odoo public 20.0 branch commit 5a60051 (2026-11-27), AorBorC "How to Verify ERP Access With Odoo 20 Read-Only API Keys" (2026-11-27, including Odoo's official JSON-2 and security documentation), Cybrosys "How to Migrate XML-RPC and JSON-RPC Integrations to JSON-2 in Odoo 20", Hadoopt "Odoo's API for integrations", SGit Newsroom's hands-on test of the Odoo 20 billing agent (2026-11), and Omdia "Global Enterprise-Grade Agentic Employees (China Market 2026)" (2026-11-27, Tianjin). The SGit and Omdia data are both third-party testing/report figures; the samples and calculation methods are subject to the original texts. Data as of 2026-11-29.

Zhongdi Information · Dedicated to Odoo and enterprise management digital solutions

关于我们

​我们致力于帮助中小企业实现数字化转型,我们的团队由一群充满激情和创新思维的专业人士组成,他们具备丰富的行业经验和技术专长。

扫一扫获取顾问以及手册

Sign in to leave a comment
When everyone is comparing agent counts, SAP's own insider pours cold water on it