AstonDB v5 Contact us
v5Permits and secrets

Every app lives in its own box. Only the admin opens a door.

An app may do anything with its own data. Everything beyond it, an outside host, another app, the names of your people, a password, opens only when the admin permits it by name. The contract asks, the admin decides, and the platform enforces it on every call, whoever wrote the code.

One permit, one named thing Changes without a redeploy Taken back on the next call No secret in the code or the contract
The box

Inside its box, an app needs nobody's permission. Outside it, it needs the admin's.

Every app gets its own database schema and role, its own files, jobs, events, flows and address. That is the box, and inside it nobody has to approve anything. Everything beyond it is a request in the contract and a decision of the admin.

Inside the box: no questions asked

  • Its own data: tables and views in its own schema, under its own database role.
  • Its own files in its own buckets.
  • Its own jobs, schedules, table events, long-running flows and the events those flows raise as they move.
  • A nudge to its own people: a short message from a job to the open page of a person it names, in this app only.
  • Its own frontend at its own address.

Which of your people may open the app is still the admin's call, through the app's roles.

Beyond the box: only by permit

  • Outside hosts: each host:port the code may reach with fetch, or in one long call the gateway makes for it.
  • Other apps: one job or one operation of another app.
  • People and apps of the platform: fixed read-only views, never the platform's tables.
  • The person's own token from the company login, to work in another system in their name.
  • Events of other apps: a row created, changed or deleted elsewhere.

Secrets are not permits: the contract names them and the admin sets every value (below).

Permits, step by step

The contract asks. The admin decides. The gateway holds the door.

One app, reports, wants a supplier API, a CRM, two other apps, the list of its users, the person's own token and an event from the leave app. Here is how that goes from the contract to a running call.

  1. The requests sit in the contract: outside hosts, jobs and operations of other apps, platform views, events of other apps. Asking opens nothing and never blocks a deploy. The build goes live, and whatever has no permit stays shut.

  2. Every request is a row in the app's detail: permit, deny or undecided. The admin denies the tracker an agent slipped in and permits the rest in one go. A denied request stays denied, in this build and the next.

  3. A call into another app goes as the signed-in person, and that app checks their roles as if they had clicked. Only a job whose author marked it for this runs for the calling app, and the admin sees exactly which owner check it skips.

  4. Apps never read the platform's tables. They read people through fixed, read-only views, and only with a permit. With one more permit, a job gets the signed-in person's token from the company login and works in another system in their name, only while they are signed in.

  5. Denying works from the next request, call or event, without a redeploy. Every change is a log line and an event, so an admin app can react to it.

Secrets, step by step

The contract names a secret. The admin sets it. The code gets only what it must.

Passwords, API keys and OAuth clients live in the platform's encrypted store, never in the code, the repository or the contract. The same app, reports, needs six of them.

  1. The contract lists the names the app needs, and nothing else. No value sits in the code, the repository or the contract file the admin reads. A name gives the app nothing until the admin sets its source.

  2. For each name the admin enters a value just for this app, or points the name to a shared entry that several apps use. A name without a source is undefined in the code, never somebody else's value.

  3. Values and secrets arrive with each run, decrypted, never through the worker's environment. A login and password arrive only as the finished header value. An OAuth client stays with the platform, which hands out short-lived tokens. An incoming API key never reaches the code at all.

  4. A new value applies from the next run: no build, no deploy, no restart. A shared entry rotates for every app that points to it. The platform never logs a value, and every change is an event an admin app can act on.

Who does what

Asking, deciding and running are three different hands

The person who writes an app cannot grant it anything. The person who grants does not have to read its code. And the code gets exactly what was granted, checked by the gateway on every call.

The builderasks

Writes the contract: the secrets the app needs by name, the hosts, apps, views and events it wants to reach.

The admindecides

Sets every secret, permits or denies every request, and sees for each app which other apps can reach it.

The deployerships

Sees what their app asked for and what was decided. Learns nothing about the insides of other apps.

The app's codegets

What was permitted and set, and nothing else, whatever it tries. The boundary is in the gateway, not in the code.

An AI assistantworks as the person

Uses an app's published tools with the person's roles. It never sees a secret and never reaches administration.

Rules that hold

Simple enough to explain to an auditor

A permit names one thingA host and port, one job or operation of another app, one platform view, one event. There are no wildcards and no “everything”.
It belongs to the app, not to a buildPermits survive deploys and rollbacks and change without either. A denied request stays denied in the next build.
Asking opens nothingA request never opens a door and never blocks a deploy. The app's detail shows what is asked and not permitted, and what is permitted but no longer asked.
Taken back on the next callDenying or removing a permit applies from the next request, call or event. No redeploy, no restart.
Every change leaves a traceEach decision and each secret change is logged and announced as an event, from the admin screen and from an admin app alike.
No peeking without a permitThe permit is checked before the target is looked up, so an app without one cannot even find out what another app contains.
Some doors stay shutInternal addresses are never reachable, not even with a permit. An admin app is never the target of another app's permit.
Who can reach this app?Every app's detail lists the other apps that may call it or receive its events, including calls that skip its owner check.
The store is out of the app's reachOnly the platform reads the encrypted store. Every deploy and every start checks that the app's database role is denied access to it.
Secrets travel with the runValues reach the code only while it runs, never through the process environment or the worker's configuration, and the platform never writes them to its log.

Administration can be an app too. An admin app hands out roles, sets permits and secrets and reacts to every change, from its own screens or on a schedule, through the same rules as the admin screen. Only admins upload and open it, and it reaches other apps and outside hosts only through permits a human admin gives it.

Which integration worries you most?

Tell us which systems your apps need to reach. We'll show you what the contract asks for, what your admin sees and what the code gets, on your own infrastructure.

Peter Molnár Aston ITM s.r.o.
peter.molnar@aston.sk
Write to us