TenantKeep On-Call

What Runs Where, and as Whom

The structure of TenantKeep On-Call, for the person deciding whether to let it into a tenant.

TenantKeep On-Call is an iPhone and iPad app that talks to Microsoft as the administrator holding it. This page is the layout of the whole thing: what runs where, who each part runs as, and what each part can see. How it works lists every permission and when it is asked for. This page is about the structure those permissions sit in.

The Whole System

That is the system for everything you read and everything you change. No Kainor server sits between the app and Microsoft, so a password, a recovery key or a sign-in log goes from Microsoft to the device in your hand and nowhere else.

The app's own code talks to eight hosts in all. Six are off until something you do turns them on. Microsoft's Intune App SDK, inside the app from version 2.0, makes requests of its own to Microsoft; they are the last two rows.

ConnectionWhenWhat crosses
Microsoft sign-in and Microsoft Graph
login.microsoftonline.com, graph.microsoft.com
AlwaysYour sign-in, your requests, and your tenant's answers.
Four public feeds
www.cisa.gov, api.msrc.microsoft.com, isc.sans.edu, www.bleepingcomputer.com
When you open the Threat Digest, and in the background if you turn on its notificationsA request for a public file. No token, no tenant ID, no cookie.
Kainor's licence endpoint
kainor-lapslock-prod-func.azurewebsites.net
Only after you activate an organization licence, then about monthlyA version number and your tenant ID. A signed licence statement comes back.
Kainor's alert service
kainor-watch-prod-func.azurewebsites.net
Only after an administrator turns on Instant Alerts, then about dailyThe phone's push token, its public key, the break-glass accounts you named, and a Microsoft token that can register a phone and read nothing.
Microsoft's settings for its Intune App SDK
config.edge.skype.com
Every install, when the app opens and again from time to time. Made by Microsoft's SDK, not by Kainor's codeAn identifier the SDK makes up for the install, its version and the iOS version. No sign-in, no account, no tenant.
Intune's app management service
under manage.microsoft.com
Only when your organization applies an app protection policyThe SDK's own requests, as the person signed in: enrolling the app, fetching the policy, checking in.

An installation on the free tier that never turns on Instant Alerts never contacts Kainor. The network transparency document lists each host and shows how to confirm the list with a proxy in about ten minutes.

Who It Runs As

You. Every request to Microsoft Graph carries a token issued to the person signed in, so your Conditional Access policies, your role assignments and your audit log apply to each one. The phone app holds no application permission: it has no access of its own, and it can do nothing while nobody is signed in.

Nine App Registrations, One of Them Read-Only

Microsoft puts every permission an organization has granted an app into the tokens it issues that app, whichever permission a request named. Asking for less does not get less. So a sign-in that cannot change your tenant has to be a separate app, and On-Call has one.

AppHoldsThe app signs in to it
TenantKeepRead permissions onlyAt sign-in. Everyone uses this one.
TenantKeep Role Activation2 permissionsWhen you allow role activation.
TenantKeep Device Actions2 permissionsWhen you allow device actions, or Mac password reveal.
TenantKeep User Actions4 permissionsWhen you allow user actions.
TenantKeep Account Recovery2 permissionsWith user actions, for removing sign-in methods and issuing a Temporary Access Pass. An organization can leave it unapproved and keep the rest.
TenantKeep Group Membership1 permissionWhen you allow group changes.
TenantKeep ActionsAll 11 action permissionsIn place of the five above, where an organization approved this one instead.
TenantKeep AlertsNo Microsoft Graph permissionWhen you turn on Instant Alerts, for a token that registers the phone.

An organization approves the read-only app, then either the separate app for each kind of action it wants or TenantKeep Actions for all of them. Where both are approved the separate app is used, because its token is the narrower. Whoever signs in to an action app must be the person already signed in: a different account is refused and its session removed from the device. An administrator can approve any of them at Approve the apps, without installing anything.

The read-only app is shared with TenantKeep Posture, so an organization that uses both approves one sign-in app. It holds read permissions for both products and nothing else, and On-Call asks for its own by name. The full list is published as app-registrations.json, and a test in the source fails if the read-only list ever gains a permission that can change something.

Inside the App

The app is built from separate modules, and a module can only use what it imports. That makes "this part cannot see a password" a property of how the code links, not a sentence in a document.

