Security for AI-built apps: identity, access and audit

Review three things before sharing an app: who can launch it through the App Portal, who can reach its hosting URL, and which company data the app can read. Each has a separate access check.

Discuss security requirements

Identity, provisioning and audit

Security for an internal app spans the workspace, the deployed application and the systems it reads. SpringRoll supplies identity, release, permission and audit controls for the handoff. Begin with a named owner, a defined audience and the company's data classification, then test the exact application and environment that colleagues will use.

Single sign-on, provisioning and audit history answer different operational questions. Sign-in establishes who the person is; provisioning maintains membership and groups; app and data permissions determine what that identity may do. Audit records preserve the changes and decisions so an owner can investigate a release or access problem with its context.

Deployment stays governed

Tenant Admins choose Direct to Production or a staged approval route. Direct deployments skip only the workflow approval: runtime readiness, ownership, support, access, data, configuration, scan, authorization, and provider checks still apply. Staged production deployment, connector access, scope increases, tenant-wide visibility, ownership changes, domain changes, rollback, and retirement require a person. Agent tokens cannot record an approval decision.

Source credentials stay on the server

Connector credentials, runtime tokens and secret environment variables are write-only in the management interface. Application identities authorize approved data-product or native API requests while source credentials stay in SpringRoll. Review the application's own secret handling too: a value must not be logged or included in a browser bundle. Agent tokens and invitation links are shown once at creation so the intended recipient can use them.

Organizations are isolated twice

Tenant-scoped queries bind application operations to one organization. PostgreSQL row-level security adds a database boundary using the tenant context set inside the transaction. FORCE ROW LEVEL SECURITY also binds table-owner queries to the policies. These layers protect the control plane's tenant data; each independently deployed application still needs its own authorization. Database tests check tenant isolation and the presence of the required policies.

Audit records are append-only and hash-chained

Audit events identify the actor, organization, resource and action, with correlation context and a hash linked to the preceding event. Database triggers reject ordinary updates and deletions, and the chain can be verified. Retention uses a separate controlled pruning path. Use the history to inspect who changed an app, deployment, permission or data grant and to connect a decision to the resource it affected.

Identity comes from your directory

Single sign-on uses a configured OIDC identity provider. SCIM 2.0 user and group provisioning supports the directory lifecycle: delivered suspension or removal changes update membership and revoke affected agent credentials. Configure and test directory delivery before relying on deprovisioning. Tenant roles are Tenant Admin, App Creator, App Owner, Approver, Data Owner and App User; the platform superadmin path is separate from tenant roles.

Agents authenticate like software, not like people

The remote MCP endpoint supports OAuth 2.1 with PKCE, protected-resource discovery, client ID metadata documents and dynamic client registration. A compatible client discovers the authorization server, identifies itself with its published metadata or by registering, opens a browser and receives its own credential after authorization. When a client publishes its metadata, the sign-in page names the host that published it. Agent permissions are scoped to the authorizing membership and connection. Revocation removes future use of that credential. An agent cannot supply the human approval required for a governed decision.

Test the directory lifecycle before rollout

Configure your OIDC sign-in connection and SCIM integration for the organization, then test a representative joiner, role or group change, suspension and removal. SCIM supports a defined user and group provisioning interface; it is not a claim that every identity-provider operation or extension is implemented. Check the operations your directory actually sends and retain the result of the test.

A directory change takes effect through the delivered provisioning request. Verify that a suspended or removed member can no longer use the workspace or affected agent credentials. Keep an administrator who can manage the integration, and review failed directory deliveries rather than assuming that disabling an account elsewhere has already changed every connected system.

Deal Desk approval and direct app access

Approving a release leaves launch permissions unchanged. Protect the direct app URL and private APIs in the app or its host, and test both with the intended audience.

See the two access tests

These tests use two different apps. Devon Shaw approved a release of Deal Desk. Test Admin owns Purchase Desk Team, whose Production launch rule allows the Finance group.

In the staged test, Devon Shaw (Approver) approved Deal Desk v0.1.0 for Production on 5 November 2026 at 15:15:22.278 UTC. Mira Chen requested release 6c8e5422-c6c3-4e31-b565-7d072c986180. Its launch permissions stayed the same.

An App Portal launch check does not protect the direct provider URL. The app or its host must authenticate and authorize that route, including private APIs. Test an allowed colleague, someone outside the audience and an anonymous request against the portal and the direct URL separately. A release approval does not prove those access checks passed.

Purchase Desk Team: who can open the app?

Test Admin owns Purchase Desk Team and handles support. Finance is the only workspace group with a Production launch grant. Two ordinary workspace members tried it.

In the orders example, the app owner asks to read Order, Region and Total. The owner of the orders data product decides which fields to approve. SpringRoll prevents the requester from approving their own grant.

  • Finance member: the portal opened the app. Purchase Desk Team accepted sign-in and returned purchase records (HTTP 200).
  • Support member: the portal denied launch and Purchase Desk Team refused sign-in. With no app session, the records request returned HTTP 401.

Set up launch access for one department

