Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Open Your Backend to Apps and Partners Without Handing Over the Database

Your backend is done. The admin console works, the business runs on it, and for a while the only consumer of your API is your own frontend. Then the requests start arriving: the mobile app team wants product and order data, a WeChat mini-program needs to read a few endpoints, a partner's system wants to sync records, a hardware gateway wants to report status. The data is all in your system. The…

Your backend is complete, and it is successfully running the business. Initially, the only consumer of your API was your own frontend. However, requests from various parties begin arriving: a mobile app team requests product and order data, a WeChat mini-program needs to read specific endpoints, a partner's system wants to synchronize records, and a hardware gateway wants to report status.

The data resides within your system, but the challenge lies in allowing these external entities to access it without granting them full control over your database.

The initial instinct might be to provide partners with database accounts, but this comes with significant risks. There is no audit, no throttling, and no control over which tables they can access. If a credential is leaked, the data becomes exposed. Alternatively, handing them a backend login results in granting them access as if they were a person, with the same authorization limitations.

Writing bespoke API sets for each partner further compounds the issue, as maintenance costs grow linearly with the number of partners, and there is no unified standard.

The root cause of this problem is the one-way nature of credentials. A database account represents a data identity, a backend login represents a human identity, and a bespoke API set is a one-off identity. None of these can effectively address the four essential questions any external integration must answer: who is calling? (identity), what may it call? (authorization), how much may it call? (throttling), and what did it call? (audit).

To resolve this, it is crucial to provide each integrator with its own app identity. An external system should never touch your backend account system. Instead, it receives an app identity and can only call the authorized endpoints. This approach ensures that identity, authorization, throttling, and audit all revolve around this single identity, and most importantly, they are all reversible. Access can be scoped down, throttled, monitored, and revoked as needed.

GewuMind Boot builds this capability directly into the backend as a built-in open API gateway. The process involves registering an app, exchanging the appKey and appSecret for a token, authorizing specific endpoints, rate limiting, and logging calls. This capability is not an add-on feature but is included with the product's release packages. The README and user manual provide comprehensive guides, and the official site lists it as a feature available in both free base and standard editions.

The app management system allows for one app per integrator, each holding its own appKey and appSecret. The secret is shown only once during creation and can be reset at any time. A one-switch disable takes effect immediately. Token exchange is crucial, as it involves exchanging appKey and appSecret for a token, which is then used for all subsequent requests. Authorization is precise to path and method, with the ability to set individual rate limits for each authorized endpoint.

Call logs record essential information such as the app, endpoint path, method, request IP, status code, latency in milliseconds, and request time. You can query these logs per app in the admin console, enabling you to troubleshoot, reconcile, and analyze rate-limit behavior. Exported onboarding documents provide a per-app Markdown guide that can be directly handed to the integrator, streamlining the onboarding process.

To ensure proper integration, ask whether you can revoke an integrator's access. This check covers all the bases and helps maintain control over your backend while providing external entities with the necessary access to perform their tasks securely and efficiently.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in Tech

More from Wednesday, 2 December 2026 →