1. Concepts and coordinates
Level: orientation. This page tells where a configuration lives, how the app reaches exactly the right one and who can change it. The next page is Drafts, publishing and history.
The four coordinates
A configuration is identified by four coordinates. There is no configuration “of the app” in absolute terms: there is the configuration of the app in that environment.
An example: each row is a configuration, with its four coordinates.
| Organization | Project | Environment | App |
|---|---|---|---|
| yours | mobile-suite | staging | com.example.app |
| yours | mobile-suite | production | com.example.app, with a configuration independent of the staging one |
| yours | mobile-suite | production | com.example.kiosk |
Another project of the same organization, such as web-portal, has environments and configurations of its own.
| Coordinate | What it is | Where it is created |
|---|---|---|
| Organization (or tenant) | The context of everything: members, API keys, projects, audit log. | At the first sign-in, if you do not already belong to an organization (Dashboard → Navigation and session). |
| Project | The container of what is released together (a product, a customer, a line of apps). It has a slug derived from the name, unique within the organization. | Projects tree in the sidebar, + button |
| Environment | The stage of the project (development, staging, production, or whatever you need). The name is unique within the project. | Projects tree, the project's menu → Add environment |
| App | The appId: the name the app introduces itself with, at most 200 characters. It is usually the bundle id (com.example.app), but you can choose any name. | Configurations page → New app field |
An app has no list of its own: an app exists in an environment when it has a configuration there. Writing a new appId in the New app field and pressing New opens the editor on an empty template; if you do not save it, that app never existed. For the same reason the same app in two environments has two independent configurations: there is no automatic promotion from staging to production. You copy the JSON, and that is on purpose (see the recipe on page 6).
How the app reaches the right configuration
The app sends every request with an API key, generated on the API keys page and tied to a single environment. From the key Squiddy works out organization, project and environment; the only coordinate the app declares is the appId.
- The app asks the data plane for the configuration with its
appId, its context and the API key. - Squiddy works out organization, project and environment from the key.
- It takes the published version of that app's configuration in that environment.
- It resolves it for the app's context.
- It answers with the resolved configuration.
The practical consequences:
- A wrong key is not an error, it is the wrong environment. If a test app carries the production key, it will receive the production configuration without anything complaining. Putting the name of the environment in the name of the key is the cheapest defense.
- The app cannot ask for another environment, not even by trying: the coordinates worked out from the key replace whatever arrives in the request.
- The project's slug is shown at the top of the Configurations page (Project slug, with the button to copy it), because it is the stable reference to quote in a ticket or in a build setting. It is born from the project's name, so you do not write it by hand.
- If the organization is suspended, the apps can stop receiving the configuration, with any key: they receive an error that says the service is suspended for the account, not “wrong key”. Whoever enters the dashboard sees the suspension screen, which also says whether the apps are stopped (Dashboard → Navigation and session).
Who can do what
Permissions depend on your role in the organization, and each role can do everything the role before it does: Viewer, Editor, Admin, Owner.
| Role | See the configurations | Edit and publish | Manage members |
|---|---|---|---|
| Owner | ✔ | ✔ | ✔ |
| Admin | ✔ | ✔ | ✔ |
| Editor | ✔ | ✔ | — |
| Viewer | ✔ | — | — |
For a Viewer the Configurations page opens and is read-only: the JSON editor accepts no changes, the Form is disabled, Save draft, Publish and Publish and notify are disabled, and the button to delete the configuration and Restore in the history are not there. The history and the comparisons between versions, on the other hand, can be seen: knowing what was published and when is everyone's right, not a privilege.
Squiddy applies the same rules outside the dashboard too: an action your role does not allow is refused anyway. All the permissions, including those on members and on the audit log, are in Dashboard → Members and roles.
Where you work, in the dashboard
An environment's Configurations page opens from the Projects tree in the sidebar: project → environment. At the top there are two fields; when you pick an app, five tabs appear below.
| Control | What it is for |
|---|---|
| Search app configuration | Opens an existing configuration. It is disabled when the environment has none yet, and in that case it says so: No configuration in this environment yet. |
| New app and New | Opens the editor on an empty template for an appId that has no configuration yet. It saves nothing by itself. |
| Editor tab | The document: JSON editor and Form, validation as you write, Save draft, Publish, Publish and notify, deletion. |
| Tester tab | Simulates an app and shows the answer it would receive, before publishing. |
| History tab | The versions with their status and who published them, the restore. |
| Compare versions tab | Two versions of your choice side by side, with the differences. |
| Push update tab | Asks the installed apps to check the published version right away (page 7). |
Picking another app from the search brings every tab onto the new app: what was in the editor, in the Tester or in the history selection does not come with you. The tab you were on stays open.
Every change ends up in the organization's Audit log: creation, update, deletion, publishing and restore, with who acted, when and what changed. It is the place where the question “who published this” is answered (Dashboard → Audit log).