DxTroy
EN
Contact

Field notes

When your security layer blocks your own API

An API was blocked because the word "script" sits inside "subscriptions". The fix: keep the security rule as it is, change how paths are named.

Mr DxTroy1 min readFor CTO

  1. Access rights
  2. Separate data
  3. Infrastructure
  4. Operations, backups
  5. Your business
Four layers to check when choosing a platform

One of Ebig's APIs suddenly started returning a "Sorry, you have been blocked" page. The code had no bug and the server hadn't gone down. The security layer at the edge saw the word "script" inside "subscriptions" and blocked the request before it reached the system.

The problem

The security rule blocks on strings of characters in the path: select, union, insert, update, script. It has no idea that "subscriptions" is a harmless word.

The fix

  1. Don't loosen the security rule, and don't turn it off
  2. Public paths use safe names: subs, code, add
  3. The gateway translates the public names to the internal ones
  4. The gateway refuses to start if any path contains a blocked word

See which layers a request passes through →

The cost

One thing now has two names, and you have to keep a table that maps one to the other.

Opinion and decision

For the CEO: Safety has a cost. Turning safety off to move faster costs more.

For the CTO: Check paths at load time; don't wait for users to hit the error. Tell an edge block (an HTML 403 page) apart from an application error (JSON). Test through the public domain name, not the internal network.

Do this week: Send every one of your API paths through your actual security layer, from outside, and see which ones get blocked.

You can try it, or watch the videos of me trying it

Four screen recordings. Project setup is recorded in a single take; in the AI clips, the wait for the AI's answer is sped up.

Setting up a projectFrom a company name to more than 80 processes ready to use.
Using WorkplaceThe Today screen: tasks due, items waiting for approval and meetings in one place; then switching to This week.
Editing in EbigOSDescribe it in plain words, and the AI drafts a process for the person with authority to approve.
AI assistantAsk about a process in plain words, and the assistant answers from the company's data.

SecurityInfrastructure

Start with the slowest job.

One specific job. I assess it, propose a first step, then help you put it into use.