The project model
How PodStack will organise your apps: four levels from the platform down to the single app, clear rules for who may talk to whom, and addresses that read like a path.
Addresses that read like a path
Planned
Read from right to left, every address follows the same path as the interface: domain, area, organisation, project, app. It never changes, not even when a project moves to another cluster.
Tap a part of the address to see what it means and where it sits in the model.
main · App
The environment that answers – main for production, test for testing. Every app has its own fixed address; your own domains point to it via CNAME. A component only gets its own address if you want it, otherwise it uses a path such as /api.
main.shop.northwind.project.example.nettest.shop.northwind.project.example.netapi-main.shop.northwind.project.example.net
shop · Project
Brings the apps together; all apps of a project live in the same cluster. Without the app part, the address leads to main. Each project gets one wildcard certificate for all its apps.
shop.northwind.project.example.net*.shop.northwind.project.example.net
northwind · Organisation
Your organisation's identifier. It never changes and separates you from everyone else – including cookies and certificate limits. Clusters, VPN and servers carry it too.
main.shop.northwind.project.example.netprod.northwind.cluster.example.net
project · Area
Says what kind of address it is: project for apps, cluster for the healthy edge servers of a cluster, vpn for the VPN entry and node for a single server.
prod.northwind.cluster.example.netprod.northwind.vpn.example.netmgmt-01.prod.northwind.node.example.net
example.net · Your app domain
The domain of your installation for apps – kept apart from the management domain. Inside the cluster the same place is called podstack.internal; databases are only reachable there.
main.shop.northwind.project.example.netdb.main.shop.northwind.project.podstack.internal
Four kinds of domain
PodStack strictly separates what a domain is for. That way an app never gets near the management sign-in, and data stays in the internal network.
Management domain
admin.example.comThe address of the PodStack interface. It is kept apart from all apps so that no app gets near the management sign-in or cookies – reachable only through the VPN if you want.
App domain
example.netYour installation's domain for apps. Every app automatically gets a fixed address under it that never changes – not even when it moves to another cluster.
Your own domains
www.northwind.exampleYour domains point to an app's fixed address via CNAME. You can have as many as you like and move them to another app at any time.
Internal domain
podstack.internalReachable only inside the cluster and through the VPN, never from the internet. Databases and other services with data live here. The name before the fixed ending .internal is your choice.
Four levels inside the platform
Every level lies completely inside the one above. A service sits on the lowest level that covers all of its users.
The whole installation: management, Store and all organisations with their clusters.
Services shared by all projects of the organisation – one sign-in and one account for every app, in the same cluster as the projects that use them.
- Single sign-on
- Mail relay
- Monitoring and logs
- Container registry
Standard tools without customer data, run once per cluster for everyone in it. Saves resources and keeps nothing of yours.
- Virus scanner
- Document conversion
- Text recognition
The bracket around its apps, always completely in one cluster. Holds the services that production and test share.
- Image service
- Search index
- Headless browser
Components
- Frontend
- Backend
- Worker
Services with data
- PostgreSQL
- Redis
- Bucket
Components
- Frontend
- Backend
Services with data
- PostgreSQL
- Redis
- Bucket
The application itself. It runs in environments such as production and test, each with its own namespace, components and data – test never touches production data.
The model is decided; projects, environments and apps are built (plan 2) and are being tried out with our own first apps. The example uses the fictional company Northwind and its online shop.
How it all fits together
Each level contains the next.
- PodStackPlatform
- 1Organisation
- 2Cluster
- 3Project
- 4App
Connections and releases
Everything is blocked by default. What an app needs is allowed on purpose – and every exception is a deliberate release for a target and port.
| From → to | Rule |
|---|---|
| 1Inside one app Components and their data services talk freely. | Allowed |
| 2App → service of its project Allowed – that is what the project service is for. | Allowed |
| 3Project service → app Only with a release. | With release |
| 4Project → organisation or cluster Through a connection you set up, only in the same cluster. | With release |
| 5App ↔ app (test ↔ main) Blocked; a release for one target and port is possible. | Blocked |
| 6Project ↔ project Only with a release, only in the same cluster. | With release |
| 7Cluster ↔ cluster Never directly – only through the public HTTPS address. | Blocked |
| 8Organisation ↔ organisation Never – organisations are completely separated from each other. | Blocked |
| 9Internet → app Only through the public address of the app or one of its components. | Allowed |
| 10App → internet Only with a release for target and port, for example for an API or an outgoing VPN tunnel. | With release |
Should production and test share a database on purpose, it becomes a project service – and PodStack shows a permanent notice that both share data.
All kinds of address at a glance
| What | Public address | Internal address |
|---|---|---|
| App (fixed, target for your own domains) | main.shop.northwind.project.example.net | main.shop.northwind.project.podstack.internal |
| Component with its own address (only if wanted, otherwise a path such as /api) | api-main.shop.northwind.project.example.net | api.main.shop.northwind.project.podstack.internal |
| Database inside the cluster (within the app simply “db”) | never public | db.main.shop.northwind.project.podstack.internal |
| Cluster (all healthy edge servers) | prod.northwind.cluster.example.net | – |
| Server (public only if needed) | mgmt-01.prod.northwind.node.example.net | mgmt-01.prod.northwind.node.podstack.internal |
| Your own domain | www.northwind.example →main.shop.northwind.project.example.net | – |
Databases stay private
Databases and other services with data are never public. You reach them only through the WireGuard VPN of the cluster, with access data of their own.
Names you can change, identifiers that stay
- Organisation, cluster, project, app and server each get an identifier, suggested from the name – the display name stays freely changeable.
- Identifiers use only a–z, 0–9 and hyphens and never change, so addresses and DNS records stay valid.
- After deletion an identifier stays reserved for good, so nobody can take over an address that old records still point to.