ModuleWhat it doesWhat it is kept from
Sign-inSigns you in and issues tokens. The only module that links Microsoft's sign-in library.It decides which app registration a request goes through, and refuses to send a change through the read-only one.
Credentials (LAPSlock)Reads LAPS passwords and BitLocker recovery keys.It imports the system library and the sign-in module, and nothing else. Licensing, diagnostics and logging cannot be added to it without the build failing.
Privileged Access, and the action gateActivates roles. Sends every change.Neither can import the credentials module, so the code that raises your privileges or changes your tenant cannot reach a password.
Devices, People, Tenant Pulse, Conditional Access, SecurityThe read-only modules.They share one Microsoft Graph client that pins the API version on every call and never repeats a change on its own.
Licensing and diagnosticsChecks a licence. Builds the support report you can read before sending.The credentials module cannot import either, so neither can be handed a password.

A script in the repository checks those imports in both directions. The only third-party code in the app is Microsoft's sign-in library, taken as Microsoft's signed binary with its checksum pinned. There is no analytics, telemetry or crash-reporting library.

One Gate for Every Change

No screen calls Microsoft to change something. Every change, from a device sync to a wipe, passes through one gate, in this order:

  1. The action is one your organization has not switched off, and the app that carries it is approved.
  2. The role the action needs is checked as active.
  3. You confirm it. A reversible action takes a tap. A destructive one, such as retire or wipe, takes typing the name of the device or person.
  4. Face ID again, where the app lock or your organization's policy asks for it.
  5. Ten seconds in which you can undo, before anything is sent.
  6. One request to Microsoft, as you. A change is never retried automatically: if the answer is lost, the app says so, and you check before sending it again.
  7. A line in the shift log on the device, with Microsoft's request ID, which you can export.

What Is Kept on the Device

A password or recovery key is held in memory for the sixty seconds it is shown, then overwritten. It is never written to disk, never in a backup, and never in the app switcher. A Temporary Access Pass is never written to disk either.

The Keychain holds exactly six items, and none is a credential:

Outside the Keychain the app keeps your preferences, which of the apps above each organization's requests go through, the identifiers of devices you pinned, and the shift log. The device list and the people list are held in memory while the app is open, and dropped on sign-out or when you switch organization.

Instant Alerts: The One Hosted Part

Everything above is the app acting as you. Instant Alerts are the exception, they are off until an organization opts in, and they are part of Pro. So that a break-glass sign-in reaches a phone within minutes, a service Kainor runs watches the organization with read-only access of its own.

PartWhat it can seeWhat it keeps
TenantKeep Watch, the alert serviceSign-ins of the break-glass accounts you named and no one else's, Conditional Access entries in the audit log, and security incidents. Four read-only permissions. It cannot change anything, and cannot read a password, a recovery key, mail or files.Identifiers only, listed in the Instant Alerts contract. Never what it reads.
The relayA push token, whether the alert is urgent, and ciphertext. Not the alert, and not which organization it is for.Nothing.
AppleThe push token and the ciphertext.What Apple keeps for any notification.
Your phoneThe alert, which names the kind of event and your organization, never a person or a policy.The identifiers of alerts seen in the last day, so none is shown twice.

Each alert is encrypted for one phone and authenticated as the alert service's, so the relay can neither read one nor forge one, and an alert made for one phone fails on any other. Neither service holds a secret that could be copied: the alert service signs in to Microsoft, and identifies itself to the relay, with its Azure managed identity. Your organization approves TenantKeep Watch once and can remove it in Entra ID at any time, which stops all reading at once. The relay contract and the source of both services are published.

Licensing Without Tracking

On Apple Watch

The watch app holds no sign-in and no credential. It shows what the phone tells it, your active roles and the approvals waiting for you, and an approval or an activation started on the watch is sent by the phone, as you. Where your organization asks for the stricter confirmation, the watch hands the decision back to the phone to finish there.

Under Your Organization's Management

An Intune app configuration policy can switch modules off, require extra confirmation for every action, keep the app to your own tenant, require the app lock, and name the break-glass accounts. A policy can only take something away or ask for more care. It cannot turn on a change nobody turned on in the app. The keys are in the managed configuration reference.

Check It Yourself