Why Magento Open Source API access security starts with connector scope
The first decision is how much store access each connector needs, not which token to issue. An ERP, PIM or marketplace connector usually reads catalog data, pushes stock and prices, and writes orders or fulfillment status back to the store. Each of those actions is reachable through the REST and GraphQL APIs of Magento Open Source, and the team has to decide which resources each connector may read and which it may write before any credential is created. A connector that can read customer records, change product data it does not own, or modify configuration has more reach than its job requires, and that excess is what an attacker or a faulty sync job would use.
Each connector should hold its own integration identity rather than sharing one credential across systems. When the ERP and the marketplace share a token, a problem in one system cannot be contained without breaking the other, and the logs cannot show which system made a change. Separate identities let you scope each one to its resources, rotate or revoke it independently, and read the admin activity and API logs by connector. Map each connector to the resources it actually calls, then compare that map with the permissions in the integration configuration. Review the result with the team that owns each connector, since they know which calls are used and which are leftovers.
Teams usually take this work up before go-live, when a new connector is added, or after an audit or penetration test flags an over-permissioned integration. Start before go-live if the store is still being built, because permissions are easiest to set when no one depends on them yet. The researched facts for this topic do not give token lifetime values or the exact behavior of integration tokens in each release, so confirm both in the Magento documentation for your version, including whether tokens expire, how they are revoked and what happens to them when an admin user is disabled. Adobe's documentation for Adobe Commerce PHP development is the natural starting point for that check.
Which token and permission options fit each connector
This table compares the access options a team usually weighs for ERP, PIM and marketplace connectors, with the situation each fits, its main risk and what to confirm in the documentation for the installed version. Read each row as a question to answer before the connector is built, and treat the right-hand column as the checklist for the vendor or Adobe documentation. The main takeaway is that a shared or broadly scoped token is the most common source of avoidable exposure.
| Option | Fits when | Main risk | Confirm in the docs for your version |
|---|---|---|---|
| Integration token with resource permissions | A system-to-system connector needs fixed, machine-level access to specific resources such as catalog or orders | Permissions are often set broader than the connector needs, and the token works without a user session to limit it | Which resource ACL nodes the integration can be granted, and how those map to REST and GraphQL calls |
| Admin-issued token tied to a user role | A staff member's role must define what a tool can read or write, and the tool runs under that person's authority | If the user leaves or has elevated rights, the token keeps those rights, and admin two-factor rules may not apply to API tokens | How the token is tied to the user, what happens when the user is disabled, and how 2FA interacts with token issuance |
| Token expiry and rotation | Long-running connectors need periodic credential replacement without a manual outage | Tokens that never expire stay valid after a connector is retired or a secret leaks | Whether the installed version enforces a lifetime for integration tokens, and the steps to revoke and reissue them |
| Separate API user per connector | ERP, PIM and marketplace connectors each need different resources and should be audited separately | More users to manage, and a role that is reused across connectors widens the blast radius again | How roles are created per user, how to attach them to integrations, and how activity is attributed in logs |
| Shared credentials across connectors | Rarely a sound choice, though it appears in older setups that were built quickly | One leaked token exposes every connector, and log entries cannot show which system made a change | Whether the platform can issue distinct tokens for each consumer, and whether your audit trail distinguishes them |
| Read-only role for catalog feeds | A PIM or search indexer only pulls product data and never writes orders or customers | A catalog feed with customer or order access exposes personal data it never needed | Which resources are included in the catalog and product ACL nodes, and whether customer data endpoints are reachable by the same role |
| Marketplace connector with scoped order access | A marketplace sends and receives orders on a schedule and needs order read and status update rights | Order write rights combined with payment or customer data widen the impact of a compromised connector | Which order operations the role can perform, and whether refunds or address edits are separately controlled |
How a connector request reaches the store and where permissions apply
The walk starts at the ERP, PIM or marketplace connector, which sits in its own network and calls the store over HTTPS. The request passes the network edge and the web server, then reaches the Magento REST or GraphQL endpoint, where the token is validated before any resource is read. The ACL resource check decides whether the integration user may touch the requested data, and only then does the query reach the database. Check that the token issuance, validation and revocation points match your own integration inventory.
Request path from connector to database, with trust boundaries and token checkpoints.
How to set up a least privilege API user for an ERP connector
This sequence produces a dedicated Magento Open Source integration identity that can reach only the resources the ERP connector needs, with a credential held outside the admin, tested for both allowed and denied calls, and logged for review.
Inventory the endpoints and operations the connector needs
Before creating anything, the integration owner and the ERP team list every REST or GraphQL operation the connector calls, such as reading orders, updating stock or posting shipments, and map each one to the Magento resource it touches. Write the list as a table with one row per operation, the HTTP method or GraphQL operation name, and the resource. Record which operations are reads and which write data. The step is done when the ERP team signs off that no operation is missing and no unused operation remains on the list.
Create a dedicated integration with only those resources
A store administrator creates a new integration in the Magento admin for this connector alone, never reusing a shared or staff integration. Under the resource settings, the administrator selects only the resources from the inventory and leaves all other resources unchecked. Do not grant a full access setting unless the inventory requires every resource, and confirm the exact resource tree against the version of Magento Open Source in use, because resource names differ between releases. The step is done when the integration's resource list matches the inventory row for row.
Issue the credential and record its scope
Activate the integration and generate its access tokens so the connector has a working credential. Record the integration name, its resource list, the date of issue, and the named owner in your change log or configuration management system. Confirm with the vendor or your own environment how token lifetime is set for the version you run, since integration tokens are not bearer tokens by default and their handling affects expiry planning. The step is done when the record exists and the token is visible only to the person who issued it.
Store the credential in a secrets manager outside the admin
Move the access token and any consumer secret from the admin into a secrets manager that the ERP connector reads at runtime, such as a vault your team already operates. Remove copies from tickets, chat threads, shared spreadsheets and connector configuration files committed to source control. Restrict read access to the connector's service identity only. The step is done when a search of the connector repository and the team's shared drives finds no plaintext copy of the token, and the connector still authenticates from the secrets manager.
Run allowed-call tests
The integration tester runs each operation from the inventory against a staging store using the new credential and confirms a successful response for every allowed call. Use the same request format the production connector sends so the test reflects real behavior. Record the request, the response code and a sanitized response body for each test. The step is done when every inventoried operation succeeds and the results are stored with the change record.
Run denied-call tests that must fail
Using the same credential, send requests to resources outside the integration's list, for example a customer account endpoint or a configuration endpoint, and confirm each one is refused with an authorization error. Repeat the check for a write operation on a resource that the connector only reads. A denied call that succeeds means the scope is too broad, so the integration must be corrected and the full allowed and denied test set run again. The step is done when every out-of-scope call fails as expected and that result is recorded.
Set an expiry or rotation plan and schedule it
Document how and when the credential will be rotated, who performs the rotation, and how the connector picks up the new token from the secrets manager without an outage. Include the procedure for revoking the integration immediately if the ERP system or its operator is compromised. Agree with the vendor or your own security standards what rotation interval applies, because the supplied facts do not set one. The step is done when the rotation runbook is approved and a reminder is attached to the owner's calendar.
Log access and review it on a fixed cadence
Enable and route the Magento access and web server logs for the integration's endpoints to your central log platform, and confirm that each request can be attributed to the connector identity. Define a review cadence in which the integration owner checks for unexpected denied calls, new source addresses and volume changes against the inventory. Re-run the denied-call tests after every Magento upgrade or permission change. The step is done when a test request appears in the central logs with the connector identity and the review owner has signed the first review.
Risks in connector access that least privilege reduces
Most API incidents on a self-hosted Magento store start with a connector that could do more than it needed to. The cards below cover the common ways ERP, PIM and marketplace connections widen exposure, with the control to apply and the check to run for each.
Over-broad resource grants
An integration role built by selecting every resource under a broad group can often change payment methods, admin users or system configuration, not just the catalog or orders it was built for. Map each connector to the exact resources it reads or writes, then remove any payment, configuration or admin-user resource it does not need. Verify by calling the endpoints the connector should not reach with its token and confirming they are refused. Treat the resource tree shown in the admin as a starting point, not as proof of least privilege.
Adobe security docsLong-lived tokens in scripts
Integration access tokens copied into spreadsheets, scripts or shared notes stay valid until someone revokes them, and they rarely get rotated because nobody owns them. Store each token in a secrets manager, record the owner and the purpose, and set a rotation date at creation. Verify by listing active integrations, checking that each one has a named owner, and confirming that no token appears in a file under the web root or in a shared document.
Shared credentials across connectors
When the ERP sync, the PIM importer and a marketplace feed all use one integration, a compromise of any one of them gives access to all of them, and revoking it breaks everything at once. Create one integration per connector with its own resource grant and token. Verify that each connector authenticates with a distinct identity and that revoking one leaves the others working, which you can test in a staging store before you rely on it.
Tokens exposed in logs and CI
Bearer-style tokens can end up in web server access logs when they are passed as query parameters, in application logs from failed requests, or in CI variables that many jobs can read. Pass tokens only in request headers, keep them out of URLs, and restrict CI variables to protected branches and jobs that need them. Verify by searching access logs, application logs and pipeline output for a known test token after a sync runs, then confirm that log retention and access to those logs are limited to the people who need them.
Unreviewed access after retirement
When an ERP project ends or a marketplace contract lapses, the integration often stays active with its token and resource grant intact. Add a retirement step to the connector's change record that disables the integration, revokes its token and removes its role. Verify quarterly by comparing the list of active integrations with the list of live connectors and the vendors under contract, and investigate any token with no current owner.
API traffic mixed with storefront traffic
If connector calls share the same public hostname, rate limits, cache rules and web application firewall policies as shoppers and bots, a misconfigured sync can degrade checkout and make abuse harder to spot. Decide where API traffic enters the stack, apply separate rules and logging to it, and restrict administrative API paths to known networks where your design allows. Verify by generating a connector request and a storefront request, then confirming that each appears in its own log stream with its own policy applied.
How ERP, PIM and marketplace connectors need different access
Each connector type needs a different set of permissions, so the first design decision is to give ERP, PIM and marketplace connectors their own integration identities rather than one shared credential. An ERP usually needs stock, pricing and order write access, because it is the system that confirms stock levels, publishes prices and creates or updates orders. A product information management (PIM) system needs product and attribute write access to push catalog data, but it has little reason to see customer or order detail, so its identity should have order visibility limited or removed. A marketplace connector typically needs order import, inventory push and fulfillment updates, which means reading new orders, writing stock quantities and posting shipment or tracking data back to the store.
A single shared credential forces all three connectors to hold the union of those permissions. The PIM then carries order write access it never uses, and the marketplace connector can change prices or catalog attributes it was never meant to touch. If that token leaks, every connector's reach leaks with it, and revoking it stops all three integrations at once. Separate integration identities let you rotate or revoke one connector without interrupting the others, and they give reviewers a clear record of which system performed which change. In your access review, check that each identity's role matches the table of what that connector actually calls, not the broadest role someone once granted during setup.
The exact permissions each connector needs depend on the integration product and version you choose, so do not take the examples above as a final role definition. Ask each vendor or integration partner to list the REST or GraphQL resources and operations their connector calls, and test the role in a staging store before production. Confirm whether the connector writes prices or only reads them, whether it can create customers, and whether it needs access to admin-only endpoints. Record the outcome as a per-integration permission map that your security team can review.
Access models for ERP, PIM and marketplace connectors
An ERP connector usually moves orders, stock levels, prices, customer records and invoices between Magento and the finance and fulfillment systems. It needs read access to most order and customer data and write access to a narrow set of order status, shipment and inventory fields. It rarely needs catalog structure changes or any administrative function, so the role should be scoped to those flows.
- Typically needed: order read and status update, shipment creation, stock source and quantity updates, customer read for matching, and product read for price sync.
- Never hold: admin user management, system configuration, payment method settings, and integration management.
- Review cadence: confirm the role against the integration logs after every connector release and at least once per quarter, since ERP upgrades often add calls.
- Vendor questions: which endpoints are called for each business event, whether any call deletes or cancels records, and whether it stores customer personal data outside your infrastructure.
- Mapping step: export the endpoint and method list from your web server and integration logs for a representative period, then compare it with the role before granting it.
Treat the ERP user as the highest-value integration identity, because it touches financial and personal data. Confirm with the vendor that every write call is one your finance team has approved.
A product information management system sends catalog content to Magento: products, attributes, categories, media and sometimes bundle or configurable structure. Its traffic is write-heavy during imports and mostly idle otherwise, so its role tends to hold broad catalog write permissions. That breadth is the reason to tighten it to catalog resources only.
- Typically needed: product and attribute write, category write, media upload, and store view read for localization.
- Never hold: customer data, orders, admin users, system configuration and payment or shipping settings.
- Review cadence: review after each change to attribute sets or import mappings, and when the PIM vendor changes its export format.
- Vendor questions: whether the connector deletes products or categories when a record is missing from its export, which bulk endpoints it uses, and whether it can run on a schedule with a dedicated user.
- Mapping step: list the catalog endpoints used during a full import and a delta update, since they can differ in scope.
PIM accounts can still change prices, descriptions and visible content across a whole storefront. Ask who approves catalog write permissions and whether changes can be traced to the connector identity.
Marketplace connectors pull orders from external channels, push stock and price updates back, and sometimes handle returns and messages. They are often built by a third party and hosted outside your network, so the role must be tightly bounded and the token must be easy to revoke. Each marketplace usually needs only order and inventory flows, and should not see the rest of the store.
- Typically needed: order read and status update, stock and price update for listed SKUs, and read access to the products listed on that channel.
- Never hold: customer account administration, system configuration, payment and tax settings, and any role that can create admin users or integrations.
- Review cadence: review on every marketplace API change and when the channel onboards a new seller account, and remove access when a channel is retired.
- Vendor questions: where the connector runs and stores tokens, which Magento endpoints it calls for returns and cancellations, and whether it can be restricted to specific store views or sources.
- Mapping step: separate the marketplace calls from ERP calls in your logs so each identity has its own evidence trail.
If a marketplace provider cannot list the endpoints it calls, treat that as a blocker for granting access. Confirm the exact rotation and revocation steps with the vendor before go live.
What to confirm for your Magento version before relying on API controls
API access controls only hold if the platform underneath them is supported and behaves as you expect. Before you set token lifetimes or scope integration permissions, confirm the release, the runtime stack, the available mutations and the security headers that can affect your connectors.
Installed release and support end date
Identify the exact 2.4.x release and patch level running in production, then compare it with the end of regular support in Adobe's lifecycle policy. Token and permission settings matter less on a line that no longer receives security patches. Record the support end date in your connector runbook so that the upgrade decision is scheduled rather than forced.
- 2.4.8 regular support ends
- May 31, 2028
Runtime stack combination
Check that PHP, the database (MySQL or MariaDB), OpenSearch, Redis or Valkey, RabbitMQ, Composer and nginx match a combination Adobe lists for your release. Adobe supports only the listed combinations, so a connector that depends on an unlisted database or cache version adds risk outside vendor support. Confirm the list against the requirements page for the exact patch level you run.
System requirementsAvailability of specific GraphQL mutations
Do not assume a mutation exists in your edition because it exists in Adobe Commerce. The 2.4.9 release notes state that the clearCart mutation, previously Adobe Commerce only, is now available in Open Source. Test each mutation your connector calls against a staging copy of your version, and confirm the schema returns it before you grant the integration that permission.
2.4.9 release notesContent Security Policy and admin security settings
Check whether Content Security Policy headers are enabled and whether restrict mode applies to your admin and payment pages. From 2.4.7, CSP runs in restrict mode by default on storefront and admin payment pages. Headless front ends, embedded widgets and admin-side integrations can break under a stricter policy, so test them after any header change and document each allowed origin.
CSP documentationConnector vendor test record
Ask the ERP, PIM or marketplace connector vendor which Magento Open Source release and PHP version their latest build was tested against. A connector certified on an older line may still call endpoints that changed in your release, or may require a token type that your admin settings disable. Get the test record in writing and make it part of acceptance testing before any production cutover.
Questions teams ask before scoping API access
What drives the effort of scoping API access on a Magento store?
The effort follows the number of systems that call the store and how much each one is allowed to do. Each connector needs its own user or integration, a role that lists only the resources it reads or writes, and a token lifetime that matches how it runs. Effort rises when connectors share one account, when ERP, PIM and marketplace feeds write to the same catalog endpoints, or when custom modules expose extra REST or GraphQL routes. Customizations and third-party integrations are also named by Adobe's upgrade guidance as drivers of upgrade effort, so every custom route adds a permission to review in each release cycle. Ask any partner to list each connector, its data direction and the resources it touches before agreeing on a scope.
Can an internal team scope Magento API access without a partner?
Yes, a capable internal team can do this, provided it has someone who knows the Magento authorization model and can test each role against real requests. The work is mostly configuration and verification: creating integrations, assigning ACL resources, testing each connector with only its own credentials, and recording who owns each token. Teams without a Magento developer or security engineer on staff usually find the gaps during testing, such as a connector that needs a resource nobody planned for. A partner adds value when you need an independent review of permissions, a written inventory of connectors, or help with custom modules. Decide based on who will own the setup after launch, not only on who builds it.
What does the work need from the store owner and the connector vendor?
The store owner must supply a list of every system that will connect, the business process each one supports, and the named person accountable for it. The connector vendor must state exactly which REST or GraphQL operations it calls, whether it needs admin or customer tokens, the expected token lifetime, and whether it can store credentials securely and refresh them. Without those answers, roles are guessed and later widened. The store owner should also confirm who can approve new permissions and who receives alerts when a connector fails authentication. Ask the vendor to show the requests it sends in a test environment before production access is granted.
How long does an API access review take for several connectors?
The duration depends on the number of connectors, how many of them share permissions, and how well each vendor documents its calls. Reviewing one connector with a clear endpoint list is much shorter than untangling three connectors that all use the same administrator integration. Custom modules, unusual data flows and vendors that cannot list their operations add time because each one needs manual testing. No fixed duration applies to every store, so ask for the review plan, the connectors in scope, and the dependencies on other workstreams before accepting a timeline. Any figure in a proposal should be traceable to that written scope.
Can Magento API tokens be rotated without downtime?
Confirm this in the current Adobe documentation for your release before you plan a rotation, because token behavior depends on the authentication method and version in use. Rotation is usually simpler when each connector has its own integration, since you can issue a new credential, update the connector, verify the calls and then revoke the old one. Shared credentials force every connected system to change at once, which is where downtime usually appears. Test the rotation in a staging store on the same release line first. Record the steps and the owner of each connector so the process can repeat without rediscovery.
What should a quote for API access scoping include?
A quote should follow from a written scope and list each deliverable by name. Expect an inventory of connectors with their endpoints and data direction, a role and permission design for each one, token lifetime and rotation settings, testing evidence for every connector, and a short runbook for revoking access. It should also state what the store owner and the connector vendor must provide, and which items are one-time work versus recurring checks, such as reviewing permissions after each patch cycle. DeployOpen does not publish a price list, and a quote is produced from the agreed scope. Ask what is excluded, especially custom module changes and vendor-side work.
Are integration tokens bearer tokens, and what does that mean for risk?
Treat an integration token as a credential that grants whatever its role allows to anyone who holds it, which is the practical risk of a bearer token. Confirm with Adobe's documentation for your release how integration tokens are issued and validated, and whether any additional binding applies. Whatever the mechanism, the controls that matter are a narrow role, a limited lifetime, secure storage in the connector and a fast revocation path. Log which integration calls which endpoint so that unusual activity can be traced to a single connector. Pair these controls with a review of who can create or edit integrations in the admin.
How DeployOpen scopes and delivers Magento API access security
DeployOpen plans and delivers API access security for self-hosted Magento Open Source inside your own infrastructure. We start from a written inventory of every REST and GraphQL consumer, then set token, permission and monitoring controls that your security and integration teams can review before go-live.
How we scope
- We list every ERP, PIM, marketplace and custom consumer that calls the Magento REST or GraphQL endpoints today.
- The written scope names the integration users, roles, token types and lifetimes to be reviewed or changed.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.
How we build
- We create one integration per connector with the smallest set of resource permissions its job requires.
- We test token lifetimes, revocation and admin-side changes against each connector in a non-production environment.
- We check that API requests are logged and that failed authentication attempts are visible to your monitoring team.
How we hand over
- You receive a documented permission matrix, token inventory and rotation procedure for each integration account.
- Runbooks explain how to issue, rotate and revoke credentials, and which steps need the Magento admin or the command line.
- We walk your engineers through the configuration and confirm the handover checklist with them before closing the engagement.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial delivery.
- A retainer can cover re-review of permissions when a new connector, extension or Magento patch changes API behavior.
- Ask for the retainer scope, response expectations and upgrade handling in writing before you commit.

