M4-S2 — Directory import, message delivery and the brand
Section titled “M4-S2 — Directory import, message delivery and the brand”| Module | M4 — The operator side of the hand-offs |
| After this session you can | Run the directory import the administrator scoped and know when it really worked, make every message channel deliver, and give the platform Northwind’s name and look. |
| Time | Facilitated: 39 min · On your own: 39 min |
| Before you start | M4-S1. From ACSA: the directory hand-off checklist and message channels. |
| Go deeper | Directory sync operations · Notification delivery: technical reference · Tenant settings & look and feel · Working time engine |
◆ Orientation (1 min) — Three more items on the hand-off list
Section titled “◆ Orientation (1 min) — Three more items on the hand-off list”Yasmin’s list still has three items for you. Drivers should arrive from the directory group NW-Drivers every hour. Emails should come from a Northwind address through Northwind’s mail server, and text messages should actually be sent. And the platform should carry Northwind’s name and logo, not the defaults. Each is a values change; each has a way to look done while not working.
▤ Concept (7 min) — Importers, senders and the brand
Section titled “▤ Concept (7 min) — Importers, senders and the brand”The directory importer
Section titled “The directory importer”The import is not a screen: it is a scheduled Kubernetes job the chart renders when you enable it.
For Microsoft Entra ID the settings sit under identity.config.azureADImport; for an on-premises
directory over LDAP, under identity.config.adImport. Each has two jobs, users and groups, each
with its own schedule and switch.
| Checklist item (ACSA M3-S3) | Importer value |
|---|---|
| B1 scope: only NW-Drivers | users.groupIds: the group’s Entra object id (or users.filter for a Graph filter) |
| C1 people every hour | users.enabled: true, users.schedule: "0 * * * *" |
| C2 membership every hour, after people | groups.enabled: true, groups.schedule: "10 * * * *" |
| Entra app registration (application permissions to read users and groups) | config.tenantId, config.clientId, config.clientSecret |
This is a different Entra application from single sign-on’s: it uses application permissions, and
its secret goes in nw-secrets.yaml. The image is released on its own schedule, so the chart pins its
tag and takes its registry from identity.config.azureADImport.image.repository: set it to your
vendor’s registry.
What the importer does and does not do is what the administrator learned in ACSA, seen from your side:
it creates and updates users that have an email address, adds members to groups already marked as
external with a directory id, never removes anyone and never creates a group. Imported people are
marked external, so they sign in through single sign-on (M4-S1); the Entra id it stores is the one
the single sign-on provider matches on.
A finished job is not a successful import. The Entra importer can end with exit code 0 even
when it could not sign in to Microsoft, and the group job reads only the first page of groups and
members that Microsoft Graph returns. Prove a run by its log, by the import metrics
(osos_import_runs_total, osos_import_records_synced_total), and by the administrator’s check of the
result in the product.
The senders
Section titled “The senders”ACSA’s administrator learned that a message is “sent” by the platform but delivered by a service the operator connects. These are those services:
| Channel | Who sends | What you configure | Until you do |
|---|---|---|---|
| The email sender | Deployed in the release (email.deployment.enabled) with email.deployment.config.smtp.*, or email.url to a shared sender; the sender address notification.config.fromEmail | Nothing leaves, or mail leaves from no address | |
| Text message | The text-message sender | sms.deployment.enabled or sms.url, and a provider configured on the sender | Messages are accepted and quietly not sent |
| Push notification | The push sender | push_notification.deployment.config.fcm.*, or push_notification.url | Mobile devices receive nothing |
| The notification worker itself | The administrator connects the number; you set whatsapp.sendEnabled: true | Every message is recorded as mocked and nothing reaches Meta |
All of them run after the bus: a request saves the record, an event travels to the notification worker, which calls the sender. So a stopped sender never fails the user’s request; it only delays or loses the message. The administrator’s email log shows Failed with the mail server’s response code when your mail server refuses a message (ACSA M4-S3): that code is your starting point.
Working time. Deadlines on workflow steps are computed by the clock service, another
deployed-or-external service (clock.deployment.enabled or clock.url). It counts days in its own
process time zone, so run it in a fixed, known time zone (UTC is the safe choice). When the
administrator reports deadlines a few hours off, check the clock’s time zone first.
The brand
Section titled “The brand”A single-tenant release takes its brand from values:
| What people see | Value |
|---|---|
| The product name and logos in the portal | web.orgConfig (NAME in English and Arabic, LOGO_URL, THEME) |
| The sign-in page’s name and logo | identity.orgConfig (orgname, orglogo) |
| The sign-in page’s accent colour | identity.variablesCss |
| The email sender address | notification.config.fromEmail |
A multi-tenant deployment instead lists brands in the brands catalogue, each with a product name
in both languages, logos, favicon, theme and sender address, and every tenant is registered with one
(M8). Either way, the brand is the operator’s: the administrator can change look and feel inside the
product, but not the product’s name or the sign-in page (ACSA M4-S4).
web.orgConfig applies on every upgrade (the web pod restarts). identity.orgConfig is copied into
the identity database the first time the sign-in page is served and is not read again: set it before
the release first starts. A later change does not reach the sign-in page, and restarting identity does
not help.
⛏ Lab (23 min) — Northwind’s brand, sender and importer
Section titled “⛏ Lab (23 min) — Northwind’s brand, sender and importer”Goal. The lab release carries Northwind’s name and sender address, and the directory importer is configured, rendered and run once, with its result read correctly.
Before you start. The release healthy. Mailpit’s port-forward available (kubectl -n datastores port-forward svc/mailpit 8025:8025).
Brand and sender
-
Add to
nw-values.yaml:web:config:clientId: nw-weborgConfig: |{ "NAME": { "en": "Northwind Platform", "ar": "منصة نورثويند" }, "THEME": "default" }identity:orgConfig: |{ "orgname": { "en": "Northwind Platform", "ar": "منصة نورثويند" }, "extAuth": false }notification:config:fromEmail: no-reply@northwind.example.comMerge these keys into the existing
web:andidentity:blocks rather than adding second ones. -
Upgrade:
helm upgrade nw ./osos -n northwind $values --wait --timeout 15m. -
Open
http://localhostin a private window. The sign-in page still shows the name the release started with: your release served it long ago, so the newidentity.orgConfigdoes not reach it (see The brand). Sign in: the portal shows Northwind Platform.Screenshot pending The lab's portal after sign-in, showing the name Northwind Platform What to notice: the portal’s name comes from
web.orgConfig, a value you set; nothing changed in Administration. -
Select Forgot password?, request a reset for
operator@northwind.example.com, and open the email in Mailpit: the sender isno-reply@northwind.example.com. You do not need to use the link.Screenshot pending Mailpit showing a password-reset email whose sender is no-reply@northwind.example.com What to notice: the From line comes from
notification.config.fromEmail, the value you just set.
The directory importer
-
Add the importer’s settings to
nw-values.yaml(no secret here):identity:config:azureADImport:image:repository: <registry from your vendor>/config:tenantId: "00000000-0000-0000-0000-000000000000"users:enabled: trueschedule: "0 * * * *"groupIds: "22222222-2222-2222-2222-222222222222"groups:enabled: trueschedule: "10 * * * *"and to
nw-secrets.yaml, underidentity.config.azureADImport.config:clientId: "33333333-3333-3333-3333-333333333333"andclientSecret: "lab-only-not-a-real-secret". Every id here is fake: the lab has no Entra. -
Render and find the jobs:
helm template nw ./osos -n northwind $values | grep -A12 '^kind: CronJob' | grep -E 'name:|schedule:'. -
Upgrade, then list them:
kubectl -n northwind get cronjobs. -
Run the users job once, now, instead of waiting for the hour:
kubectl -n northwind create job nw-import-test --from=cronjob/<users cronjob name>. -
When it ends, read both its status and its log:
kubectl -n northwind get job nw-import-testandkubectl -n northwind logs job/nw-import-test. -
Suspend both importers until a real Entra exists:
kubectl -n northwind patch cronjob <name> -p '{"spec":{"suspend":true}}'for each, and note ininventory.mdthat the values should setenabled: falseat the next upgrade.
Check.
- The portal shows Northwind Platform, and you noted why the sign-in page does not.
- The reset email in Mailpit comes from
no-reply@northwind.example.com. - The render shows two CronJobs with the schedules
0 * * * *and10 * * * *. - You recorded the test job’s status and what its log says.
- Your note explains why the status alone does not prove the import worked.
- Both CronJobs are suspended, and the client secret is only in
nw-secrets.yaml.
Pass condition. All six checks hold.
If something goes wrong
| What you see | What to do |
|---|---|
| The sign-in page still shows the old name | Expected on an existing release: identity.orgConfig is read only the first time the sign-in page is served. Restarting identity does not change it. |
The render fails on orgConfig | It is a JSON string inside YAML: keep the ` |
The importer pod is ImagePullBackOff | identity.config.azureADImport.image.repository still points at the chart’s default registry. Set it to your vendor’s, ending with /. |
create job --from says the CronJob is not found | Copy the exact name from step 7. |
Model answer
- After the upgrade, the portal’s title reads Northwind Platform, the sign-in page keeps the name it
stored when it was first served, and Mailpit
shows the sender
no-reply@northwind.example.com. - The render lists two CronJobs, one for users at
0 * * * *and one for groups at10 * * * *, so membership is synced ten minutes after people, as the checklist asked. - The test job typically shows
Complete(exit code0), while its log shows that signing in to Microsoft failed for the fake directory. That is the trap the concept warned about: alert on the log and the import metrics, never on the job’s status alone. - In production you would leave the CronJobs running, and the administrator would check the first run in the product: the expected drivers, their names, and Northwind Drivers’ members.
◇ Worked scenario (1 min) — “Approval emails stopped on Tuesday”
Section titled “◇ Worked scenario (1 min) — “Approval emails stopped on Tuesday””Yasmin forwards a complaint: since Tuesday afternoon, nobody gets approval emails. Her email log
shows the messages as Failed, with the response code 535 Authentication failed.
Decide: where is the fault? 535 is the mail server refusing the sender’s login, so the platform,
the bus and the notification worker did their part: the message reached the email sender, which tried
to deliver it. The fault is between your sender and the mail server.
Decide: what changed on Tuesday? Northwind’s mail team rotated the SMTP password for the platform’s
mail account and did not tell you. You put the new password in email.deployment.config.smtp.password
in your secrets file, upgrade, and confirm with a password-reset email to a test account.
What about Tuesday’s messages? They are recorded as failed, not queued for retry. You tell Yasmin which period was affected, so the approvers can be reminded from the product; you also ask the mail team to include you in their rotation notices, and you put the password’s next rotation in your calendar.
✓ Practice (6 min) — Check your understanding
Section titled “✓ Practice (6 min) — Check your understanding”The users importer’s CronJob shows every run Complete, yet no new driver has appeared for a week.
What do you check first?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
The groups job runs after the users job, but Northwind Drivers stays empty. The administrator confirms the group exists. What is the most likely missing step?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
After go-live, workflow notifications by WhatsApp appear in the WhatsApp log as mocked, and nobody
receives them. What is missing?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
Workflow deadlines in Northwind’s service are consistently three hours later than the administrator expects. What do you check first?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
Northwind wants its logo on the sign-in page. Where is that set in a single-tenant release?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
↺ Recap (1 min) — Three hand-offs done
Section titled “↺ Recap (1 min) — Three hand-offs done”You can configure, schedule and prove the directory import, connect every message channel and know which one is mocked until you switch it on, and give the platform the organization’s name, logo and sender address.
Next. In M4-S3 you protect what cannot be recreated: the field-encryption key, and the backups that bring a tenant back after the worst day.