AI Worker Gateway

Implementing the AI Worker Gateway

The setup steps for the AI Worker Gateway, SAP S/4HANA, SAP BTP and Integration Suite, and your identity provider, and who does what.

How the setup is organised

Implementation touches four areas. Each step below names who usually does it; YUNIT provides templates and configuration guides and works alongside your teams.

We always start with a quality system in read-only mode and enable write-back one job type at a time, after acceptance tests.

1. AI Worker Gateway in your cloud account

Runs in your own Google Cloud, AWS or Azure account, in an EU region.

StepWhat to doWho
Cloud account and budgetCreate a project or account in an EU region, set budget alerts and request Spot quota for the worker machines, for example 8 vCPUs per worker.Your cloud team
Gateway and databaseDeploy the gateway service with private networking and a managed PostgreSQL database for jobs, approvals and audit.YUNIT with your cloud team
Model cacheRun the one-time import of the open-weight model into regional cloud storage, with checksum verification.YUNIT
Worker templateSet the machine type, two inference slots, Spot retries and result storage from the tested template.YUNIT
Trust and secretsConfigure the trusted token issuer, audience and signing keys, and the workload identity the worker uses towards your credential broker. The gateway holds no SAP passwords, tokens or certificates.Your cloud team with YUNIT
Job types and policiesConfigure the allowed job types, tools, amount limits, approver roles and schedules.YUNIT with your finance and IT owners
Audit and operationsExport the audit trail to write-once storage and set up monitoring, cost reports and the emergency stop runbook.Your cloud team with YUNIT

2. SAP S/4HANA

Start with a quality system. Business authorisations stay as they are; only API access is added.

StepWhat to doWho
Release and API contractsConfirm the S/4HANA edition and release, and download the exact OData and SOAP definitions of the selected APIs from the SAP Business Accelerator Hub.Your SAP Basis team with YUNIT
Activate APIsOn-premise or private cloud: activate the OData services and SOAP endpoints. S/4HANA Cloud: create communication arrangements for the selected APIs.Your SAP Basis team
Trust for principal propagationOn-premise or private cloud: import the Cloud Connector CA certificate and map certificate subjects to SAP users with rule-based certificate mapping. S/4HANA Cloud: set up OAuth 2.0 SAML bearer trust. For every API, including asynchronous services, verify that SAP really executes as the initiating user.Your SAP Basis team
AuthorisationsAdd the start authorisations for the released services to existing business roles. Company code, sales organisation and document checks stay unchanged.Your SAP security team
Fiori app and job submissionDeploy the AI worker Fiori app to the launchpad and assign it to requesters and approvers. Its job requests go to your SAP BTP, not directly to the gateway.YUNIT with your SAP team
Asynchronous interfacesFor SOAP journal posting and clearing, enable message monitoring and error handling for the asynchronous interfaces.Your SAP Basis team

3. SAP BTP and Integration Suite

Your BTP subaccount carries both directions with the user's identity: job requests from Fiori to the gateway, and every SAP call the AI worker makes through the credential broker.

StepWhat to doWho
Subaccount and trustSet up a BTP subaccount in an EU region and connect it to your identity provider.Your BTP administrator
Credential brokerDeploy the customer-side credential broker in your subaccount. It keeps the delegation grants, obtains each user's short-lived SAP credential, calls only approved APIs and returns results; credentials never leave your subaccount.Your BTP administrator with YUNIT
Job submission routeSet up the identity edge and API proxy that receive job requests from the Fiori app, obtain the user's short-lived gateway token and forward only the job request to the gateway REST API.Your BTP administrator with YUNIT
Cloud ConnectorOn-premise or private cloud: install the Cloud Connector, expose only the allowlisted OData and SOAP paths and enable principal propagation with short-lived X.509 certificates.Your SAP Basis team
DestinationsCreate the destinations the broker uses: principal propagation through the Cloud Connector for on-premise or private cloud, OAuth 2.0 SAML bearer or token exchange for S/4HANA Cloud. No technical user as fallback.Your BTP administrator with YUNIT
API ManagementPublish the allowlisted APIs as API proxies with rate limits and logging, so the broker routes only approved API contracts and no arbitrary URL.Your integration team with YUNIT
Cloud IntegrationBuild or reuse integration flows for asynchronous SOAP interfaces such as journal posting and clearing, with reliable messaging and monitoring.Your integration team with YUNIT
Worker access to the brokerAllow calls to the broker only from the AI worker, with mutual TLS or workload identity, and register the gateway as the trusted issuer of signed job capabilities.Your BTP administrator with YUNIT

4. Identity provider

Usually SAP Cloud Identity Services, acting as a proxy to your corporate identity provider such as Microsoft Entra ID.

StepWhat to doWho
Corporate sign-inConnect SAP Cloud Identity Services to your corporate identity provider, so users sign in with their normal account.Your IAM team
User mappingMap each user, by issuer and subject, to their SAP user in each target system and client. The gateway keeps this mapping server-side and never takes an identity from the request.Your IAM team with SAP Basis
Gateway applicationRegister the AI Worker Gateway as an API with its own audience, access tokens of at most 15 minutes and the job scopes create, read and cancel.Your IAM team with YUNIT
Requester and approver groupsCreate groups per job type for requesters and approvers, with segregation of duties: nobody approves their own job, and requester and approver use different SAP users.Your IAM team with finance owners
Delegation for scheduled jobsSet up a supported, renewable delegation in the broker for jobs that run later. Where renewal is not supported, jobs pause until the user signs in again.Your IAM team with YUNIT
Joiners and leaversProvision and deprovision users automatically, so a leaver's jobs stop at the next token request.Your IAM team

Go-live sequence

  • 1. Identity, credential broker and a quality system connected, all job types read-only
  • 2. Identity gate: principal propagation qualified end to end, with users of different roles, revoked permissions, separate approvers, asynchronous calls and recovery
  • 3. Benchmark on your own scenarios and data in the quality system
  • 4. Approval workflow and the first write job type enabled in quality, with acceptance tests by your finance team
  • 5. Production change approval and go-live one job type at a time, with monitoring and cost reports
  • 6. Model and rule updates re-qualified on your scenarios before each release