Use this process when ordinary employees in one department should open an app. App managers keep their management access.

  • Check group membership. In a workspace with enterprise identity configured, members sign in with OIDC. An administrator can sync directory groups using SCIM or configured sign-in claims. Check who belongs to Finance in the source directory before granting access.
  • Open the app’s Access tab and choose “Change who can open this app”. Select “Roles, groups and teams”. Set the rule to “Can open”, choose “Group”, select Finance and set the environment to Production. Review other grants for people, roles, groups or the whole workspace.
  • Submit the audience change for approval. After it is approved, test the Production portal link and the direct app URL with one person in Finance and one outside it. The deployed app or its host must enforce access on the direct route.
  • When someone changes departments, update their membership in the source directory. After synchronization, retest their account and check for other grants. In the workspace Audit trail, verify who changed access and when.

Purchase Desk Team: recorded HTTP results

In this local test, the Finance member could open Purchase Desk Team and read records. The Support member and unsigned visitors were denied access.

See the recorded HTTP responses

Test Admin owns Purchase Desk Team. On 5 November 2026, a Finance member and a Support member tried its Production link and signed in directly at the app. Two more requests tested its endpoints without signing in.

These local tests covered this starter. They did not test another hosting provider or revoke an existing application session.

  • Finance member. Portal HTTP 307: Redirected to the running app. Completed as an ordinary non-manager. Direct GET /api/desk: HTTP 200.
  • Support member. Portal HTTP 307: Redirected to the app-unavailable page. Denied before an application session was issued. Direct GET /api/desk: HTTP 401.
  • Anonymous GET /api/desk: HTTP 401. Sign in with your SpringRoll account to continue.
  • Anonymous GET /api/attachments/00000000-0000-4000-8000-000000000001: HTTP 401. Sign in with your SpringRoll account to continue.

Give each app a reviewed data scope

An employee's permission to read company data does not automatically authorize every app they build to read it. Give the application its own identity and review the fields, row restrictions, operation, expiry and limits required for its actual task. For data products, validate allowed and denied fields, row ceilings and masking against the selected source and supported query path.

Native API endpoint grants are a separate permission model. Review their approved methods and paths, the source account's privileges and any response retained or forwarded by the application. Revoking a grant prevents future authorized gateway use; it does not retrieve information that an app or a user has already read. Include caching, exports and retained results in the application's own review.

What SpringRoll will not do

Use these boundaries when reviewing an app or connecting a coding agent. The control plane checks the request and its recorded context; it does not turn an application's unsupported assumption into an approved release.

  • Redirect URIs must be https, loopback http, or a reverse-domain private-use scheme. Clients registering a bare custom scheme are refused, because two of them could collide and receive each other's authorization codes.
  • Authorization is enforced server-side. A request that bypasses the interface still needs the actor's current role, membership and resource access.
  • Promotion always references an immutable release. There is no deploy latest operation that quietly rebuilds from a branch that has moved.
  • Authentication and agent endpoints enforce their configured request limits. A client must handle a refused request rather than treating every attempt as a completed change.

Certifications

Run a release-specific security review

Begin the first release with fictional records. Review dependencies, environment variables, browser requests, application authorization and the destination of any export. Exercise the intended task using the release and environment named in the record. A screenshot of a working page is useful for usability; an allowed and a denied request establish a different part of the access review.

Keep the owner and support route visible after launch. When a release changes its audience, data scope or integration, repeat the affected checks and use the configured approval route. If an incident requires access withdrawal, record the affected app and environment and verify the result instead of relying only on the control's label.

Report a security issue

Use the security contact and reporting instructions in security.txt. Include the affected route, the observed behavior and a redacted reproduction. Keep passwords, tokens and personal or customer records out of the report. For a deployment or access review, contact the team with the application type, data classification and intended audience.

Test access before sharing a team link

Use two ordinary workspace members and a test app with fictional records. Keep the same app version and environment for each check. An owner or administrator can have additional rights that would hide an access mistake.

  • Identity and audience. Configure workspace OIDC sign-in and, where used, SCIM user and group provisioning. Grant one group launch access in the test environment. Leave the second person outside the audience. Check that the first person can open the portal link and the second is denied.
  • Direct hosting access. Give the second person the provider URL and try the app’s API. If either returns protected data, fix the app or provider authorization and repeat the check. The portal cannot enforce this independent path.
  • Revocation. Remove the first person’s launch permission and check the next launch, accounting for any remaining group or role grant. Revoke the app’s data grant separately and repeat a gateway read. Data already read or exported needs its own retention controls.
  • Audit. In the workspace Audit trail, check who changed access, when it changed and which resource was affected. Compare the decision with the recorded release and environment in Approvals history.

Repeat the Purchase Desk Team check

Download the team edition source, extract it, and open a terminal in the folder containing package.json. Use Node 24. These anonymous requests need no database, workspace, credentials or company data.

Run the first three commands below to start a local production server on port 3210. From a second terminal, send both GET requests. Each should return HTTP 401 with a sign-in message. Stop the local server with Ctrl+C when finished.

Show commands
npm install
npm run build
node -e "Object.assign(process.env, { PORT: '3210', HOSTNAME: '127.0.0.1' }); require('./.next/standalone/server.js')"

curl -i http://127.0.0.1:3210/api/desk
curl -i http://127.0.0.1:3210/api/attachments/00000000-0000-4000-8000-000000000001