Repository navigation
Description
Reconciliation — 2026-10-05
- The canonical Console credential API has a real owner-session/create/revoke acceptance for explicit
alia:chat+inference:invoke, missing-scope denial and machine/product isolation; see the accepted milestone in #1571 and ADR0035.
That acceptance used the Console API with an authentic test owner, not a browser walkthrough or generic service-grant UI. It does not establish incoming/outgoing ApplicationServiceGrant views, Moovo grant setup, Oxy Pay migration or all eight acceptance criteria below. This issue remains open; no paid inference or generic-grant acceptance is claimed.
Part of #873. Depends on #874 and #875. It can be implemented against stable API contracts while #876 through #878 complete.
Goal
Make Oxy Console the single administrative surface for application-to-application service access. Replace product-specific permission UI with a generic, relational view based on existing Applications, credentials, resource APIs and grants.
Application settings navigation
Add a Service access section or tab alongside the existing General, Credentials and Usage surfaces.
The surface must show two distinct views:
Outgoing access
Resources this application may call:
- Resource application identity, logo and status resolved from Oxy.
- Resource API and version.
- Environment.
- Granted scopes with human descriptions from the resource definition.
- Grant lifecycle and expiry.
- Bound service credentials.
- Last safe usage summary.
- Request, narrow, rotate binding, suspend or revoke actions according to permission.
Incoming access
Applications allowed to call this application's APIs:
- Consumer application identity.
- API/version and environment.
- Granted scopes.
- Requester and approval state.
- Bound credential summary where policy permits.
- Last safe usage and failure summary.
- Approve, narrow, suspend, revoke and audit actions.
Generic behavior
- Never hardcode Mercaria, Moovo, Oxy Pay or another product name into authorization logic.
- Scope labels and descriptions come from the resource API definition.
- Application selection resolves existing canonical Applications; it cannot create a duplicate application implicitly.
- The same application can hold several credentials for separate environments and workloads.
- A grant is displayed as a relationship, not as an application or member.
- User OAuth scopes remain in their own product/consent context and are not mixed with backend service permissions.
- Development, staging and production are visually and operationally distinct.
- Suspended/deleted applications and retired API versions fail safely.
- Console permissions derive from the existing account-owned application RBAC.
- Staff-only actions remain clearly separate and audited.
Grant workflow
Support the workflow selected by #874:
- Consumer chooses an existing resource application and published API.
- Consumer selects environment and requested scopes.
- Console explains who approves and what data/actions the grant permits.
- Resource owner or staff reviews the exact request.
- Approval creates an active grant without creating a credential automatically unless the ADR explicitly chooses a guided credential step.
- Consumer binds or creates an existing service credential through the normal credential lifecycle.
- Secret is shown once through the existing credential UX.
- Changes produce append-only audit and clear effective-access summaries.
Credential experience
Extend the existing credentials view so a service credential can show:
- Environment.
- Bound resource applications/APIs.
- Effective scope subset.
- Rotation and revocation state.
- Last used time and safe caller/resource usage summary.
- Warnings for unbound, overbroad, deprecated or expiring credentials.
Do not expose the secret after creation/rotation. Do not copy grant scope controls into a second per-credential implementation; reuse one shared component and contract.
Remove hardcoded Oxy Pay special casing
The current Console surface has special handling for payments:read and payments:write. Migrate this behavior to the generic service-access system without breaking existing Oxy Pay consumers.
- Oxy Pay becomes a resource application/API in the same model.
- Its scope descriptions come from its service API definition.
- Existing grants/credentials are backfilled or reconciled idempotently.
- Compatibility UI remains only for a bounded migration and is removed afterwards.
- No second hardcoded Moovo section is added.
Usage and audit
Expose safe, permissioned information for:
- Token mint success/failure by environment and bounded reason.
- Resource API requests by application, s 4F54 cope and status class.
- Last-used credential and grant.
- Revocation, rotation and approval history.
- Wrong-audience, wrong-environment and insufficient-scope failures.
Never expose raw tokens, client secrets, private request payloads or another tenant's grant details.
Accessibility and UX
- Every scope has a plain-language description.
- Destructive actions show the affected resource, environment and credentials.
- Empty states explain the distinction between credentials and access grants.
- Status does not rely on color alone.
- Large application/grant lists are searchable and paginated.
- Mobile/narrow layouts remain usable.
- Secret reveal and copy behavior retain current one-time guarantees.
Tests
- Outgoing and incoming views for a Mercaria to Moovo grant.
- Account RBAC for read, request, approve and revoke.
- Environment isolation.
- Scope narrowing.
- Credential binding and rotation.
- Application suspension and API retirement.
- No duplicate application creation.
- Oxy Pay migration.
- Secret never reappears.
- Cache invalidation after grant/credential mutation.
- Accessibility and keyboard flow.
- Unauthorized cross-account enumeration.
Acceptance criteria
- A permitted operator can configure Mercaria to call the existing Moovo Application entirely through Console.
- No app-specific authorization UI is needed for Moovo.
- Credentials and service grants are understandable as separate concepts.
- User OAuth scopes are not shown as backend service access.
- Incoming and outgoing access are both visible and auditable.
- Oxy Pay uses the same generic control plane after migration.
- Revocation and rotation are reflected immediately in effective-access UI.
- No raw secret or token is exposed beyond the existing one-time credential reveal.
Activity