Ferdigheter · Apper
Describe the app
Give an app the owner, department and data class it needs before it goes live, change them later, and answer what runs in the organisation and who owns it.
Every app on Skybu says who owns it, which department it belongs to and what data it handles. Skybu refuses an app's first deploy without them, and the organisation uses them to know what runs, who to ask, and which apps need an owner's approval before going live. Pull request previews follow their app.
In short
- Ask the user what data the app handles. Never guess, and never pick a lower class than the data needs.
list_departments. If it returns any, ask which one the app belongs to.- Pass
dataClass,departmentand, if someone else owns it,owneron the first deploy, or set them later withupdate_app_details. get_appshows an app's details;list_app_registershows every app's.
Step 1: the data class
| Value | When |
|---|---|
none | The app stores or shows no information about people: a demo, a public page. |
internal | Internal company information, but not about people. |
personal | Names, emails, customer records and the like. |
sensitive | Health, national identity numbers (fødselsnummer) and other special categories. |
Ask the user. Describe what you see in the code ("the app stores customer emails") and let them choose. In doubt between two classes, the higher one is right. An app without a data class (apps from before the field existed) counts as sensitive.
Step 2: the department and the owner
{ "name": "list_departments", "arguments": {} }
It returns the organisation's departments with how many apps each has. If there are none, leave department out. If there are any, a new app must have one; ask the user which. Only owners add departments, in the dashboard under Settings → General.
The owner is the person to ask about the app. It is the person deploying unless you pass owner, an email that must belong to a member of the organisation.
Step 3: set them
On the first deploy, with any deploy tool (deploy_files, deploy_upload, create_app_from_git):
{
"name": "deploy_files",
"arguments": {
"projectId": "<project id>",
"name": "kundeportal",
"dataClass": "personal",
"department": "Marked",
"owner": "kari@nordlys.no",
"files": [ … ]
}
}
Without them the deploy is refused with app_details_required, naming what is missing and the organisation's departments; nothing is created. Later deploys do not ask again, except for an app with no data class, whose next deploy must give one. Details passed on a later deploy change the app's.
To change them without deploying:
{ "name": "update_app_details", "arguments": { "appId": "<app id>", "dataClass": "sensitive" } }
Pass only what changes. department: null takes the app out of its department. Any member of the organisation can change an app's details; each change is in the audit log with the value before and after.
| Code | Why |
|---|---|
invalid_data_class | Not one of the four values. |
unknown_department | No department by that name. The message lists the ones there are. |
owner_not_member | The owner's email is not a member of the organisation. |
app_details_required | A first deploy without a data class, or without a department when the organisation has departments. |
Step 4: read them
{ "name": "get_app", "arguments": { "appId": "<app id>" } }
The app's details has owner (email and name, or null), department, dataClass (null when unset) and handedOverFrom (see below).
The register lists every app and preview in the organisation with owner, department, data class, address, status, last deploy and last request:
{ "name": "list_app_register", "arguments": { "dataClass": "sensitive" } }
Filter by owner (an email), department (a name, or none for apps without one) or dataClass. To find apps without a data class, list without that filter and look for dataClass: null. Use the register to answer "what runs here, who owns it and what data does it handle". For a CSV for DPIA or audit work, the user runs skybu register --csv or exports it from the dashboard.
What the data class changes
Owners can require that production deployments wait for an owner's approval: for all apps, or for apps with personal data, meaning personal, sensitive or no data class. Under that rule a deploy of such an app builds and then waits as awaiting_approval (skill://apps/previews-and-approval); previews never wait. Lowering an app's class can take it out of the rule, so only do it when the user says the data really is less sensitive.
When the owner leaves
- An owner removing a member who owns apps chooses who takes them over. Someone who leaves on their own hands their apps to the longest-standing owner.
- With user provisioning from Entra ID (SCIM), a person deactivated there leaves the organisation and each of their apps goes to their manager if the manager is a member, else to the app's department (with no owner), else to an owner of the organisation. The owners get an email listing what moved.
- An app handed to its department shows who it came from in
handedOverFromand in the register. Give it a new owner withupdate_app_details; that clearshandedOverFrom.
Things to know
- If the organisation archives unused apps, the owner is who gets the email before the app is archived.
- The CLI:
skybu app details <app> [--data-class …] [--department …|none] [--owner …],skybu departments,skybu register. In the dashboard, it is the app's Settings tab, "Owner and data". - For personal data inside the app's database, see
skill://data/query-data-safely.