8000 Add generic application service access management to Oxy Console · Issue #879 · OxyHQ/oxy · GitHub
[go: up one dir, main page]

Skip to content

Add generic application service access management to Oxy Console #879

Open

Description

@NateIsern

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:

  1. Resource application identity, logo and status resolved from Oxy.
  2. Resource API and version.
  3. Environment.
  4. Granted scopes with human descriptions from the resource definition.
  5. Grant lifecycle and expiry.
  6. Bound service credentials.
  7. Last safe usage summary.
  8. Request, narrow, rotate binding, suspend or revoke actions according to permission.

Incoming access

Applications allowed to call this application's APIs:

  1. Consumer application identity.
  2. API/version and environment.
  3. Granted scopes.
  4. Requester and approval state.
  5. Bound credential summary where policy permits.
  6. Last safe usage and failure summary.
  7. Approve, narrow, suspend, revoke and audit actions.

Generic behavior

  1. Never hardcode Mercaria, Moovo, Oxy Pay or another product name into authorization logic.
  2. Scope labels and descriptions come from the resource API definition.
  3. Application selection resolves existing canonical Applications; it cannot create a duplicate application implicitly.
  4. The same application can hold several credentials for separate environments and workloads.
  5. A grant is displayed as a relationship, not as an application or member.
  6. User OAuth scopes remain in their own product/consent context and are not mixed with backend service permissions.
  7. Development, staging and production are visually and operationally distinct.
  8. Suspended/deleted applications and retired API versions fail safely.
  9. Console permissions derive from the existing account-owned application RBAC.
  10. Staff-only actions remain clearly separate and audited.

Grant workflow

Support the workflow selected by #874:

  1. Consumer chooses an existing resource application and published API.
  2. Consumer selects environment and requested scopes.
  3. Console explains who approves and what data/actions the grant permits.
  4. Resource owner or staff reviews the exact request.
  5. Approval creates an active grant without creating a credential automatically unless the ADR explicitly chooses a guided credential step.
  6. Consumer binds or creates an existing service credential through the normal credential lifecycle.
  7. Secret is shown once through the existing credential UX.
  8. Changes produce append-only audit and clear effective-access summaries.

Credential experience

Extend the existing credentials view so a service credential can show:

  1. Environment.
  2. Bound resource applications/APIs.
  3. Effective scope subset.
  4. Rotation and revocation state.
  5. Last used time and safe caller/resource usage summary.
  6. 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.

  1. Oxy Pay becomes a resource application/API in the same model.
  2. Its scope descriptions come from its service API definition.
  3. Existing grants/credentials are backfilled or reconciled idempotently.
  4. Compatibility UI remains only for a bounded migration and is removed afterwards.
  5. No second hardcoded Moovo section is added.

Usage and audit

Expose safe, permissioned information for:

  1. Token mint success/failure by environment and bounded reason.
  2. Resource API requests by application, s 4F54 cope and status class.
  3. Last-used credential and grant.
  4. Revocation, rotation and approval history.
  5. 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

  1. Every scope has a plain-language description.
  2. Destructive actions show the affected resource, environment and credentials.
  3. Empty states explain the distinction between credentials and access grants.
  4. Status does not rely on color alone.
  5. Large application/grant lists are searchable and paginated.
  6. Mobile/narrow layouts remain usable.
  7. Secret reveal and copy behavior retain current one-time guarantees.

Tests

  1. Outgoing and incoming views for a Mercaria to Moovo grant.
  2. Account RBAC for read, request, approve and revoke.
  3. Environment isolation.
  4. Scope narrowing.
  5. Credential binding and rotation.
  6. Application suspension and API retirement.
  7. No duplicate application creation.
  8. Oxy Pay migration.
  9. Secret never reappears.
  10. Cache invalidation after grant/credential mutation.
  11. Accessibility and keyboard flow.
  12. Unauthorized cross-account enumeration.

Acceptance criteria

  1. A permitted operator can configure Mercaria to call the existing Moovo Application entirely through Console.
  2. No app-specific authorization UI is needed for Moovo.
  3. Credentials and service grants are understandable as separate concepts.
  4. User OAuth scopes are not shown as backend service access.
  5. Incoming and outgoing access are both visible and auditable.
  6. Oxy Pay uses the same generic control plane after migration.
  7. Revocation and rotation are reflected immediately in effective-access UI.
  8. No raw secret or token is exposed beyond the existing one-time credential reveal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0