governance.GovernanceErrortypeno test imports ittype GovernanceError = { readonly kind: "id"; readonly what: string };Why a governance cannot be made.
The governance of the three connectors as data (0002-identity-connectors FR-001 to FR-003): the system each reads, the one scope it asks for (read only, named), the hosts its transport may reach, its cadence, and the posture policies in the vocabulary of GRC, whose control identifiers are the consumer's to attach. Nothing here reaches a network: each connector is a function of the answers a read port gives.
import { ENTRA_POLICIES } from "./connectors.ts";
ENTRA_POLICIES.length > 0; // truegovernance.GovernanceErrortypeno test imports ittype GovernanceError = { readonly kind: "id"; readonly what: string };Why a governance cannot be made.
governance.GRAPH_HOSTconstno test imports itconst GRAPH_HOST: "graph.microsoft.com"The host of Microsoft Graph and the host the application's token is asked from.
governance.LOGIN_HOSTconstno test imports itconst LOGIN_HOST: "login.microsoftonline.com"The host of the token service of Microsoft's identity platform.
governance.GOOGLE_HOSTconstno test imports itconst GOOGLE_HOST: "admin.googleapis.com"The host of Google's Admin SDK.
governance.entraGovernancefunctionno test imports itfunction entraGovernance(tenant: string): Result<ConnectorGovernance, GovernanceError>The governance of the connector of a Microsoft Entra tenant: it reads the authentication-method registrations, the conditional access policies and the organization's name, with the read-only application permissions Reports.Read.All, Policy.Read.All and Organization.Read.All.
governance.intuneGovernancefunctionno test imports itfunction intuneGovernance(tenant: string): Result<ConnectorGovernance, GovernanceError>The governance of the connector of Microsoft Intune's managed devices, with the read-only application permission DeviceManagementManagedDevices.Read.All.
governance.googleWorkspaceGovernancefunctionno test imports itfunction googleWorkspaceGovernance(domain: string): Result<ConnectorGovernance, GovernanceError>The governance of the connector of a Google Workspace domain's users, with the read-only scope admin.directory.user.readonly of a service account that acts for a named administrator.
governance.ENTRA_POLICIESconstno test imports itconst ENTRA_POLICIES: readonly PosturePolicy[]The posture policies of an Entra tenant.
governance.INTUNE_POLICIESconstno test imports itconst INTUNE_POLICIES: readonly PosturePolicy[]The posture policies of Intune's managed devices.
governance.GOOGLE_POLICIESconstno test imports itconst GOOGLE_POLICIES: readonly PosturePolicy[]The posture policies of a Google Workspace domain.
GovernanceErrortypeno test imports ittype GovernanceError = { readonly kind: "id"; readonly what: string };Why a governance cannot be made.
GRAPH_HOSTconstno test imports itconst GRAPH_HOST: "graph.microsoft.com"The host of Microsoft Graph and the host the application's token is asked from.
LOGIN_HOSTconstno test imports itconst LOGIN_HOST: "login.microsoftonline.com"The host of the token service of Microsoft's identity platform.
GOOGLE_HOSTconstno test imports itconst GOOGLE_HOST: "admin.googleapis.com"The host of Google's Admin SDK.
entraGovernancefunctionfunction entraGovernance(tenant: string): Result<ConnectorGovernance, GovernanceError>The governance of the connector of a Microsoft Entra tenant: it reads the authentication-method registrations, the conditional access policies and the organization's name, with the read-only application permissions Reports.Read.All, Policy.Read.All and Organization.Read.All.
intuneGovernancefunctionfunction intuneGovernance(tenant: string): Result<ConnectorGovernance, GovernanceError>The governance of the connector of Microsoft Intune's managed devices, with the read-only application permission DeviceManagementManagedDevices.Read.All.
googleWorkspaceGovernancefunctionfunction googleWorkspaceGovernance(domain: string): Result<ConnectorGovernance, GovernanceError>The governance of the connector of a Google Workspace domain's users, with the read-only scope admin.directory.user.readonly of a service account that acts for a named administrator.
ENTRA_POLICIESconstno test imports itconst ENTRA_POLICIES: readonly PosturePolicy[]The posture policies of an Entra tenant.
INTUNE_POLICIESconstno test imports itconst INTUNE_POLICIES: readonly PosturePolicy[]The posture policies of Intune's managed devices.
GOOGLE_POLICIESconstno test imports itconst GOOGLE_POLICIES: readonly PosturePolicy[]The posture policies of a Google Workspace domain.