Skip to content

[docs] auth: fix auth provider list and OIDC audience defaults; add AUTH-007 - #11977

Merged
lpcox merged 3 commits into
mainfrom
docs/auth-doctor-provider-list-audience-20261123-d07e49aebd8cb166
Nov 23, 2026
Merged

lpcox merged 3 commits into
mainfrom
docs/auth-doctor-provider-list-audience-20261123-d07e49aebd8cb166

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Allow intentional protected-file changes

If this workflow is intended to modify these files, add specific filenames or folder prefixes to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: request-review
      exclude:
        - .changeset/

Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

Summary

Documentation Changes

  • docs/authentication-architecture.md: the diagram's AWF_AUTH_PROVIDER list now includes openai. This matches cloud-oidc-init.js and openai-oidc-config.ts.
  • docs/authentication-architecture.md: the OIDC audience table now shows the GCP default as (iam.googleapis.com/redacted) followed by the Workload Identity Provider, which matches gcp-oidc-token-provider.jsandcloud-oidc-init.js. It also adds an OpenAI row with the (api.openai.com/redacted) default from openai-oidc-token-provider.js.

Canonical Registry Changes

  • AUTH-007 (new, boundary auth, status unresolved, versions unknown): the config-file schema enum for apiProxy.auth.provider lists azure, aws, gcp, anthropic, and omits openai. validateAwfFileConfig runs that schema first, so a config file that selects OpenAI WIF is rejected, while the environment-variable path works. Probe: a read-only node -p that prints only the bundled schema enum. Fix is out of this updater's allowlist and is not claimed here. Provenance: Add OpenAI workload identity federation to the API proxy #11364, src/awf-config-schema.json, src/config-file.ts, containers/api-proxy/providers/cloud-oidc-init.js.
  • docs/diagnostics/README.md regenerated with the AUTH-007 index rows. npm run diagnostics:validate reports 39 valid findings.
  • Generated consumers .github/agents/diagnose-awf.md and .github/workflows/shared/diagnosis-findings.md were not included, per the allowed-files contract. npm run diagnostics:check therefore reports them stale until trusted CI or a reviewer runs npm run diagnostics:render. The matching jest sync test fails for the same reason; this is expected.

Validation

  • Implementation checked on main: containers/api-proxy/openai-oidc-token-provider.js (audience default), containers/api-proxy/gcp-oidc-token-provider.js and cloud-oidc-init.js (GCP audience), containers/api-proxy/providers/foundry.js, proxy-utils.js (STRIPPED_HEADERS), src/services/agent-environment/excluded-vars.ts.
  • Tests: npx jest scripts/diagnostics scripts/ci/auth-doctor-updater-workflow.test.ts gives 89 passed and 1 failed. The single failure is the generated-artifact sync check described above.
  • npm run diagnostics:freshness: no overdue records. npm run diagnostics:validate: pass.
  • Markdown: table rows and the ASCII diagram line were edited in place. Relative links are unchanged. git diff --check passes.
  • Credential-leakage review: the diff and AUTH-007 were scanned for JWT, key, Bearer, github_pat_, ghp_, and credential-bearing URL patterns. No matches.
  • Not verified: OpenAI platform documentation was unreachable from the sandbox (HTTP 000). The OpenAI audience claim is therefore backed by repository code only.

Review coverage and backlog

  • Receipts for the 50 reviewed candidates were written to the cache, but the final write was interrupted by a time limit. Treat coverage as incomplete until the receipts file is confirmed.
  • Remaining backlog: 150 first-time candidates, to be reviewed in later runs.

Sources

Generated by Auth Doctor Updater · copilot · routed: haiku55 xhigh · ~98 AIC · ⊞ 9.8K · ◷

- authentication-architecture.md: include openai in the AWF_AUTH_PROVIDER diagram list
- authentication-architecture.md: document the GCP audience prefix and OpenAI default audience
- AUTH-007 (unresolved): config-file apiProxy.auth.provider enum omits openai

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels Nov 23, 2026
Copilot AI adaptive review requested due to automatic review settings November 23, 2026 03:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Two active documentation issues remain: the authentication architecture diagram is misaligned by an overlong provider-list cell, and AUTH-007 inaccurately reverses the canonical-to-generated schema relationship.

2 open issues
What changed in this PR

This pull request updates authentication documentation and the diagnostics registry to reflect OpenAI native WIF support, correct provider-specific OIDC audience defaults, and document the config-file schema gap for OpenAI.

Changes:

  • Adds OpenAI to the documented OIDC provider list and corrects GCP and OpenAI audience defaults.
  • Adds unresolved diagnostic finding AUTH-007 for config-file validation rejecting the OpenAI provider.
  • Updates the diagnostics index and finding documentation.
File Description
docs/​diagnostics/​README.md Adds AUTH-007 to the diagnostics registry and symptom lookup tables.
docs/​diagnostics/​findings/​auth/​AUTH-007.json Defines the OpenAI config-file schema validation finding, probe, workaround, and provenance.
docs/​authentication-architecture.md Updates the OIDC provider diagram and audience table for OpenAI and GCP.

Review effort: Lite (adaptive)

Comment thread docs/authentication-architecture.md Outdated
│ ✗ No cloud credentials │ │ ✓ Provider-specific configuration │
│ ✗ No API keys │ │ ✓ AWF_AUTH_TYPE=github-oidc │
│ ✓ OPENAI_BASE_URL= │ │ ✓ AWF_AUTH_PROVIDER=azure|aws|gcp|anthropic │
│ ✓ OPENAI_BASE_URL= │ │ ✓ AWF_AUTH_PROVIDER=azure|aws|gcp|anthropic|openai │

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shortened the provider label to “AWF_AUTH_PROVIDER (see table)”; every row now matches the diagram’s 77-character width. Fixed in b7a280c.

"fixed": "unknown"
},
"status": "unresolved",
"rootCause": "The published config schema (src/awf-config-schema.json, mirrored at docs/awf-config.schema.json) enumerates apiProxy.auth.provider as azure, aws, gcp, and anthropic only. validateAwfFileConfig() runs validateWithSchema() before any mapping, so a config file selecting openai is rejected even though the sidecar's cloud-oidc-init provider and the openai-credential-env agent routing accept AWF_AUTH_PROVIDER=openai.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated AUTH-007 to identify docs/awf-config.schema.json as canonical and src/awf-config-schema.json as its generated runtime copy, and corrected the regeneration guidance. Fixed in b7a280c.

@lpcox

lpcox commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Copilot AI requested a review from lpcox November 23, 2026 04:25
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11977 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 6b74b3c

Copilot AI commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

@copilot address review feedback

The review feedback is addressed in b7a280c: the provider label now fits the ASCII diagram, and AUTH-007 correctly identifies the canonical schema and generated runtime copy.

@copilot fix these failing ci checks https://github.com/github/gh-aw-firewall/actions/runs/45111769177/job/137486413685?pr=11977 and https://github.com/github/gh-aw-firewall/actions/runs/45111769236/...

Regenerated the stale diagnosis consumers in 5a60abd. diagnostics:validate, diagnostics:check, and the targeted registry.test.ts (53 tests) pass.

@lpcox
lpcox merged commit 0f83352 into main Nov 23, 2026
38 of 40 checks passed
@lpcox
lpcox deleted the docs/auth-doctor-provider-list-audience-20261123-d07e49aebd8cb166 branch November 23, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants