---
title: "AISIX 1.11.0: Migrate File-Based Gateway Configuration Safely - API7.ai"
description: "Discover how AISIX 1.11.0 makes file-based configuration easier to migrate, validate, and troubleshoot before rollout."
url: "https://api7.ai/blog/aisix-1-11-0-file-configuration-migration"
---

[Blog](https://api7.ai/blog)

[Products](https://api7.ai/category/products)[Technology](https://api7.ai/category/technology)[Ecosystem](https://api7.ai/category/ecosystem)[Case Study](https://api7.ai/category/usercase)[Team & Community](https://api7.ai/category/community)

Search

⌘ + K

[Blog](https://api7.ai/blog)

Products

# AISIX 1.11.0: Migrate File-Based Gateway Configuration Safely

November 20, 2026

[Products](https://api7.ai/category/products)

An AI gateway's configuration grows with the services it supports: provider credentials, models, caller keys, and policies all need to stay consistent as teams make changes. For operators who manage those resources in a file, the practical question is not just whether the YAML parses, but whether the gateway can load the intended resources and what happens when one cannot.

In file mode, AISIX reads those resources from a YAML configuration file, conventionally named `resources.yaml`; its path is selected by the `resources_file` startup setting. The file's `_format_version` field identifies the **resource-file format**, not the AISIX software version. Older files use `_format_version: "1"`; AISIX 1.11.0 requires format `"2"`. This migration applies to gateways using a resource file; operators using another configuration source should still review the release's other upgrade considerations.

[AISIX 1.11.0](https://docs.api7.ai/ai-gateway/release-notes#1110), released November 20, 2026, gives file-mode operators a clearer way to answer that question. Resource files now use explicit IDs and the same document loader as etcd-backed gateways; `aisix validate` checks the candidate with that loader before deployment. Once the file can be read as rows, the gateway reports an invalid resource separately while other valid resources can load. This helps teams find the affected configuration without treating every row-level error as a failure of the entire file. It does not guarantee that the rejected resource or its dependents remain available.

The change also has a necessary upgrade step: **a version 1 resource file will not start a 1.11.0 gateway**. Migrate and validate the complete file before upgrading. The rest of this article follows that workflow and shows how to verify the result.

## Use one resource model across configuration paths

Suppose a platform team keeps a file-based gateway for a small environment while using etcd-backed gateways elsewhere. In format 1, a model could refer to a provider key by name, for example `provider_key: openai-prod`, and the file loader derived IDs from resource names. In format 2, each entry carries an explicit ID and that reference becomes `provider_key_id: <provider-key-id>`. Some stored fields still use names, as described below. These are illustrative fragments, not complete runnable files.

Format 2 writes each resource as its ID and stored document, so ID-based references can match those the gateway reads from etcd. This makes the relationship between an exported resource and its file representation easier to follow; it does not mean the file contains every kind of operational state.

## Convert the complete resource snapshot

Set `_format_version: "2"` and give each entry a lowercase, hyphenated UUID `id`, unique within its collection. References that previously used file-only name shortcuts now use the corresponding IDs: for example, a model's `provider_key` becomes `provider_key_id`. The caller key's `key_env` becomes `key_hash`, supplied as a SHA-256 digest. Some fields that are themselves stored as names, such as `allowed_models`, continue to accept names. Follow the [format 2 mapping](https://docs.api7.ai/ai-gateway/reference/resources-file#format-version-2) for every resource in your file rather than applying a blanket rename.

The file is a complete snapshot, not a patch. Preserve unrelated resources when editing: entries omitted from a successfully loaded file disappear from the active snapshot. Use environment variables for secrets and check that all referenced variables are present in the gateway environment. Keep the original file and a rollback plan before migration.

For an etcd-backed gateway, `aisix export` can produce a format 2 file with stored IDs and secret placeholders. It deliberately omits budgets. Exporting only an environment prefix also omits the shared catalog, which can leave model prices missing; inspect its warnings and verify the complete configuration before use. An export is not a complete backup of budget state.

For the team maintaining both paths, this gives them a concrete starting point for a file-mode configuration without manually reconstructing each exported ID reference. They still need to supply secrets, account for omitted budgets and catalog data, and verify the resulting behavior before using it.

## Catch configuration problems before rollout

Run the new gateway version's loader against the candidate file before starting or reloading it:

```
aisix validate --resources /path/to/resources.yaml
```

The benefit is an earlier, actionable signal: the command exits non-zero if the file cannot be read as rows or a resource is rejected, and identifies the problem. It can also report partially compatible entries. Validate in the same environment that supplies the file's variables, without exposing their values in logs. A successful check is not a substitute for testing credentials, routes, policy behavior, and application requests in a non-production environment.

Missing, malformed, or duplicate IDs, invalid YAML, an unset referenced variable, and an unsupported format can prevent the file being read as rows. At startup, that prevents the gateway from starting. On a running gateway, a failed file-level `SIGHUP` reload retains the active configuration and reports `out_of_sync`; correct the file and send another `SIGHUP`.

Once rows can be read, a resource that fails the loader is reported in `rejected` and `aisix_config_rejected_resources`. At startup it is not loaded; on reload a previously valid row that becomes invalid retains its last valid value. Other valid changes can apply. Inspect the rejected resource and its dependencies rather than assuming that a running process means the intended configuration is active. Unknown fields can be reported as partially compatible rather than rejected; the read schema does not repeat every write-time check.

This distinction narrows the immediate troubleshooting task: operators can identify a rejected row and see which configuration is active, while treating a whole-file read failure as a separate recovery path. It is a way to make failures visible and contain some row-level errors, not a promise that every dependent service continues to work.

## See the checks in practice

In a local test using the official AISIX 1.11.0 gateway, a format 2 file included a valid model and a second provider key without its required `api_key`. `aisix validate` exited with an error identifying the rejected provider key. The gateway started in `degraded` state, reported that key in `/status/config`, and listed the valid model. The provider was simulated and no upstream request was made; the listing demonstrates loaded configuration, not model availability.

The complete test file below uses a dummy upstream credential and a hash of the demo caller key `aisix-demo-key`. The endpoint is illustrative; do not use this configuration or these credentials in production:

```
_format_version: "2"
provider_keys:
  - id: 06475d5a-8aea-457e-856d-55d34d7cafbb
    display_name: simulated-provider
    provider: openai
    adapter: openai
    api_key: demo-not-a-real-key
    api_base: http://127.0.0.1:3999/v1
  - id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
    display_name: invalid-provider
    provider: openai
models:
  - id: 9f46bd07-eaae-4c3e-a1ae-61b420c32f10
    display_name: demo-model
    provider: openai
    model_name: demo-model
    provider_key_id: 06475d5a-8aea-457e-856d-55d34d7cafbb
api_keys:
  - id: 85b60b85-09dc-40fc-a403-5c7c8beb4e8d
    display_name: demo-caller
    key_hash: 6af742c4f38d318f67a3f4c4baa922a0ff80951d7540af622564240458b9f1c5
    allowed_models: [demo-model]
```

The second provider key deliberately omits `api_key`. With this file saved as `invalid-row.yaml`, run `aisix validate --resources invalid-row.yaml` using the 1.11.0 binary. The command exited 1 and identified the rejected row:

```
1 row(s) rejected:
  - /aisix/provider_keys/aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa (schema_failed): schema validation failed at ``: "api_key" is a required property
```

This is a shortened excerpt of the real command output; the ID belongs to the test fixture. File mode has no management UI in this scenario, so the command and configuration status are the relevant product evidence.

With the file loaded by a local gateway, these requests inspect the model list and the status endpoint (replace the ports with your test gateway's proxy and metrics listener ports):

```
curl -sS http://127.0.0.1:19300/v1/models -H 'Authorization: Bearer aisix-demo-key'
curl -sS http://127.0.0.1:19390/status/config
```

Selected fields from the actual responses were:

```
{"object":"list","data":[{"id":"demo-model","object":"model","created":1795492270,"owned_by":"openai"}]}
```

```
{"state":"degraded","rejected":[{"resource_kind":"provider_keys","resource_id":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","last_error_kind":"schema_failed"}]}
```

The second block is an excerpt; the full status response also contains timestamps, hashes and error details. Protect the metrics listener appropriately in production.

When the same test used a format 1 file at startup, the gateway exited with an unsupported-format error. When a running gateway received that file on `SIGHUP`, it retained its previous model listing and reported `out_of_sync` with a failed reload. These are different failure phases: do not depend on reload retention to make a broken file safe for a later restart.

## Check the rest of the upgrade separately

The file migration helps operators manage gateway configuration; other 1.11.0 changes address different decisions. In Enterprise and Cloud, rule-based roles and team role assignments let administrators scope access by environment and resource. Internal embedding and classifier calls from 1.11.0 gateways now have separate usage events, giving teams a way to distinguish the work the gateway performs for semantic features from the caller's own request. In Enterprise and Cloud, those calls can also affect billed spend and budgets, so visibility comes with a reason to review cost expectations.

The shared gateway also adds native Azure OpenAI routes for images, audio and embeddings, with an optional `api_version` on the provider key. This gives teams using supported Azure deployments more of those workloads through the gateway. These are separate capabilities from file-mode configuration, not prerequisites for its migration.

Review the [complete release notes](https://docs.api7.ai/ai-gateway/release-notes#1110) for each deployment, particularly these independent upgrade actions:

- Provider keys no longer read the old `secret` alias for `api_key`; MCP servers, A2A agents and passthrough routes no longer read `display_name` as `name`. This does not remove `secret` inside MCP or A2A authentication. Semantic guardrails with examples need corresponding thresholds. Rejected resources can affect dependent models, tools or attachments. Enterprise's first 1.11.0 control-plane start attempts one-time repairs: check startup WARNs `api7/aisix#1375:` and `api7/aisix#1409:`; unrepaired credential rows must be recreated, while guardrails can be saved again with thresholds.
- Gateway usage exporters and OTLP consumers must replace the removed `gateway_embedding_calls` fields with the new internal-call events. In Enterprise and Cloud, internal semantic calls from 1.11.0 gateways are billed and count toward applicable budgets; older gateways do not report those calls.
- A model group's off-peak discount requires a sale price on the same group. A group with only `off_peak` is billed without that discount and writes are refused until the price is set or the discount removed.
- Existing inline JEV classifiers keep working without billing their classifier calls, but any write that leaves them inline-only returns `400`. Migrate to `semantic.classifier.model_id` referencing a direct model on a `typesafe` provider key before editing.
- `allow_all_models` is ignored by gateways older than 1.11.0; with an empty model list, those gateways allow no models for the key. Upgrade registered gateways before relying on it. Older gateways also continue counting estimated usage toward token rate limits even when the new exclusion is enabled.
- The role migration changes some access despite preserving other effective permissions: generated roles from environment bindings do not retain environment-budget read access. New invitations and Enterprise direct member creation default to Restricted Member; integrations requiring the old direct-creation default should explicitly request `roles: ["member"]`. Review role assignments and scoped access before rollout.
- `provider_key` budgets now count the serving model's platform cost, which is zero when it has no platform price. Previously accumulated spend is not automatically recomputed, but a new budget or a change of scope, subject or period triggers recomputation; the old amount can remain until the period ends. Inspect budgets and model pricing before making those changes.
- Deleting an API key, environment, provider key, team or member now deletes budgets for that subject. Deleting an API key, team, member or model also deletes classic rate-limit policies scoped to it. Review the listed dependencies before deletion.
- Stricter SAML validation can reject responses previously accepted; test the identity provider's assertions, audiences and signatures. Direct-model Responses now carry tagged encrypted reasoning that cannot be sent directly to the provider unchanged. During a mixed 1.10/1.11 rollout, a 1.10 gateway can omit ciphertext from a tagged model-group item without an error; test continuation and complete the gateway rollout.
- A single upstream MCP message over 64 MiB now fails with `-32603` and `error_class="transport"`. For `oauth2_authorization_code`, the gateway no longer advertises or grants upstream scopes as its own; the upstream is still asked for the full configured scope set. Test affected MCP clients and large tool results.
- In Enterprise and Cloud, passthrough `identity_header` refuses additional credential-bearing header names on writes; an existing route keeps loading but cannot be edited until the affected header is changed or cleared. Changes to an inject route's target or key may also require permission to update the provider key when the target is outside its `api_base` origin. Review affected routes and permissions before editing.
- Enterprise upgrades require supported gateways and a control-plane database at 1.9.0 or later. During a rolling 1.10-to-1.11 control-plane upgrade, avoid writes: old replicas can return `500` and writes can be lost after migration. The upgrade fence introduced in 1.11 protects later upgrades, not that initial transition.
- The gateway Helm chart removes default resource requests and limits. Set pod resources and `config.proxy.workers`; utilization-based autoscaling requires the corresponding resource requests.

Also review the release notes' role and access migration, mixed-version warnings, pricing changes, and other gateway behavior before rollout. They are separate from the file-mode loader and apply according to product and deployment scope.

## Roll out with a recovery check

Convert a copy of the complete file, validate it with 1.11.0, and exercise representative requests in a test environment. After deployment, inspect `/status/config`, rejected-resource metrics and application behavior. Test both a rejected row and an unreadable file in a safe environment; confirm how you will recover before an actual incident. See the [AISIX OSS quickstart](https://docs.api7.ai/ai-gateway/getting-started/gateway-quickstart) and [resources file reference](https://docs.api7.ai/ai-gateway/reference/resources-file) for configuration and reload steps.

Tags:

[AISIX](https://api7.ai/tags/aisix)

[AI Gateway](https://api7.ai/tags/ai-gateway)

Share article link

Share

Related Posts

[![AISIX 1.7.1: Make Cross-Provider Stream Usage an Explicit Contract](https://static.api7.ai/uploads/2026/11/26/xCF7gEgZ_aisix-1-7-1-stream-usage-contract.webp)](https://api7.ai/blog/aisix-1-7-1-stream-usage-contract)

## [AISIX 1.7.1: Make Cross-Provider Stream Usage an Explicit Contract](https://api7.ai/blog/aisix-1-7-1-stream-usage-contract)

[![AISIX 1.7.0: Turn AI Spend Into an Operating Boundary](https://static.api7.ai/uploads/2026/10/26/qZ0mRtyd_aisix-1-7-0-cost-attribution-tags.webp)](https://api7.ai/blog/aisix-1-7-0-cost-attribution-tags)

## [AISIX 1.7.0: Turn AI Spend Into an Operating Boundary](https://api7.ai/blog/aisix-1-7-0-cost-attribution-tags)

Table of Contents

- [Use one resource model across configuration paths](#use-one-resource-model-across-configuration-paths)
- [Convert the complete resource snapshot](#convert-the-complete-resource-snapshot)
- [Catch configuration problems before rollout](#catch-configuration-problems-before-rollout)
- [See the checks in practice](#see-the-checks-in-practice)
- [Check the rest of the upgrade separately](#check-the-rest-of-the-upgrade-separately)
- [Roll out with a recovery check](#roll-out-with-a-recovery-check)

## Related Posts

[![AISIX 1.10.0: Keep AI Coding Sessions on a Matched Semantic Route](https://static.api7.ai/uploads/2026/11/13/5rPD4mvs_aisix-1-10-0-semantic-routing-session-affinity.webp)](https://api7.ai/blog/aisix-1-10-0-semantic-routing-session-affinity)

Products

November 12, 2026

#### [AISIX 1.10.0: Keep AI Coding Sessions on a Matched Semantic Route](https://api7.ai/blog/aisix-1-10-0-semantic-routing-session-affinity)

AISIX 1.10.0 brings semantic routing to Messages and Responses APIs, model-group targets, and optional session affinity for supported AI coding and agent sessions.

[AISIX](https://api7.ai/tags/aisix)

[AI Gateway](https://api7.ai/tags/ai-gateway)

[Semantic Routing](https://api7.ai/tags/semantic-routing)

[![AISIX 1.9.0: Connect MCP Users with Their Own Upstream Authorization](https://static.api7.ai/uploads/2026/11/12/HBiZRdR1_aisix-1-9-0-per-user-mcp-oauth.webp)](https://api7.ai/blog/aisix-1-9-0-per-user-mcp-oauth)

Products

November 6, 2026

#### [AISIX 1.9.0: Connect MCP Users with Their Own Upstream Authorization](https://api7.ai/blog/aisix-1-9-0-per-user-mcp-oauth)

AISIX 1.9.0 adds per-user upstream MCP OAuth, allowing users to authorize an upstream service from their MCP client while AISIX manages the upstream credentials.

[AISIX](https://api7.ai/tags/aisix)

[AI Gateway](https://api7.ai/tags/ai-gateway)

[MCP](https://api7.ai/tags/mcp)

[![AISIX 1.8.0: Keep Budget Decisions Local During Control-Plane Outages](https://static.api7.ai/uploads/2026/11/26/XbgyaY5o_aisix-1-8-0-local-budget-decisions.webp)](https://api7.ai/blog/aisix-1-8-0-local-budget-decisions)

Products

October 29, 2026

#### [AISIX 1.8.0: Keep Budget Decisions Local During Control-Plane Outages](https://api7.ai/blog/aisix-1-8-0-local-budget-decisions)

See how AISIX 1.8.0 evaluates pushed budget state locally, filters exhausted provider keys, and scopes strict-mode refusals during reporting failures.

[AISIX](https://api7.ai/tags/aisix)

[AI Gateway](https://api7.ai/tags/ai-gateway)

[API Governance](https://api7.ai/tags/api-governance)
