Skip to content

fix(aisix): write the standalone resources examples in format v2 - #430

Draft
jarvis9443 wants to merge 1 commit into
mainfrom
fix/aisix-standalone-v2-resources
Draft

jarvis9443 wants to merge 1 commit into
mainfrom
fix/aisix-standalone-v2-resources

Conversation

@jarvis9443

Copy link
Copy Markdown
Contributor

This has to merge together with the chart bump that moves appVersion to a release containing api7/aisix#1449, and stays open until then. Please don't merge it on its own.

api7/aisix#1449 switched the resources file to _format_version: "2": every entry carries an id, references are written as ids, and an API key is stored as key_hash. A gateway with that change refuses a v1 file at boot, so once appVersion includes it the standalone install test would fail on charts/aisix/ci/standalone-values.yaml, and the README example would no longer work.

This rewrites both in v2. The README example (README.md.gotmpl, with README.md regenerated by helm-docs) now gives every entry an id, uses provider_key_id and allowed_model_ids, and takes the caller key as key_hash: ${CALLER_API_KEY_SHA256}, with a short note on what the ids are and how to compute the hash. The CI values carry the caller key as a literal key_hash, the sha256 of the old placeholder. That means the install test and .github/scripts/aisix-config-boot.sh no longer need CALLER_API_KEY, so the script stops passing it.

Until the bump, aisix-config-boot.sh boots the current appVersion image (1.10.0). That image only reads v1, so it is expected to fail on this branch.

🤖 Generated with Claude Code

api7/aisix#1449 moved the resources file to `_format_version: "2"`: every
entry carries an `id`, references name ids, and an API key is stored as
`key_hash`. A gateway with that change refuses a v1 file at boot, so the
standalone CI values and the README example would stop loading once
`appVersion` reaches a release that includes it.

The CI values now carry the caller key as a literal `key_hash` (the
sha256 of the old placeholder), so neither the install test nor
aisix-config-boot.sh needs `CALLER_API_KEY` any more.
@jarvis9443 jarvis9443 added the aisix-hold-for-release Gateway-key chart change: merges with the release that ships the key label Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This branch has not been deployed

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

Labels

aisix-hold-for-release Gateway-key chart change: merges with the release that ships the key

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant