The platform portal
The platform portal is a web application for a Pryv.io platform: the first setup, the day-to-day administration, and a space where app developers manage their applications. It is a static build (open source, pryv/app-web-platform-portal) that calls the administration routes of the cores; it has no server of its own and stores nothing but one checklist in the browser. How a core exposes it: Serving the portal. How to add or replace a module: Portal modules.
Versions. The administration side follows the routes of open-pryv.io 2.0.0-rc.91 (setup, sessions, roles), 2.0.0-rc.92 (portal settings, roles and scopes, platform trail, platform configuration, OAuth review) and 2.0.0-rc.93 (invitation tokens, observability, DNS records, custom capabilities). The developer space and the review of developers’ submissions need 2.0.0-rc.94; on an earlier core they say “not available on this platform”. Portal 0.4.0, the default entry of open-pryv.io 2.0.0-rc.96, adds the account erasure of users:erase, sends the review acts to the home core of the account they are about (the separation of duties of 2.0.0-rc.96 requires it), uses the client list filters and total (filtering in the browser on an older core), and lets a delegate act for a publisher account in the developer space. Portal 0.3.1 (the default of 2.0.0-rc.95) sends a role grant to the core that holds the account. A portal refuses to start on a core whose portal contract it does not know (contract 1 today).
Signing in
Section titled “Signing in”Administrators are Pryv.io accounts that hold a role: there is no separate administration password. An administrator signs in with the account (and its second factor) on its home core; the portal then opens an administrator session (admin.session.ttlMinutes, 60 by default), renews it while the administrator is active, and calls the cores with it. It signs in with the app id pryv-platform-portal, which auth.trustedApps must accept from the portal’s origin.
- Idle lock: the portal signs out after
session.idleMinuteswithout a click or key press (its ownsettings.json, 15 by default). - Step-up: when a core asks for a recent second factor (role grants, claim codes, account deletion and erasure, some platform configuration keys, observability and DNS writes), the portal first tries with the current sign-in, then asks for the password and the second-factor code, confirms the step-up on the home core and repeats the refused call once.
- Tokens live in the tab’s memory and
sessionStorage, never inlocalStorage, a cookie or a URL, and only go to the platform’s own hosts. Signing out, the idle lock and an ended session close the administrator session. Closing the tab ends nothing on the server: sign out before closing.
Two spaces
Section titled “Two spaces”| Space | Address | Who |
|---|---|---|
| Administration | the portal’s root (/) |
accounts holding an administrator role |
| Developers | developer/ |
any account of the platform, when app registration is delegated |
Besides the modules, the shell has its own pages: setup (while setup is pending: the setup code from the core’s boot log opens a setup session, then the steps; the core’s built-in setup page stays linked), after-setup (what a new owner reviews next; ticked entries are the one thing the portal keeps in the browser’s localStorage, no credential), claim (redeem an administrator code an owner gave you) and my roles (your grants, what they give on the current core and why not, the core’s local policy, your second factor).
Modules
Section titled “Modules”Every page is a module. The administration modules:
| Module | What | Core routes |
|---|---|---|
| overview | the platform’s cores at a glance | /system/admin/cores |
| roles | administrators, grants, administrator (claim) codes | /system/admin/roles, /system/admin/claim-codes |
| users | accounts: list, usage, second factor reset, release of an external id, stop of a pending auto-deletion, and from 0.4.0 the erasure of an account (a dry run first, then the name typed) | /system/admin/users, /system/user-info, /system/admin/users/erase, … |
| audit | the platform trail, per core | /system/admin/audit |
| erasures | the erasure ledger | /system/admin/erasures |
| config-effective | a core’s effective configuration | /system/admin/config/effective |
| config | the platform configuration held in the platform store | /system/admin/platform-config |
| mail templates, test mail | /system/admin/mail/* |
|
| certs | certificates, forced renewal | /system/admin/certs |
| ext-id-ns | external-id namespaces | /system/admin/ext-id-ns |
| invitations | invitation tokens | /system/admin/invitations |
| observability | telemetry settings (the OTLP headers shown as set or not only) | /system/admin/observability |
| dns | runtime DNS records | /system/admin/dns/records |
| oauth-review | OAuth clients (filtered and counted by the core from 0.4.0), the review queue, developers’ submissions with their diff, publishers (Review apps and publishers) | /system/admin/oauth/* |
| cli-only | what stays on a core’s shell | none |
| setup | the setup steps | /system/setup/* |
The developer modules (my-apps, publisher, app-team, review-thread) use the signed-in account’s own token with the developer API, never an administrator session.
What stays on a core’s shell (the cli-only page lists it): the OTLP headers of observability (bin/observability.js set-header); DNS records under a name the platform answers itself and the ACME challenge records (bin/dns-records.js, or /reg/records with the admin key); an invitation token seeded from invitationTokens on a core without a key to list it (shown without an id, not deletable from the portal); and the other acts of bin/admin.js (a new setup code, a claim code minted from the shell, revoking an account’s sessions), which also work while the API is down.
Acting for a publisher account. From portal 0.4.0, an account that is an active delegate of other accounts (a group account, for example) picks one of them as the “Publisher” in the developer space’s header: the portal obtains a delegate token on that account, checks it with access-info, keeps it in the tab’s memory only, and the developer pages then work on that account, with a banner naming the account acted for and the delegate. See Acting as a delegate. Only delegates act for another account there: a team member of a group account holds no delegation, and the owner or a delegate submits what the team drafts.
What each administrator sees
Section titled “What each administrator sees”What a page offers on a core follows what that core says in its portal context (GET /system/admin/portal/context): the permissions the administrator holds there (a grant’s scope and the core’s local policy decide), the capabilities the core offers (some need a configuration: certs, dns, mail, audit, delegation), and its lockdown. A module whose capability or permission is missing is absent from the navigation; a capability locked readonly shows the page with its forms off; hidden takes it out. Modules that read several cores show one section per core, and say so when your roles do not reach a core.
Hiding a page is a convenience only: the core refuses every act the administrator may not do, whatever the portal shows.
Choosing what a platform shows
Section titled “Choosing what a platform shows”Without rebuilding the portal, from the core’s configuration (published read-only at GET /system/portal/settings, from 2.0.0-rc.92):
portal: spaces: [admin, developer] # the spaces offered (at least one) modules: disabled: [ext-id-ns] # module ids switched off: their pages say so order: [overview, users] # module ids listed first, in this orderFrom 2.0.0-rc.93 these three keys can also be held once for every core in the platform store (config:write, applied at once). A core that does not answer the settings route (404, before 2.0.0-rc.92) gets both spaces and every module. From 2.0.0-rc.94 the settings also say whether app registration is delegated, which turns the developer space on.

