@abgov/adsp-sdk-mcp-server 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/docs/platform/deployment.md +11 -10
- package/assets/docs/services/access-service-backup-disaster-recovery.md +83 -0
- package/assets/docs/services/audit-service.md +173 -0
- package/assets/docs/services/calendar-service.md +127 -5
- package/assets/docs/services/event-service.md +77 -50
- package/assets/docs/services/form-service.md +40 -1
- package/assets/docs/services/token-handler.md +85 -45
- package/assets/docs/services/value-service.md +3 -0
- package/assets/docs/tutorials/form-service/data-registers.md +40 -45
- package/package.json +1 -1
- package/src/sdk-reference/reference.js +40 -0
- package/src/sdk-reference/reference.js.map +1 -1
|
@@ -15,6 +15,7 @@ communicate over APIs and RabbitMQ, and so deployment into other hosting environ
|
|
|
15
15
|
## Prerequisites
|
|
16
16
|
|
|
17
17
|
<!-- tags: [keycloak] -->
|
|
18
|
+
|
|
18
19
|
A few prerequisites are needed to set up an ADSP deployment:
|
|
19
20
|
|
|
20
21
|
1. [Keycloak](https://www.keycloak.org/) is used as an IAM solution. Realms provide tenants with user access management under their own administrative control.
|
|
@@ -37,28 +38,29 @@ The tenant service creates realms for new tenants using a service account.
|
|
|
37
38
|
Platform micro-services make requests under a non-tenant 'core' context. This is handled with a 'core' realm in Keycloak.
|
|
38
39
|
|
|
39
40
|
1. Create a 'core' realm in Keycloak.
|
|
40
|
-
2. Create public
|
|
41
|
-
3. Create confidential
|
|
42
|
-
4. Create confidential
|
|
41
|
+
2. Create public _client_ with _Standard Flow_ enabled for tenant administration application: `urn:ads:platform:tenant-admin-app`.
|
|
42
|
+
3. Create confidential _clients_ with service accounts for `urn:ads:platform:subscriber-gateway` and `urn:ads:platform:api-docs-app`.
|
|
43
|
+
4. Create confidential _clients_ with service accounts for backend micro-services including:
|
|
43
44
|
- `urn:ads:platform:tenant-service`
|
|
44
45
|
- `urn:ads:platform:event-service`
|
|
45
46
|
- `urn:ads:platform:value-service`
|
|
46
47
|
- ...
|
|
47
|
-
5. Create service
|
|
48
|
+
5. Create service _client roles_:
|
|
48
49
|
- In `urn:ads:platform:value-service`, create `value-reader` and `value-writer` roles.
|
|
49
50
|
- In `urn:ads:platform:event-service`, create `event-sender` role.
|
|
50
|
-
- In `urn:ads:platform:configuration-service`, create
|
|
51
|
+
- In `urn:ads:platform:configuration-service`, create `configured-service` role.
|
|
51
52
|
- In `urn:ads:platform:notification-service`, create `subscription-app` role.
|
|
52
53
|
- In `urn:ads:platform:verify-service`, create `code-generator` and `code-verifier` roles.
|
|
53
|
-
- In `urn:ads:platform:tenant-service`, create `platform-service` role, enable
|
|
54
|
-
6. Assign roles to
|
|
54
|
+
- In `urn:ads:platform:tenant-service`, create `platform-service` role, enable _composite roles_, and add `event-sender` and `configured-service` client roles from above.
|
|
55
|
+
6. Assign roles to _clients_
|
|
55
56
|
- Grant the service accounts the `platform-service` role.
|
|
56
|
-
- Grant `urn:ads:platform:event-service` the `value-writer` role
|
|
57
|
+
- Grant `urn:ads:platform:event-service` the `value-writer` role, so it can log events, and the `value-reader`
|
|
58
|
+
role, so it can count events on behalf of event log API consumers.
|
|
57
59
|
- Grant `urn:ads:platform:notification-service` the `code-generator` and `code-verifier` roles.
|
|
58
60
|
- Grant `urn:ads:platform:subscriber-gateway` and `urn:ads:platform:form-service` the `subscription-app` role.
|
|
59
61
|
|
|
60
|
-
|
|
61
62
|
## RabbitMQ configuration
|
|
63
|
+
|
|
62
64
|
Some platform services communicate over RabbitMQ. The exchange and queue configuration required is contained in the code, but manual configuration is necessary to create the accounts. All accounts should access a common vhost in RabbitMQ.
|
|
63
65
|
|
|
64
66
|
1. Create accounts for platform services including:
|
|
@@ -77,4 +79,3 @@ References for configuration in the form of ConfigMaps and Secrets are included
|
|
|
77
79
|
2. Set appropriate values in the ConfigMaps and Secrets and apply to environments.
|
|
78
80
|
3. Create a service account in 'build' with edit permission to other projects for the pipeline.
|
|
79
81
|
4. Process and apply managed templates, and/or set service account token in GitHub for the pipeline.
|
|
80
|
-
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
title: Access service backup and disaster recovery
|
|
4
|
+
nav_order: 3
|
|
5
|
+
parent: Services
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Access service backup and disaster recovery
|
|
9
|
+
|
|
10
|
+
## Introduction
|
|
11
|
+
|
|
12
|
+
The ADSP Access Service provides authentication and identity management for the platform. It is deployed as Keycloak on the Government of Alberta's Azure Red Hat OpenShift (ARO) cluster, in the `adsp-prod` namespace.
|
|
13
|
+
|
|
14
|
+
This document describes recovery responsibilities and validation for the Access Service. Keycloak deployment configuration, secrets, themes, and other artifacts outside the database must also be recoverable.
|
|
15
|
+
|
|
16
|
+
## Access Service Cluster in ARO
|
|
17
|
+
|
|
18
|
+
The Keycloak service is configured in high-availability (HA) mode, running three instances in the `adsp-prod` ARO environment behind a traffic proxy. A health-check monitor tracks Keycloak, and Azure alerts are configured to notify administrators of CPU or traffic issues. This application-level HA setup provides instance redundancy so authentication can continue if an instance becomes unavailable. End-to-end availability depends on traffic reaching healthy instances and the database and ARO platform remaining available. Failover testing and distribution across separate failure zones still need confirmation.
|
|
19
|
+
|
|
20
|
+
End-to-end availability also depends on the GoA-managed database and the ARO platform. Confirm the database failover arrangements and the behavior of the service during an instance or platform failure with the responsible teams.
|
|
21
|
+
|
|
22
|
+
This is a high-level view of the intended strategy. Instance failover, failure-zone coverage, and database recovery still need confirmation.
|
|
23
|
+
|
|
24
|
+
### Recovery coverage
|
|
25
|
+
|
|
26
|
+
The supplied information references an ARO backup and restore, but does not confirm whether the database and all required Access Service data were included or whether end-to-end recovery was tested. Confirm backup coverage and the results of the latest recovery test.
|
|
27
|
+
|
|
28
|
+
## Database
|
|
29
|
+
|
|
30
|
+
Keycloak stores realm and identity data, including users, clients, and roles, in its database. The database is managed by the Government of Alberta Dev/Ops team, which owns its backup and recovery. The database technology, availability design, failover process, backup schedule, and recovery objectives have not been confirmed. Confirm these details with GoA Dev/Ops. ARO application backups do not necessarily include the separately managed database.
|
|
31
|
+
|
|
32
|
+
## Responsibilities
|
|
33
|
+
|
|
34
|
+
| Responsibility | Owner |
|
|
35
|
+
| ------------------------------------------------------------------- | ------------------------------------------------ |
|
|
36
|
+
| Database backup, retention, protection, and restore | GoA Dev/Ops team |
|
|
37
|
+
| Provide database recovery objectives and restore procedure | GoA Dev/Ops team |
|
|
38
|
+
| Coordinate the Keycloak incident and recovery validation | ADSP team |
|
|
39
|
+
| Restore or redeploy Keycloak configuration and supporting artifacts | To be confirmed with the ADSP service owner |
|
|
40
|
+
| Confirm tenant and application access after recovery | ADSP team with affected tenant/application teams |
|
|
41
|
+
|
|
42
|
+
Confirm these ownership boundaries and the applicable operational contacts with both teams.
|
|
43
|
+
|
|
44
|
+
## Recovery information to confirm
|
|
45
|
+
|
|
46
|
+
The following information is not currently documented and must be confirmed with GoA Dev/Ops, the ADSP service owner, or the OpenShift team as applicable before this document can be treated as an approved recovery runbook.
|
|
47
|
+
|
|
48
|
+
| Item | Confirmed value |
|
|
49
|
+
| ------------------------------------------------------------------------ | --------------- |
|
|
50
|
+
| Database availability and failover arrangements | To be confirmed |
|
|
51
|
+
| Database backup schedule, retention, and recovery objectives | To be confirmed |
|
|
52
|
+
| Database restore process and escalation contact | To be confirmed |
|
|
53
|
+
| Whether backups cover all required Access Service data and configuration | To be confirmed |
|
|
54
|
+
| How traffic moves to healthy instances during a failure | To be confirmed |
|
|
55
|
+
| Whether instances are distributed across separate failure zones | To be confirmed |
|
|
56
|
+
| Frequency and results of end-to-end failover and recovery tests | To be confirmed |
|
|
57
|
+
|
|
58
|
+
## Recovery procedure
|
|
59
|
+
|
|
60
|
+
1. **Declare and coordinate the incident.** The ADSP incident lead records the impact, affected environments, and time detected, then contacts GoA Dev/Ops through the agreed incident channel. Do not attempt an independent database restore or modify the managed database outside the approved process.
|
|
61
|
+
2. **Confirm the recovery point.** GoA Dev/Ops confirms the available restore points, expected data-loss window, and estimated recovery time with the ADSP incident lead before proceeding.
|
|
62
|
+
3. **Restore the database.** GoA Dev/Ops performs the database recovery using its approved process and confirms when the database is ready for Keycloak.
|
|
63
|
+
4. **Recover the Access Service.** The service owner restores the application and its required configuration using the approved ARO recovery process, reconnects it to the recovered database, and confirms that healthy instances can serve authentication requests.
|
|
64
|
+
5. **Validate service behavior.** Complete the checks below before declaring the Access Service recovered. Coordinate tenant-specific checks with affected tenant/application teams.
|
|
65
|
+
6. **Communicate and document.** Report service status and any known data-loss window to stakeholders. Record the incident timeline, restore point, validation results, and follow-up actions.
|
|
66
|
+
|
|
67
|
+
## Post-recovery validation
|
|
68
|
+
|
|
69
|
+
- Keycloak starts successfully and its administrative interface is available to authorized operators.
|
|
70
|
+
- All three intended Keycloak instances are healthy, and authentication continues if one instance becomes unavailable.
|
|
71
|
+
- OpenID Connect discovery and token endpoints respond as expected for the affected realms.
|
|
72
|
+
- A controlled test account can authenticate, and a test service account can obtain a token where applicable.
|
|
73
|
+
- Test tokens contain the expected issuer, audience, and roles, and a representative ADSP service accepts the token.
|
|
74
|
+
- A sample of affected tenant realms, clients, users, and roles is present and usable. Coordinate tenant-specific verification with tenant administrators.
|
|
75
|
+
- Tenant administration and dependent application workflows are confirmed with their owners.
|
|
76
|
+
- The health-check monitor reports the Keycloak service as healthy after recovery.
|
|
77
|
+
- Azure CPU and traffic metrics are available, and alert notifications are working.
|
|
78
|
+
|
|
79
|
+
Use non-production test accounts where possible. Do not use real user credentials as recovery test data.
|
|
80
|
+
|
|
81
|
+
## Review
|
|
82
|
+
|
|
83
|
+
Review this document with GoA Dev/Ops and the ADSP service owner, fill in the recovery information above, and update it after a restore test or a material change to the Keycloak deployment or database service.
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
title: Audit service
|
|
4
|
+
parent: Services
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Audit service action catalogs
|
|
8
|
+
|
|
9
|
+
The action catalog registers the classification of audit actions. Registering an action does not
|
|
10
|
+
generate audit records. Event ingestion, metadata validation of individual events, history storage,
|
|
11
|
+
SIEM forwarding, and retention execution are separate capabilities, not implemented by this catalog.
|
|
12
|
+
|
|
13
|
+
## Configuration contract
|
|
14
|
+
|
|
15
|
+
Audit Service registers a namespace-level schema at startup through `initializePlatform` with
|
|
16
|
+
`configuration.useNamespace: true`. The definition is the `audit-service` entry in Core
|
|
17
|
+
`platform:configuration-service`. It appears under **Configuration service > Definitions > Core definitions**.
|
|
18
|
+
Registration follows the SDK's asynchronous startup behavior: inspect registration logs and the stored
|
|
19
|
+
definition before onboarding applications; a listening HTTP server alone does not prove registration succeeded.
|
|
20
|
+
|
|
21
|
+
Each application stores a complete catalog in `audit-service:actions-<application>`, in its tenant
|
|
22
|
+
or in Core for shared actions:
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"kind": "actionCatalog",
|
|
27
|
+
"application": "case-service",
|
|
28
|
+
"actions": {
|
|
29
|
+
"case.update": {
|
|
30
|
+
"version": 1,
|
|
31
|
+
"category": "administrative",
|
|
32
|
+
"severity": "info",
|
|
33
|
+
"retentionClass": "compliance",
|
|
34
|
+
"resourceType": "case",
|
|
35
|
+
"captureChangeSet": true,
|
|
36
|
+
"forwardToSiem": false,
|
|
37
|
+
"metadataSchema": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": { "reason": { "type": "string" } }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`application` is a lowercase kebab-case identifier, at most 40 characters. The API's `namespace`
|
|
47
|
+
is this same identifier, **not** the Configuration Service namespace `audit-service`. For an SDK
|
|
48
|
+
client it should equal `serviceId.service`. Applications are trusted to register only their own
|
|
49
|
+
catalog; Configuration Service roles do not provide application-level write isolation.
|
|
50
|
+
|
|
51
|
+
Actions require a positive integer `version`, `category` (`administrative`, `runtime`, `security`,
|
|
52
|
+
`data-access`), `severity` (`info`, `warning`, `critical`), and a kebab-case `retentionClass`.
|
|
53
|
+
Optional fields are `description`, `resourceType`, `captureChangeSet`, `forwardToSiem`, and
|
|
54
|
+
`metadataSchema`. The two flags resolve to `false` when omitted. An omitted metadata schema imposes
|
|
55
|
+
no action-specific metadata constraint. The listing returns any supplied schema intact.
|
|
56
|
+
Unknown document and definition fields are rejected. Action keys omit the event outcome suffix.
|
|
57
|
+
|
|
58
|
+
The namespace schema also preserves `retentionSettings` and `applicationRetentionSettings` document
|
|
59
|
+
shapes, with positive integer `classes.<class>.days`. No default periods are created here.
|
|
60
|
+
Resolving or validating cross-document retention class references belongs to the retention work.
|
|
61
|
+
|
|
62
|
+
### Registering through the SDK
|
|
63
|
+
|
|
64
|
+
`auditDefinitions()` turns application constants into a map keyed by action name and rejects
|
|
65
|
+
duplicate names at startup:
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { adspId, AuditAction, auditDefinitions } from '@abgov/adsp-service-sdk';
|
|
69
|
+
|
|
70
|
+
const serviceId = adspId`urn:ads:case-team:case-service`;
|
|
71
|
+
const ACTIONS = {
|
|
72
|
+
UPDATE_CASE: {
|
|
73
|
+
name: 'case.update',
|
|
74
|
+
version: 1,
|
|
75
|
+
category: 'administrative',
|
|
76
|
+
severity: 'info',
|
|
77
|
+
retentionClass: 'compliance',
|
|
78
|
+
},
|
|
79
|
+
} satisfies Record<string, AuditAction>;
|
|
80
|
+
|
|
81
|
+
// Include this entry in initializeService's serviceConfigurations.
|
|
82
|
+
const serviceConfigurations = [
|
|
83
|
+
{
|
|
84
|
+
serviceId: adspId`urn:ads:platform:audit-service`,
|
|
85
|
+
configuration: [
|
|
86
|
+
{
|
|
87
|
+
name: `actions-${serviceId.service}`,
|
|
88
|
+
operation: 'REPLACE' as const,
|
|
89
|
+
configuration: {
|
|
90
|
+
kind: 'actionCatalog',
|
|
91
|
+
application: serviceId.service,
|
|
92
|
+
actions: auditDefinitions(ACTIONS),
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Use `initializePlatform` for a Core platform service. The same registration entry then creates a
|
|
101
|
+
shared Core catalog. Existing SDK registrations continue to use `UPDATE` unless a named document
|
|
102
|
+
explicitly selects `REPLACE`. For direct Configuration Service calls, PATCH the named catalog with
|
|
103
|
+
`{ "operation": "REPLACE", "configuration": <complete catalog> }`.
|
|
104
|
+
|
|
105
|
+
Replacing one application's document cannot delete another application's catalog, including during
|
|
106
|
+
concurrent registration. Replacing its action map removes obsolete definitions, unlike a shallow
|
|
107
|
+
`UPDATE` merge. Concurrent writers to the _same_ application remain last-writer-wins; coordinate
|
|
108
|
+
those deployments. Only trusted administrators/deployment accounts should have write access.
|
|
109
|
+
|
|
110
|
+
If an active revision is set, changing latest alone may not publish the change. Create and activate
|
|
111
|
+
revisions through the normal Configuration Service workflow, with a configuration-admin account.
|
|
112
|
+
|
|
113
|
+
## Loading and cache behavior
|
|
114
|
+
|
|
115
|
+
The service reads active revisions with fallback to latest, through the existing SDK configuration
|
|
116
|
+
service. It merges tenant and Core maps **by action name**, with the entire Core definition winning
|
|
117
|
+
on conflicts. Tenant-only actions remain. An empty tenant catalog does not hide shared Core actions.
|
|
118
|
+
The stored `application` must match the requested configuration name.
|
|
119
|
+
|
|
120
|
+
The SDK caches converted documents by tenant, configuration namespace, and document name. Core
|
|
121
|
+
documents are shared deliberately. The combine function uses the SDK's existing memoization.
|
|
122
|
+
Tenant `configuration-updated` and `active-revision-set` notifications invalidate the affected
|
|
123
|
+
entry; the next request reloads it. Core changes also have the TTL backstop; do not assume a Core
|
|
124
|
+
write emits a tenant notification.
|
|
125
|
+
|
|
126
|
+
`useLongConfigurationCacheTTL` is **false**, retaining the SDK's 900-second (15-minute) TTL.
|
|
127
|
+
With Configuration Service available, a missed notification is picked up on the first request
|
|
128
|
+
after expiry, plus fetch latency. An update notice normally refreshes on the next request; there is
|
|
129
|
+
no measured end-to-end notification latency guarantee yet. Register actions before deploying code
|
|
130
|
+
that emits them.
|
|
131
|
+
|
|
132
|
+
Audit Service uses the SDK's existing error handling. Configuration HTTP or converter failures are
|
|
133
|
+
logged and returned as `null`, so the catalog API cannot reliably distinguish those failures from
|
|
134
|
+
missing configuration. If neither scope supplies a catalog, it returns 404; if one scope succeeds,
|
|
135
|
+
it can return a partial catalog without the failed scope. A registered empty catalog retains its
|
|
136
|
+
`actions: {}`. Errors that still propagate, such as token acquisition failures, and application-name
|
|
137
|
+
consistency failures are returned as 503.
|
|
138
|
+
|
|
139
|
+
**Deferred by the MVP scope decision:** stale-on-error after invalidation/expiry, explicit cache
|
|
140
|
+
capacity limits, and stronger invalidation/in-flight refresh guarantees. Existing unexpired
|
|
141
|
+
configuration cache entries avoid configuration HTTP reads, but token retrieval remains an SDK
|
|
142
|
+
dependency. Once an entry expires or is invalidated, a configuration HTTP failure resolves to null;
|
|
143
|
+
the SDK does not retain the old value for fallback. Reliable failure-versus-absence distinction is
|
|
144
|
+
also deferred. These OSP-730 acceptance criteria are not claimed complete.
|
|
145
|
+
|
|
146
|
+
## Listing definitions
|
|
147
|
+
|
|
148
|
+
```http
|
|
149
|
+
GET /audit/v1/case-service/actions
|
|
150
|
+
Authorization: Bearer <token with audit-reader>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Returns a JSON array, with each action's `name` plus its definition fields. Optional absent
|
|
154
|
+
`resourceType`, `description`, and `metadataSchema` remain omitted.
|
|
155
|
+
|
|
156
|
+
| Status | Meaning |
|
|
157
|
+
| ------ | --------------------------------------------------------------------------------- |
|
|
158
|
+
| 200 | Resolved definitions; `[]` means registered but empty. |
|
|
159
|
+
| 400 | Invalid application/namespace or tenant ID format. |
|
|
160
|
+
| 401 | Not authenticated. |
|
|
161
|
+
| 403 | No `audit-reader`, or a tenant caller attempted to select a different tenant. |
|
|
162
|
+
| 404 | Neither scope supplied a catalog; this can also result from SDK-handled failures. |
|
|
163
|
+
| 503 | A propagated SDK error or application-name consistency failure; retry. |
|
|
164
|
+
|
|
165
|
+
`audit-reader` is tenant-wide: callers can read any namespace in their tenant, not only their own.
|
|
166
|
+
A Core caller with the role can select a tenant via
|
|
167
|
+
`?tenantId=urn:ads:platform:tenant-service:v2:/tenants/<id>`. A Core request without tenant context
|
|
168
|
+
reads Core catalogs only. The service registers this role for tenant provisioning; existing tenants
|
|
169
|
+
still need their normal role provisioning/assignment process.
|
|
170
|
+
|
|
171
|
+
The catalog governs future write classification, not history access. Removing a definition performs
|
|
172
|
+
no audit-record deletion. History readability after deregistration must also be verified when the
|
|
173
|
+
history endpoint/storage work is integrated; this scaffold has no history API.
|
|
@@ -15,22 +15,76 @@ client `urn:ads:platform:calendar-service`
|
|
|
15
15
|
|
|
16
16
|
| name | description |
|
|
17
17
|
|:-|:-|
|
|
18
|
-
| calendar-admin | Administrator role for calendar service. This role allows a user to
|
|
18
|
+
| calendar-admin | Administrator role for calendar service. This role allows a user to create, update, and delete the tenant's calendar definitions, and to read and update events in any calendar. It is part of the tenant-admin composite role. |
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
`calendar-admin` is a Keycloak client role. It is created under the `urn:ads:platform:calendar-service` client when a tenant realm is created, and tenant administrators have it through the `tenant-admin` composite role. If your realm does not include it (for example, the realm was created before calendar service was available), add it from the *Service roles* tab of Access service in tenant administration. See [Access management](../important-notes.md#access-management).
|
|
21
|
+
|
|
22
|
+
Access to events is primarily controlled by each calendar's `readRoles` and `updateRoles`. Read roles grant access to private events and their attendees; update roles also grant permission to create, update, and delete events and attendees. `calendar-admin` grants both for all calendars.
|
|
21
23
|
|
|
22
24
|
## Concepts
|
|
23
25
|
### Dates
|
|
24
26
|
Calendar service provides informational endpoints for Dates that includes information like which days are business days and which are holidays.
|
|
25
27
|
|
|
26
28
|
### Calendar
|
|
27
|
-
|
|
29
|
+
A calendar is a container for *events*. Each calendar has a name, display name, and description, which are publicly accessible, and the `readRoles` and `updateRoles` that control access to its events.
|
|
30
|
+
|
|
31
|
+
Calendar definitions are stored in the [configuration service](configuration-service.md) under the `platform:calendar-service` namespace and name. Each definition has a `source`:
|
|
32
|
+
- `tenant` calendars are created and managed by the tenant using the calendar service API or the calendar service page in tenant administration.
|
|
33
|
+
- `core` calendars are registered by platform services, such as the `form-intake` calendar of form service. Tenants can use core calendars but cannot change them; they are view-only in tenant administration.
|
|
34
|
+
|
|
35
|
+
| Method | Path | Description | Required role |
|
|
36
|
+
|:-|:-|:-|:-|
|
|
37
|
+
| `GET` | `/calendar/v1/calendars` | Lists calendar definitions with their `source`. Anonymous requests only receive core calendars. | None |
|
|
38
|
+
| `GET` | `/calendar/v1/calendars/{name}` | Retrieves a calendar. | None |
|
|
39
|
+
| `POST` | `/calendar/v1/calendars` | Creates a tenant calendar. Returns 201 with the calendar. | `calendar-admin` |
|
|
40
|
+
| `PUT` | `/calendar/v1/calendars/{name}` | Replaces a tenant calendar. Returns 200 with the calendar. | `calendar-admin` |
|
|
41
|
+
| `DELETE` | `/calendar/v1/calendars/{name}` | Deletes a tenant calendar that has no events. Returns 204. | `calendar-admin` |
|
|
42
|
+
|
|
43
|
+
`calendar-admin` is sufficient to manage tenant calendars; `configuration-admin` is not required. Anonymous requests for a specific calendar, including its public events, must identify the tenant by name using the `tenant` query parameter. Platform (core) users specify the tenant using the `tenantId` query parameter.
|
|
44
|
+
|
|
45
|
+
Create and update requests take a body with the following properties; other properties are not allowed.
|
|
46
|
+
|
|
47
|
+
| property | required | description |
|
|
48
|
+
|:-|:-|:-|
|
|
49
|
+
| `name` | yes | Up to 50 letters, numbers, spaces, hyphens, or underscores. On update, this must match `{name}` in the path. |
|
|
50
|
+
| `displayName` | yes | Display name of up to 32 characters; cannot be blank. |
|
|
51
|
+
| `description` | no | Description of up to 250 characters. |
|
|
52
|
+
| `readRoles` | yes | Roles that can read private events and attendees. Can be an empty array. |
|
|
53
|
+
| `updateRoles` | yes | Roles that can read and change events and attendees. Can be an empty array. |
|
|
54
|
+
|
|
55
|
+
Create, update, and delete requests return:
|
|
56
|
+
- 400 if the request body or calendar name is invalid.
|
|
57
|
+
- 401 if the request is not authenticated.
|
|
58
|
+
- 403 if the user does not have the `calendar-admin` role in the tenant.
|
|
59
|
+
- 404 on update or delete if the tenant has no calendar with that name. Core calendars cannot be updated or deleted.
|
|
60
|
+
- 409 on create if a tenant or core calendar with the name already exists, or on delete if the calendar has events.
|
|
61
|
+
- 502 if the configuration service is unavailable.
|
|
62
|
+
|
|
63
|
+
Successful changes signal `calendar-definition-created`, `calendar-definition-updated`, and `calendar-definition-deleted` [domain events](event-service.md). Each event includes the calendar definition and the user who made the change.
|
|
28
64
|
|
|
29
65
|
### Calendar event
|
|
30
|
-
|
|
66
|
+
Calendar events represent a scheduled activity. Each event has some basic name and description information as well as start and end time. Events can be made public so that anonymous users can read their fields; their attendees remain accessible only to authorized users.
|
|
67
|
+
|
|
68
|
+
### Recurring event
|
|
69
|
+
An event can optionally repeat by including a `recurrence`. The model is a subset of the iCalendar (RFC 5545) recurrence rule:
|
|
70
|
+
|
|
71
|
+
| Property | Description |
|
|
72
|
+
|---|---|
|
|
73
|
+
| `frequency` | `daily`, `weekly`, `monthly`, or `yearly`. Monthly and yearly use the day of the event start; months or years without that day (e.g. the 31st, Feb 29) are skipped. |
|
|
74
|
+
| `interval` | Optional, defaults to 1. For example, `weekly` with `interval: 2` is every two weeks. |
|
|
75
|
+
| `daysOfWeek` | Optional, weekly only. Values from `MO`, `TU`, `WE`, `TH`, `FR`, `SA`, `SU`. Must include the day of the event start. |
|
|
76
|
+
| `end.until` | Optional. Last date (inclusive) that an occurrence can start. |
|
|
77
|
+
| `end.count` | Optional. Number of occurrences, including the first. Can't be used with `until`. |
|
|
78
|
+
|
|
79
|
+
The event `start` and `end` are the first occurrence. Occurrences are generated in Mountain time and keep the same local time across daylight saving changes.
|
|
80
|
+
|
|
81
|
+
- Retrieving events with `from` and `to` returns each occurrence in the range. Occurrences have the `id` of the recurring event and a `recurrenceId` with the original start of the occurrence.
|
|
82
|
+
- Retrieving events without `from` and `to` returns each recurring event once.
|
|
83
|
+
- Updating or deleting the event applies to all occurrences.
|
|
84
|
+
- `DELETE /calendar/v1/calendars/{name}/events/{id}/occurrences/{date}` cancels one occurrence. Cancelled occurrences are listed in `recurrence.exclusions` of the event and can't be restored.
|
|
31
85
|
|
|
32
86
|
### Attendee
|
|
33
|
-
Attendees represent people attending a particular *event*.
|
|
87
|
+
Attendees represent people attending a particular *event*. Blank attendees (no name or email) can be created to represent available appointment slots.
|
|
34
88
|
|
|
35
89
|
## Code examples
|
|
36
90
|
### Getting business days
|
|
@@ -53,6 +107,37 @@ Calendar service API provides information endpoints for dates, including which d
|
|
|
53
107
|
} = await response.json();
|
|
54
108
|
```
|
|
55
109
|
|
|
110
|
+
### Creating a calendar
|
|
111
|
+
Requires the `calendar-admin` role.
|
|
112
|
+
```typescript
|
|
113
|
+
const calendar = {
|
|
114
|
+
name: 'site-inspections',
|
|
115
|
+
displayName: 'Site inspections',
|
|
116
|
+
description: 'Calendar of scheduled site inspections.',
|
|
117
|
+
readRoles: ['inspection-viewer'],
|
|
118
|
+
updateRoles: ['inspection-scheduler'],
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const response = await fetch(
|
|
122
|
+
'https://calendar-service.adsp.alberta.ca/calendar/v1/calendars',
|
|
123
|
+
{
|
|
124
|
+
method: 'POST',
|
|
125
|
+
headers: {
|
|
126
|
+
'Authorization': `Bearer ${accessToken}`,
|
|
127
|
+
'Content-Type': 'application/json',
|
|
128
|
+
},
|
|
129
|
+
body: JSON.stringify(calendar),
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
const {
|
|
134
|
+
urn,
|
|
135
|
+
name,
|
|
136
|
+
displayName,
|
|
137
|
+
source,
|
|
138
|
+
} = await response.json();
|
|
139
|
+
```
|
|
140
|
+
|
|
56
141
|
### Creating a calendar event
|
|
57
142
|
```typescript
|
|
58
143
|
const calendarEvent = {
|
|
@@ -84,3 +169,40 @@ Calendar service API provides information endpoints for dates, including which d
|
|
|
84
169
|
isPublic,
|
|
85
170
|
} = await response.json();
|
|
86
171
|
```
|
|
172
|
+
|
|
173
|
+
### Creating a recurring calendar event
|
|
174
|
+
```typescript
|
|
175
|
+
const calendarEvent = {
|
|
176
|
+
name: 'Team meeting',
|
|
177
|
+
start: '2026-09-29T10:00:00-06:00',
|
|
178
|
+
end: '2026-09-29T11:00:00-06:00',
|
|
179
|
+
recurrence: {
|
|
180
|
+
frequency: 'weekly',
|
|
181
|
+
daysOfWeek: ['TU'],
|
|
182
|
+
end: { until: '2026-12-15' },
|
|
183
|
+
},
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
const response = await fetch(
|
|
187
|
+
`https://calendar-service.adsp.alberta.ca/calendar/v1/calendars/${calendar}/events`,
|
|
188
|
+
{
|
|
189
|
+
method: 'POST',
|
|
190
|
+
headers: {
|
|
191
|
+
'Authorization': `Bearer ${accessToken}`,
|
|
192
|
+
'Content-Type': 'application/json',
|
|
193
|
+
},
|
|
194
|
+
body: JSON.stringify(calendarEvent),
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
const { id } = await response.json();
|
|
199
|
+
|
|
200
|
+
// Cancel the October 13 occurrence only.
|
|
201
|
+
await fetch(
|
|
202
|
+
`https://calendar-service.adsp.alberta.ca/calendar/v1/calendars/${calendar}/events/${id}/occurrences/2026-10-13`,
|
|
203
|
+
{
|
|
204
|
+
method: 'DELETE',
|
|
205
|
+
headers: { 'Authorization': `Bearer ${accessToken}` },
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
```
|
|
@@ -6,66 +6,73 @@ parent: Services
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Event service
|
|
9
|
+
|
|
9
10
|
Event service allows consumers to send domain events. These events can be used to support additional capabilities aside from the application itself; out of the box, the event service logs domain events to the event log which can be used for traceability of domain operations.
|
|
10
11
|
|
|
11
12
|
## Client roles
|
|
13
|
+
|
|
12
14
|
client `urn:ads:platform:event-service`
|
|
13
15
|
|
|
14
|
-
| name
|
|
15
|
-
|
|
16
|
+
| name | description |
|
|
17
|
+
| :----------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
16
18
|
| event-sender | Sender role for event service. This role is used to allow a service account to send domain events via the event service. Note that the account with the role will be able to send any domain event including platform defined events. |
|
|
19
|
+
| event-reader | Reader role for event service. This role is used to allow users to query the event log, including counting events matching search criteria. It is part of the tenant-admin composite role. |
|
|
17
20
|
|
|
18
21
|
## Concepts
|
|
22
|
+
|
|
19
23
|
### Event definition
|
|
20
|
-
|
|
24
|
+
|
|
25
|
+
Event definition is an optional metadata description of a _domain event_ (identified by a specific namespace and name). They are used for downstream capabilities. For example, the payload schema description allows the [notification service](notification-service.md) to validate variables within notification message templates. Event definitions are configured in the [configuration service](configuration-service.md) under the `platform:event-service` namespace and name.
|
|
21
26
|
|
|
22
27
|
### Event
|
|
28
|
+
|
|
23
29
|
Domain events represent key changes at a domain model level. For example, an intake application process could include events like: application draft created, application submitted, application processing started, application processing completed.
|
|
24
30
|
|
|
25
31
|
### Event log
|
|
26
|
-
|
|
32
|
+
|
|
33
|
+
Event log records all _events_ emitted via the event service and keeps basic metrics including a count of different events. These metrics can represent key domain metrics; in the intake application example, the count of application submitted events represents the volume of applications.
|
|
27
34
|
|
|
28
35
|
## Code examples
|
|
36
|
+
|
|
29
37
|
### Configure an event definition
|
|
38
|
+
|
|
30
39
|
Event definitions are configured using the [configuration service](configuration-service.md). Note that new configuration may take up to 15 mins to apply.
|
|
31
40
|
|
|
32
41
|
```typescript
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
await fetch(
|
|
56
|
-
`${configurationServiceUrl}/configuration/v2/configuration/platform/event-service`,
|
|
57
|
-
{
|
|
58
|
-
method: 'PATCH',
|
|
59
|
-
headers: {
|
|
60
|
-
'Authorization': `Bearer ${accessToken}`,
|
|
61
|
-
'Content-Type': 'application/json'
|
|
42
|
+
const configurationServiceUrl = 'https://configuration-service.adsp.alberta.ca';
|
|
43
|
+
const request = {
|
|
44
|
+
operation: 'UPDATE',
|
|
45
|
+
update: {
|
|
46
|
+
'domain-service': {
|
|
47
|
+
name: 'domain-service',
|
|
48
|
+
definitions: {
|
|
49
|
+
'domain-event': {
|
|
50
|
+
name: 'domain-event',
|
|
51
|
+
description: 'Signalled on significant domain state change.',
|
|
52
|
+
payloadSchema: {
|
|
53
|
+
type: 'object',
|
|
54
|
+
properties: {
|
|
55
|
+
value: { type: 'string' },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
62
59
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
await fetch(`${configurationServiceUrl}/configuration/v2/configuration/platform/event-service`, {
|
|
65
|
+
method: 'PATCH',
|
|
66
|
+
headers: {
|
|
67
|
+
Authorization: `Bearer ${accessToken}`,
|
|
68
|
+
'Content-Type': 'application/json',
|
|
69
|
+
},
|
|
70
|
+
body: JSON.stringify(request),
|
|
71
|
+
});
|
|
66
72
|
```
|
|
67
73
|
|
|
68
74
|
### Send an event
|
|
75
|
+
|
|
69
76
|
```typescript
|
|
70
77
|
const event = {
|
|
71
78
|
namespace: 'support-program',
|
|
@@ -100,23 +107,43 @@ Event definitions are configured using the [configuration service](configuration
|
|
|
100
107
|
```
|
|
101
108
|
|
|
102
109
|
### Search the event log
|
|
110
|
+
|
|
103
111
|
The event log is stored as a value (event-service:event) in the [value service](value-service.md) and can be queried using the value API.
|
|
104
112
|
|
|
105
113
|
```typescript
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
const valueServiceUrl = 'https://value-service.adsp.alberta.ca';
|
|
115
|
+
const top = 50;
|
|
116
|
+
const timestampMin = `2021-10-10T12:00:00Z`;
|
|
109
117
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
const response = await fetch(
|
|
119
|
+
`${valueServiceUrl}/value/v1/event-service/values/event?top=${top}×tampMin=${timestampMin}`,
|
|
120
|
+
{
|
|
121
|
+
method: 'GET',
|
|
122
|
+
headers: { Authorization: `Bearer ${accessToken}` },
|
|
123
|
+
},
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
const { results, page } = await response.json();
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Count events in the event log
|
|
130
|
+
|
|
131
|
+
The count of events matching the event log search criteria is available directly from the event service, so
|
|
132
|
+
consumers do not need to use the value API. Namespace and name are each optional and independent of one another;
|
|
133
|
+
other supplied criteria (timestamp range, correlation ID) are combined with namespace and name when determining
|
|
134
|
+
the count.
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
const eventServiceUrl = 'https://event-service.adsp.alberta.ca';
|
|
138
|
+
const timestampMin = `2021-10-10T12:00:00Z`;
|
|
139
|
+
|
|
140
|
+
const response = await fetch(
|
|
141
|
+
`${eventServiceUrl}/event/v1/events/count?namespace=application-events×tampMin=${timestampMin}`,
|
|
142
|
+
{
|
|
143
|
+
method: 'GET',
|
|
144
|
+
headers: { Authorization: `Bearer ${accessToken}` },
|
|
145
|
+
},
|
|
146
|
+
);
|
|
117
147
|
|
|
118
|
-
|
|
119
|
-
results,
|
|
120
|
-
page,
|
|
121
|
-
} = await response.json();
|
|
148
|
+
const { count } = await response.json();
|
|
122
149
|
```
|
|
@@ -15,9 +15,11 @@ client `urn:ads:platform:form-service`
|
|
|
15
15
|
|
|
16
16
|
| name | description |
|
|
17
17
|
|:-|:-|
|
|
18
|
-
| form-admin | Administrator role for form service. This role allows a user to query and unlock forms. |
|
|
18
|
+
| form-admin | Administrator role for form service. This role allows a user to query and unlock forms, and to manage data registers. |
|
|
19
19
|
| intake-application | Intake application role for form service. This role is used to grant a service account the ability to retrieve draft forms and submit forms on behalf of an anonymous applicant. |
|
|
20
20
|
|
|
21
|
+
The data register API also accepts the configuration service role `urn:ads:platform:configuration-service:configuration-admin`, which tenant administrators have by default.
|
|
22
|
+
|
|
21
23
|
|
|
22
24
|
## Concepts
|
|
23
25
|
### Form definition
|
|
@@ -29,6 +31,43 @@ Form represents a particular instance of an application including the informatio
|
|
|
29
31
|
### Draft expiry
|
|
30
32
|
Draft forms include an expiry process so that information entered into draft forms are purged if the draft is abandoned. If a draft form is not accessed for some expiry period, the form is locked and the applicant is notified. In this state, the form cannot be accessed by the applicant but can be unlocked by an administrator. If the form remains in a locked state for some additional expiry period, the form is deleted so that applicant information is not unnecessarily retained.
|
|
31
33
|
|
|
34
|
+
### Data register
|
|
35
|
+
Data register is a named list of values used to populate drop downs and other choice controls in forms. Each value is either a string or an object, such as a `label` and `value` pair. Forms reference a register by its URN in the UI schema. See the [data registers tutorial](../tutorials/form-service/data-registers.md) for how to use registers in a form.
|
|
36
|
+
|
|
37
|
+
## Data registers
|
|
38
|
+
Form service provides an API to manage the data registers of a tenant. Tenant administrators can also manage them in the tenant management webapp under Form service → Register data.
|
|
39
|
+
|
|
40
|
+
Form service stores each register in the [configuration service](configuration-service.md) in two parts:
|
|
41
|
+
- **Definition**: the `data-register:<name>` entry in the tenant's `platform:configuration-service` configuration. It holds the register's schema and description.
|
|
42
|
+
- **Entries**: the configuration with namespace `data-register` and the register's name. It holds the array of values.
|
|
43
|
+
|
|
44
|
+
### Endpoints
|
|
45
|
+
All endpoints require a user with the `urn:ads:platform:form-service:form-admin` role or the `urn:ads:platform:configuration-service:configuration-admin` role, in the context of a tenant. A core user must specify the tenant with the `tenantId` query parameter. Every endpoint returns 401 if the user is not authenticated, 403 if the user has neither role, and 502 if configuration service fails.
|
|
46
|
+
|
|
47
|
+
| Method | Path | Description | Responses |
|
|
48
|
+
|:-|:-|:-|:-|
|
|
49
|
+
| GET | `/form/v1/registers` | Lists the tenant's data registers. | 200 |
|
|
50
|
+
| GET | `/form/v1/registers/{name}` | Gets a data register. | 200, 404 |
|
|
51
|
+
| POST | `/form/v1/registers` | Creates a data register from `name`, `description` and `entries`. `entries` defaults to an empty array. | 201, 400, 409 |
|
|
52
|
+
| PATCH | `/form/v1/registers/{name}` | Updates `description` and/or `entries`. A field that is not sent is left unchanged. | 200, 400, 404 |
|
|
53
|
+
| DELETE | `/form/v1/registers/{name}` | Deletes the data register's entries and definition. | 204, 404 |
|
|
54
|
+
|
|
55
|
+
Registers are returned as `{ namespace: 'data-register', name, description, entries }`.
|
|
56
|
+
|
|
57
|
+
### Rules
|
|
58
|
+
- **Existence**: a register exists only when both its definition (with an array schema) and its entries exist. A register missing either part is not listed. It returns 404 and does not block a create with the same name. This means a create or delete can be retried after a partial failure.
|
|
59
|
+
- **Active revision**: `entries` come from the active revision of the configuration, or from the latest revision if none is active. The form app uses the same revision at runtime.
|
|
60
|
+
- **Writing entries publishes them**: configuration service only writes to the latest revision. When a create or update writes `entries` and an older revision is pinned as active, the pin moves to the revision just written, so the change is live straight away. The older revision stays in the revision history and can be pinned again in configuration service. Updating only `description` leaves the pin alone.
|
|
61
|
+
- **Names**: 1 to 50 letters, numbers, spaces, hyphens and underscores. Names can't start or end with a space. Names are case sensitive.
|
|
62
|
+
- **Entries**: an array whose items are all strings or objects.
|
|
63
|
+
- **URN**: forms reference a register as `urn:ads:platform:configuration:v2:/configuration/data-register/<name>`. The name is not URL encoded in the URN.
|
|
64
|
+
- **Deleting removes data**: a delete removes the register's entries, including their revision history, and its definition. Forms that reference the register lose its options.
|
|
65
|
+
- **Anonymous access**: registers are not readable by anonymous applicants unless `anonymousRead` is set on the definition in configuration service. An update keeps this setting, but the API does not set it.
|
|
66
|
+
- **Errors**: when configuration service rejects a request, form service returns 400. When configuration service fails or denies access, form service returns 502.
|
|
67
|
+
- **Service account role**: form service calls configuration service with its own service account. Deleting a register and moving the active revision need that account to have the configuration service `configuration-admin` role.
|
|
68
|
+
|
|
69
|
+
Form service does not emit its own events for data registers. Configuration service emits `configuration-updated` and `configuration-deleted` for the underlying configuration.
|
|
70
|
+
|
|
32
71
|
## Code examples
|
|
33
72
|
### Create a draft form for an anonymous applicant
|
|
34
73
|
```typescript
|
|
@@ -22,76 +22,88 @@ client `urn:ads:platform:token-handler`
|
|
|
22
22
|
### Clients
|
|
23
23
|
Clients correspond to OAuth clients (OIDC relying party) in [access service](access-service.md). The token handler requires configuration of clients to support client registration in access service. Registration creates confidential clients (with client ID and secret) which are used to authenticate users.
|
|
24
24
|
|
|
25
|
-
Clients are configured in the [configuration service](configuration-service.md) under the `platform:token-handler` namespace and name.
|
|
25
|
+
Clients are configured in the [configuration service](configuration-service.md) under the `platform:token-handler` namespace and name. The frontend application passes the OIDC callback URL at auth initiation time via the `?callbackUrl=` query parameter on the sign in endpoint (e.g. `https://myapp.example.ca/token-handler/clients/my-client/auth?callbackUrl=https://myapp.example.ca/token-handler/clients/my-client/callback`; see [Reverse proxy](#reverse-proxy)). This means no callback URL needs to be stored in the token handler configuration, and the same configuration works across all environments including local development. Redirect URI validation is handled by access service; the `callbackUrl` provided must be registered in the Keycloak client's *Valid Redirect URIs*.
|
|
26
|
+
|
|
27
|
+
> **Deprecated fallback:** Existing configurations with `authCallbackUrl` set will continue to work — the token handler extracts the path from `authCallbackUrl` and combines it with the incoming request's host and protocol when no `?callbackUrl=` query parameter is provided.
|
|
28
|
+
|
|
29
|
+
### Core (platform) clients
|
|
30
|
+
Clients defined in the core configuration (the platform's own `platform:token-handler` configuration) are available to every tenant, in addition to the tenant's own clients. This allows a platform application, such as the preview in the builder app, to use the token handler without each tenant defining the client. Core clients can include `description` and `redirectUris`, and a tenant cannot change or replace them: when a tenant client has the same ID as a core client, the core client is used. The tenant administrator app prevents adding a client with the ID of a core client, so a collision can only occur for a tenant client that was added before the core client.
|
|
31
|
+
|
|
32
|
+
Each tenant still has its own registration of a core client, because registration creates a Keycloak client in the tenant's realm and the client secret is stored per tenant. A tenant administrator registers the client once from the token handler tab (core clients are listed there as platform clients, with their targets and registration status), or by calling the register endpoint. The `redirectUris` of the client configuration are applied as the *Valid Redirect URIs* of the Keycloak client at registration, together with the `callbackUrl` if one is passed. Changing `redirectUris` later does not change clients that are already registered; those are updated in the Keycloak admin console or with the update endpoint.
|
|
33
|
+
|
|
34
|
+
The builder app's preview uses a core client, `builder-preview`, that token handler registers in the core configuration on startup when the `BUILDER_APP_URL` environment variable (the public URL of the builder app) is set. Its redirect URI is on the builder app's origin (`<BUILDER_APP_URL>/token-handler/clients/builder-preview/callback`), so each environment sets its own value. The client is written on every startup, so changes to it are made in the token handler rather than in the core configuration.
|
|
35
|
+
|
|
36
|
+
Administrators can list the clients available to their tenant, core and tenant clients together with their registration status, with `GET /token-handler/v1/clients`. The `core` property of each client indicates whether it is from the core configuration, and `?core=true` returns only core clients.
|
|
26
37
|
|
|
27
38
|
### Targets
|
|
28
39
|
Targets represent upstream services or APIs that the token handler can proxy requests to. For requests from the frontend to the configured targets, token handler will retrieve a valid access token based on the current user session and include it as a bearer token for the upstream request. Target upstream is configured as an ADSP service or API URN, and the URN must have an entry in the [directory service](directory-service.md). Targets are configured as part of clients in the configuration service under the `platform:token-handler` namespace and name.
|
|
29
40
|
|
|
41
|
+
The upstream request only carries the user's access token for authentication. Token handler does not pass on the session cookie, CSRF token or tenant headers of the incoming request, and cookies set by the upstream are not passed back to the frontend. Request paths must stay within the target's base path; paths with dot segments (`.` or `..`) or encoded path separators are rejected as invalid, and the query string is passed through unchanged.
|
|
42
|
+
|
|
43
|
+
Target upstreams are resolved from the directory, where tenant administrators can register entries for their own namespace. The operator of token handler can restrict the hosts that target upstreams may use by setting the `UPSTREAM_ALLOWED_DOMAINS` environment variable to a comma-separated list of host names (e.g. `form-service,api.example.ca`) and wildcards for subdomains (e.g. `*.apps.example.ca`, which does not include `apps.example.ca` itself). An entry can include a port (e.g. `form-service:3333`), in which case the upstream must use that port (the default port for the scheme if the URL has none); an entry without a port allows any port on the host, so list the ports of internal services. When it is set, requests to a target whose upstream does not resolve to an allowed host are rejected. Upstreams in the platform namespace (`urn:ads:platform:...`) are not checked, because only platform administrators can register entries in it, so platform services can use cluster internal URLs without listing them; every other namespace is checked, so tenant entries cannot target internal hosts. Only http and https URLs without credentials are accepted, the scheme is not otherwise restricted, and IPv4 addresses must be listed explicitly. Avoid wildcards for public suffixes (e.g. `*.co.uk`), which allow any domain under them. Host names are matched as they appear in the URL and are not resolved. A wildcard matches subdomains at any depth, so `*.example.ca` allows `www.example.ca` and `a.b.example.ca` but not `example.ca`. When the value is set in a YAML file, such as a ConfigMap, quote it if it starts with `*`, e.g. `'*.example.ca,*.example.org'`. When it is not set, upstreams are not restricted and token handler logs a warning on startup. The setting is not part of the tenant configuration, so tenant administrators cannot change it.
|
|
44
|
+
|
|
45
|
+
### Builder app preview
|
|
46
|
+
The builder app uses the token handler so that the app in its preview can make platform API requests as the signed in user, without holding a token. This is the pattern for a dedicated deployment of an app as well: a static frontend, a `/token-handler` proxy on the app's own origin, a client and its targets.
|
|
47
|
+
|
|
48
|
+
- **Client:** token handler registers the `builder-preview` core client when `BUILDER_APP_URL` is set. Its targets are `form-service` and `file-service`, so those are the services that previewed apps can call. A tenant administrator registers the client once for the tenant in the token handler tab of the tenant management app; until then the builder shows a message that it is required.
|
|
49
|
+
- **Proxy:** the builder's web server proxies `/token-handler/` to the token handler on the builder's origin, so the session cookie is set for the builder's site and the preview, which is served from the builder's origin, gets it.
|
|
50
|
+
- **Sign in:** when the builder loads without a token handler session it redirects to the client's sign in, which returns straight back because the user is already signed in to access service. The preview code does not sign in or handle tokens.
|
|
51
|
+
- **Requests:** `/token-handler/targets/<target>/<service path>`, for example `/token-handler/targets/file-service/file/v1/files`. The React template's `apiFetch` adds the CSRF header that requests other than GET need.
|
|
52
|
+
- **Local development:** the builder's dev server proxies `/token-handler` to the dev token handler and removes the `Secure` flag from its cookies, because Safari does not store `Secure` cookies for `http://localhost`. `http://localhost:4200/token-handler/clients/builder-preview/callback` must be in the client's valid redirect URIs in the tenant's realm.
|
|
53
|
+
- **Limits:** the preview runs on the builder's origin, so the app code shares the origin, and the user's builder session, with the builder. Requests run as the builder's user, limited by the roles that user has. Adding a target to `builder-preview` makes that service available to every previewed app.
|
|
54
|
+
|
|
55
|
+
### Logout
|
|
56
|
+
Frontend applications log users out by navigating the browser to `GET /token-handler/v1/clients/{clientId}/logout`, which can be a plain link. This ends the user's session in token handler, discarding the stored tokens, and redirects to the root of the site. By default this does not end the user's session in [access service](access-service.md), so signing in again from the same browser can complete without entering credentials.
|
|
57
|
+
|
|
58
|
+
Set `keycloakLogout` to `true` on the client to also end the user's single sign on session in access service, so that tokens issued for the session can no longer be refreshed. Logout then redirects the browser to the access service end session endpoint, which returns the browser to the root of the site that the user logged in from (the root of the host of the `callbackUrl` used at login). The client in access service must have that URL (e.g. `https://myapp.example.ca/`) in its *Valid post logout redirect URIs*; otherwise access service shows an error page and the user is not logged out of access service. For this reason it is off by default, and should be enabled once the post logout redirect URI is configured. Sessions that were started before the ID token and site were kept in the session are logged out of token handler only. Requests that another site caused the browser to make (`Sec-Fetch-Site: cross-site`) only end the token handler session, so another site cannot sign users out of access service.
|
|
59
|
+
|
|
30
60
|
### Cross-site request forgery (CSRF)
|
|
31
61
|
The token handler uses sessions and cookies which can be vulnerable to CSRF attacks. A Cookie-to-header token is used as CSRF protection. Frontend applications need to read the value of the `XSRF-TOKEN` cookie and include it as the value of the `X-XSRF-TOKEN` header in requests to *targets*; this behavior is built into [Angular](https://angular.io/guide/http-security-xsrf-protection).
|
|
32
62
|
|
|
33
63
|
### Reverse proxy
|
|
34
64
|
Frontend applications must use a reverse proxy to proxy requests to the token handler from the frontend site domain. The token handler sets a session cookie without the domain attribute, and browsers will associate the cookie with the domain of the authorization callback request. Consequently the cookie will only be included on subsequent requests to the site if that callback request is to the same domain as the rest of the site.
|
|
35
65
|
|
|
36
|
-
|
|
66
|
+
All routes of the token handler are under the `/token-handler/v1` path of its URL, so a single proxy location is enough. The frontend can use any path for it; the examples use `/token-handler`. The frontend then uses these paths:
|
|
37
67
|
|
|
38
|
-
|
|
68
|
+
- Sign in: `/token-handler/clients/${clientId}/auth?tenant=<tenant name>&callbackUrl=<callback URL>`
|
|
69
|
+
- Sign in callback: `/token-handler/clients/${clientId}/callback`; the callback URL passed when signing in is this path on the frontend site.
|
|
70
|
+
- Sign out: `/token-handler/clients/${clientId}/logout`
|
|
71
|
+
- Session information: `/token-handler/sessions`
|
|
72
|
+
- Targets: `/token-handler/targets/${targetId}/...`
|
|
39
73
|
|
|
40
|
-
|
|
41
|
-
location /auth {
|
|
42
|
-
proxy_pass <token handler URL>/token-handler/v1/clients/my-client;
|
|
43
|
-
proxy_set_header Host $host;
|
|
44
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
45
|
-
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
|
46
|
-
proxy_set_header X-Adsp-Tenant <Tenant URN e.g. urn:ads:platform:tenant-service:v2:/tenants/...>;
|
|
47
|
-
}
|
|
74
|
+
The sign in endpoint needs to know the tenant, which is the `tenant` query parameter or the `X-ADSP-TENANT` header. The frontend can hardcode the name of its tenant for the parameter, since the name is the same in every environment (a tenant URN is not). The tenant is kept in the session, so the callback endpoint does not need it. The reverse proxy can set the header to restrict the frontend domain to one tenant, and the header is used instead of the query parameter if both are provided. The value is the name of the tenant (as it is, ignoring case, or in the kebab-case form that has hyphens in place of spaces, e.g. `my-tenant-name`) or a full tenant URN.
|
|
48
75
|
|
|
49
|
-
|
|
50
|
-
proxy_pass <token handler URL>/token-handler/v1/sessions;
|
|
51
|
-
proxy_set_header Host $host;
|
|
52
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
53
|
-
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
|
54
|
-
}
|
|
76
|
+
The proxy should also set the `X-Forwarded-For` and `X-Forwarded-Proto` headers, which the token handler uses for rate limiting and to mark cookies as secure. The `Host` header of the original request is not needed (except by clients that still use the deprecated `authCallbackUrl` fallback).
|
|
55
77
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
78
|
+
#### Nginx configuration example
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
location /token-handler/ {
|
|
82
|
+
proxy_pass <token handler URL>/token-handler/v1/;
|
|
83
|
+
proxy_ssl_server_name on;
|
|
59
84
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
60
85
|
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
|
61
86
|
}
|
|
62
87
|
```
|
|
63
88
|
|
|
89
|
+
`proxy_ssl_server_name` is needed when the token handler URL is HTTPS. Use `$scheme` for `X-Forwarded-Proto` if nginx terminates TLS itself. To restrict the frontend domain to one tenant, also add `proxy_set_header X-Adsp-Tenant "<tenant name>";` to the location. The client page in tenant management shows this configuration with the values of the client.
|
|
90
|
+
|
|
64
91
|
### Local development
|
|
65
92
|
There are some special considerations for local development workflows when using the token handler.
|
|
66
93
|
|
|
67
|
-
- Webpack DevServer proxy can be used to proxy requests to the token handler
|
|
68
|
-
-
|
|
69
|
-
- The token handler can only proxy requests to upstream services and APIs that are registered in directory service
|
|
94
|
+
- Webpack DevServer proxy can be used to proxy requests to the token handler. The frontend passes the `tenant` query parameter when it signs in, or the proxy can inject the `X-ADSP-TENANT` header; the tenant name can be used instead of the full URN.
|
|
95
|
+
- The frontend passes `?callbackUrl=http://localhost:<port>/token-handler/clients/<clientId>/callback` when redirecting to the sign in path for local development. Add this URL to the Keycloak client's *Valid Redirect URIs* directly in the access service admin console — no token handler configuration change is required.
|
|
96
|
+
- The token handler can only proxy requests to upstream services and APIs that are registered in directory service; i.e. local running instances of backends cannot be used. In practice, this means that when working with full stack applications, local development of the frontend will require a deployed instance of the backend.
|
|
70
97
|
|
|
71
98
|
#### Webpack DevServer proxy configuration example
|
|
72
99
|
|
|
73
100
|
```json
|
|
74
101
|
{
|
|
75
|
-
"/
|
|
76
|
-
"target": "<token handler URL
|
|
77
|
-
"secure": true,
|
|
78
|
-
"changeOrigin": true,
|
|
79
|
-
"pathRewrite": { "^/auth": "" },
|
|
80
|
-
"headers": {
|
|
81
|
-
"X-ADSP-TENANT": "<Tenant URN e.g. urn:ads:platform:tenant-service:v2:/tenants/...>"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"/sessions": {
|
|
85
|
-
"target": "<token handler URL>/token-handler/v1/sessions",
|
|
86
|
-
"secure": true,
|
|
87
|
-
"changeOrigin": true,
|
|
88
|
-
"pathRewrite": { "^/sessions": "" }
|
|
89
|
-
},
|
|
90
|
-
"/api": {
|
|
91
|
-
"target": "<token handler URL>/token-handler/v1/targets/my-upstream-api",
|
|
102
|
+
"/token-handler": {
|
|
103
|
+
"target": "<token handler URL>",
|
|
92
104
|
"secure": true,
|
|
93
105
|
"changeOrigin": true,
|
|
94
|
-
"pathRewrite": { "^/
|
|
106
|
+
"pathRewrite": { "^/token-handler": "/token-handler/v1" }
|
|
95
107
|
}
|
|
96
108
|
}
|
|
97
109
|
```
|
|
@@ -99,7 +111,7 @@ There are some special considerations for local development workflows when using
|
|
|
99
111
|
## Code examples
|
|
100
112
|
|
|
101
113
|
### Register a client
|
|
102
|
-
Registering a client creates a confidential client in access service and securely stores the associated client ID and secret in token handler. It is required before token handler can authenticate users using the client.
|
|
114
|
+
Registering a client creates a confidential client in access service and securely stores the associated client ID and secret in token handler. It is required before token handler can authenticate users using the client. The optional `authCallbackUrl` provided here is registered with access service as a valid redirect URI and is not stored in the token handler configuration. If it is not provided, the client is registered without redirect URIs, which must then be added to the client in access service (Keycloak) before users can sign in. Registering a client that is already registered replaces its registration: the previously registered client in access service is deleted, including any redirect URIs configured on it.
|
|
103
115
|
|
|
104
116
|
```typescript
|
|
105
117
|
const response = await fetch(
|
|
@@ -108,10 +120,12 @@ Registering a client creates a confidential client in access service and securel
|
|
|
108
120
|
method: 'POST',
|
|
109
121
|
headers: {
|
|
110
122
|
'Authorization': `Bearer ${accessToken}`,
|
|
123
|
+
'Content-Type': 'application/json',
|
|
111
124
|
},
|
|
112
|
-
body: {
|
|
113
|
-
registrationToken
|
|
114
|
-
|
|
125
|
+
body: JSON.stringify({
|
|
126
|
+
registrationToken,
|
|
127
|
+
authCallbackUrl: 'https://myapp.example.ca/token-handler/clients/my-client/callback',
|
|
128
|
+
}),
|
|
115
129
|
}
|
|
116
130
|
);
|
|
117
131
|
|
|
@@ -120,6 +134,32 @@ Registering a client creates a confidential client in access service and securel
|
|
|
120
134
|
} = await response.json();
|
|
121
135
|
```
|
|
122
136
|
|
|
137
|
+
### Update client registration
|
|
138
|
+
Updating a client's registration allows changing the registered redirect URIs in access service without creating a new client or invalidating existing sessions. This uses the management token stored from the original registration, so no external token is required.
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
const response = await fetch(
|
|
142
|
+
`https://adsp.alberta.ca/api/token-handler/v1/clients/${clientId}`,
|
|
143
|
+
{
|
|
144
|
+
method: 'PUT',
|
|
145
|
+
headers: {
|
|
146
|
+
'Authorization': `Bearer ${accessToken}`,
|
|
147
|
+
'Content-Type': 'application/json',
|
|
148
|
+
},
|
|
149
|
+
body: JSON.stringify({
|
|
150
|
+
redirectUris: [
|
|
151
|
+
'https://myapp.example.ca/token-handler/clients/my-client/callback',
|
|
152
|
+
'http://localhost:4200/token-handler/clients/my-client/callback',
|
|
153
|
+
],
|
|
154
|
+
}),
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
|
|
158
|
+
const {
|
|
159
|
+
updated
|
|
160
|
+
} = await response.json();
|
|
161
|
+
```
|
|
162
|
+
|
|
123
163
|
### Retrieving session information
|
|
124
164
|
Frontend application can determine if the user is logged in and access their session information via the sessions endpoint.
|
|
125
165
|
|
|
@@ -32,6 +32,9 @@ Value definitions are managed through the value service definitions API (`/value
|
|
|
32
32
|
- Creating a definition adds its namespace if it does not exist, and fails with a 409 if a tenant or core definition with the same namespace and name already exists.
|
|
33
33
|
- Deleting the last definition in a namespace removes the namespace.
|
|
34
34
|
|
|
35
|
+
> Counting events in the event log is exposed by the [event service](event-service.md#count-events-in-the-event-log).
|
|
36
|
+
> Consumers of the event log count should use that API rather than calling value service directly.
|
|
37
|
+
|
|
35
38
|
### Value
|
|
36
39
|
|
|
37
40
|
A value represents a particular time series stream. Each write results in a new record with a timestamp. It differs from a typical transactional record in that the record has no unique identity; instead it represents another entry in the set of entries for the value. Consumers can write scalars or json objects to values.
|
|
@@ -14,73 +14,62 @@ achieve this.
|
|
|
14
14
|
|
|
15
15
|
<h3 id="data-registers">Data registers</h3>
|
|
16
16
|
|
|
17
|
-
When
|
|
18
|
-
We have two options to accomplish this operation.
|
|
17
|
+
When a drop down needs a list of values, there are two options.
|
|
19
18
|
|
|
20
19
|
<ol>
|
|
21
20
|
<li>
|
|
22
|
-
|
|
21
|
+
Use an ADSP data register. You manage data registers in the tenant management webapp or through the form service API.
|
|
23
22
|
</li>
|
|
24
23
|
<li>
|
|
25
24
|
Provide a URL REST API endpoint to retrieve the list of values.
|
|
26
25
|
</li>
|
|
27
26
|
</ol>
|
|
28
27
|
|
|
29
|
-
### Using
|
|
28
|
+
### Using a data register
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
A data register is a named list of values. Each value is either a string or an object, for example an object with `label` and `value` properties.
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
#### Managing data registers in the tenant management webapp
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
"type": "array",
|
|
38
|
-
"items": {
|
|
39
|
-
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
"required": [],
|
|
42
|
-
"additionalProperties": true
|
|
43
|
-
}
|
|
44
|
-
```
|
|
34
|
+
Go to Form service → Register data tab.
|
|
45
35
|
|
|
46
|
-
|
|
36
|
+
- Click **Add register data** and enter a name, an optional description and the values. Names can contain letters, numbers, spaces, hyphens and underscores, can't start or end with a space, can be up to 50 characters long, and must be unique within your tenant. Enter the values separated by commas, new lines or semicolons, or select **Use JSON format** and enter a JSON array.
|
|
37
|
+
- Click the eye icon on a register to view its values and copy its URN.
|
|
38
|
+
- Click the edit icon on a register to change its values as a JSON array.
|
|
39
|
+
- Click the delete icon on a register to delete it. Forms that reference a deleted register lose its options.
|
|
47
40
|
|
|
48
|
-
|
|
49
|
-
a drop down for array object.
|
|
41
|
+
#### Managing data registers through the API
|
|
50
42
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
"label": {
|
|
61
|
-
"type": "string"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
43
|
+
You can also manage data registers through the form service API at `/form/v1/registers`. This requires the `form-admin` role or the configuration service `configuration-admin` role. See [Form service](/adsp-monorepo/services/form-service.html#data-registers) for the full API.
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
const response = await fetch('https://form-service.adsp.alberta.ca/form/v1/registers', {
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: {
|
|
49
|
+
Authorization: `Bearer ${token}`,
|
|
50
|
+
'Content-Type': 'application/json',
|
|
64
51
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
body: JSON.stringify({
|
|
53
|
+
name: 'provinces',
|
|
54
|
+
description: 'Canadian provinces',
|
|
55
|
+
entries: ['Alberta', 'British Columbia', 'Saskatchewan'],
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
69
58
|
```
|
|
70
59
|
|
|
71
|
-
|
|
60
|
+
#### Register values
|
|
72
61
|
|
|
73
|
-
This
|
|
62
|
+
This register holds string values:
|
|
74
63
|
|
|
75
64
|
```
|
|
76
65
|
[
|
|
77
66
|
"value1",
|
|
78
67
|
"value2",
|
|
79
|
-
"value3"
|
|
68
|
+
"value3"
|
|
80
69
|
]
|
|
81
70
|
```
|
|
82
71
|
|
|
83
|
-
This
|
|
72
|
+
This register holds objects with `label` and `value` properties:
|
|
84
73
|
|
|
85
74
|
```
|
|
86
75
|
[
|
|
@@ -88,14 +77,16 @@ This example maps to example 2 from the schema above that has "label" and "value
|
|
|
88
77
|
"label": "label 1",
|
|
89
78
|
"value": "value 1"
|
|
90
79
|
},
|
|
91
|
-
|
|
80
|
+
{
|
|
92
81
|
"label": "label 2",
|
|
93
82
|
"value": "value 2"
|
|
94
83
|
}
|
|
95
84
|
]
|
|
96
85
|
```
|
|
97
86
|
|
|
98
|
-
|
|
87
|
+
Each data register has a URN in the form `urn:ads:platform:configuration:v2:/configuration/data-register/<name>`. You use it in the UI schema to reference the register. Names with spaces are not encoded, so the URN is exactly what the Register data tab shows.
|
|
88
|
+
|
|
89
|
+
Once your data register is set up, go to the form editor and add it to your data and UI schemas for the drop down.
|
|
99
90
|
|
|
100
91
|
#### Data schema
|
|
101
92
|
|
|
@@ -117,9 +108,9 @@ Once you have configured the configuration service schema for your data register
|
|
|
117
108
|
|
|
118
109
|
For the UI schema there are two methods that you use to populate your drop down.
|
|
119
110
|
|
|
120
|
-
The first method is to
|
|
111
|
+
The first method is to reference a data register by its URN.
|
|
121
112
|
|
|
122
|
-
The example below shows
|
|
113
|
+
The example below shows the UI schema you would need.
|
|
123
114
|
|
|
124
115
|
```
|
|
125
116
|
{
|
|
@@ -128,12 +119,16 @@ The example below shows what the UI schema you would need.
|
|
|
128
119
|
"label": "Province",
|
|
129
120
|
"options": {
|
|
130
121
|
"register": {
|
|
131
|
-
"urn": "urn:ads:platform:configuration:v2:/configuration/
|
|
122
|
+
"urn": "urn:ads:platform:configuration:v2:/configuration/data-register/provinces"
|
|
132
123
|
}
|
|
133
124
|
}
|
|
134
125
|
}
|
|
135
126
|
```
|
|
136
127
|
|
|
128
|
+
You can also reference configuration in other namespaces, for example `urn:ads:platform:configuration:v2:/configuration/public-register/public-register-1`. Its configuration definition schema must be an array of strings or an array of objects. You set up these registers directly in configuration service. They aren't managed by the Register data tab or the form service API.
|
|
129
|
+
|
|
130
|
+
By default, only signed-in users can read a register. To use a register in a form that allows anonymous applicants, go to Configuration service → Definitions. Edit the register's definition, which has the namespace `data-register` and the register's name, and select **Allow anonymous access**. The Register data tab and the form service API keep this setting when they update a register, but they never set it.
|
|
131
|
+
|
|
137
132
|
Please refer to [Configuration service](/adsp-monorepo/services/configuration-service.html) for more details.
|
|
138
133
|
|
|
139
134
|
The second method is to use an external REST API endpoint to retrieve data to populate the drop down.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/adsp-sdk-mcp-server",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - MCP server for ADSP documentation and Node SDK reference lookup.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|
|
@@ -311,6 +311,46 @@ exports.SDK_REFERENCE = [
|
|
|
311
311
|
'set by configurationHandler as convenience wrappers.',
|
|
312
312
|
seeAlso: ['ServiceRegistration'],
|
|
313
313
|
},
|
|
314
|
+
// audit
|
|
315
|
+
{
|
|
316
|
+
name: 'auditDefinitions',
|
|
317
|
+
kind: 'function',
|
|
318
|
+
module: 'audit',
|
|
319
|
+
summary: 'Converts named audit action constants into definitions keyed by action name for catalog registration.',
|
|
320
|
+
details: 'auditDefinitions(actions: Record<string, AuditAction>): Record<string, AuditActionDefinition>\n\n' +
|
|
321
|
+
'Removes name from each definition and uses it as the catalog key. Throws for invalid or duplicate action names. ' +
|
|
322
|
+
'Does not register the catalog or emit audit records; pass the result through ServiceRegistration.serviceConfigurations.',
|
|
323
|
+
example: "auditDefinitions({\n" +
|
|
324
|
+
" UPDATE_CASE: {\n" +
|
|
325
|
+
" name: 'case.update', version: 1, category: 'administrative',\n" +
|
|
326
|
+
" severity: 'info', retentionClass: 'compliance',\n" +
|
|
327
|
+
" },\n" +
|
|
328
|
+
"});",
|
|
329
|
+
seeAlso: ['AuditAction', 'AuditActionDefinition', 'ServiceRegistration'],
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
name: 'AuditAction',
|
|
333
|
+
kind: 'interface',
|
|
334
|
+
module: 'audit',
|
|
335
|
+
summary: 'Named audit action constant accepted by auditDefinitions.',
|
|
336
|
+
details: 'interface AuditAction extends AuditActionDefinition { name: string; }',
|
|
337
|
+
seeAlso: ['AuditActionDefinition', 'auditDefinitions'],
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: 'AuditActionDefinition',
|
|
341
|
+
kind: 'interface',
|
|
342
|
+
module: 'audit',
|
|
343
|
+
summary: 'Classification and optional metadata schema for an action in an audit catalog.',
|
|
344
|
+
details: 'interface AuditActionDefinition {\n' +
|
|
345
|
+
' version: number;\n' +
|
|
346
|
+
" category: 'administrative' | 'runtime' | 'security' | 'data-access';\n" +
|
|
347
|
+
" severity: 'info' | 'warning' | 'critical';\n" +
|
|
348
|
+
' retentionClass: string; description?: string; resourceType?: string;\n' +
|
|
349
|
+
' captureChangeSet?: boolean; forwardToSiem?: boolean;\n' +
|
|
350
|
+
' metadataSchema?: Record<string, unknown>;\n' +
|
|
351
|
+
'}',
|
|
352
|
+
seeAlso: ['AuditAction', 'auditDefinitions'],
|
|
353
|
+
},
|
|
314
354
|
// event
|
|
315
355
|
{
|
|
316
356
|
name: 'EventService',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reference.js","sourceRoot":"","sources":["../../../../../libs/adsp-sdk-mcp-server/src/sdk-reference/reference.ts"],"names":[],"mappings":";;;AAaA;;;;GAIG;AACU,QAAA,aAAa,GAAmB;IA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OAAO;IACP;QACE,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,yFAAyF;QAClG,OAAO,EACL,2GAA2G;YAC3G,yBAAyB;YACzB,4GAA4G;YAC5G,6GAA6G;YAC7G,+FAA+F;YAC/F,sGAAsG;YACtG,mGAAmG;QACrG,OAAO,EACL,4DAA4D;YAC5D,gDAAgD;YAChD,qFAAqF;QACvF,OAAO,EAAE,CAAC,sBAAsB,CAAC;KAClC;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,8EAA8E;QACvF,OAAO,EACL,uEAAuE;YACvE,wGAAwG;YACxG,2GAA2G;QAC7G,OAAO,EAAE,CAAC,eAAe,CAAC;KAC3B;IAED,QAAQ;IACR;QACE,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,sGAAsG;QAC/G,OAAO,EAAE,kDAAkD;KAC5D;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,2EAA2E;QACpF,OAAO,EAAE,6HAA6H;QACtI,OAAO,EAAE,0BAA0B;KACpC;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"reference.js","sourceRoot":"","sources":["../../../../../libs/adsp-sdk-mcp-server/src/sdk-reference/reference.ts"],"names":[],"mappings":";;;AAaA;;;;GAIG;AACU,QAAA,aAAa,GAAmB;IAC3C,aAAa;IACb;QACE,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,YAAY;QACpB,OAAO,EACL,wGAAwG;YACxG,uGAAuG;QACzG,OAAO,EACL,gHAAgH;YAChH,2BAA2B;YAC3B,+GAA+G;YAC/G,8GAA8G;YAC9G,2GAA2G;YAC3G,+FAA+F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