Repository navigation
docs(guides): make the auth layer and vector search tutorials runnable - #2566
Merged
bruno-andrade-azion merged 3 commits intoNov 11, 2026
Merged
Conversation
Auth layer (en, pt-br): - Describe the real `azion init` prompts (Choose a preset / Choose a template). - Replace the root `.env` + `azion sync` step, which never reaches the function, with `azion create variables` before `azion deploy`. - Align the test-token secret with the JWT_SECRET placeholder. Vector search (en, pt-br): - Split setup (setup.mjs) from the request-time search (main.ts). - Poll getDatabase until status is `created` before the first statement. - Reuse an existing database and recover from 14001 Name Already In Use. - Make table, index, and seed idempotent (IF NOT EXISTS, seed when empty). - Use @aziontech/sql, per the Azion Lib reference. - Align the failure envelope with the Azion Lib reference. - Remove the unsourced LangChain Vector Store/Retriever note. Refs: MM-16222
…e-auth-vector-tutorials * origin/main: (22 commits) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) chore(main): release docs 2.4.4 (#2627) chore(deploy): promote docs-v2.4.3 to production (#2617) fix(applications): apply live test results and define each resource by its role (#2626) chore(main): release docs 2.4.3 (#2616) docs(applications): review the Applications section and apply the updated writing rules (#2615) chore(deps): bump npm and GitHub Actions dependencies (#2590) chore(deploy): promote docs-v2.4.2 to production (#2610) chore(main): release docs 2.4.2 (#2609) docs(style-guide): align the guide with the shipped sections and settle its open rules (#2600) chore(deploy): promote docs-v2.4.1 to production (#2569) chore(main): release docs 2.4.1 (#2568) chore(deploy): promote docs-v2.4.0 to production (#2560) docs(workloads): document custom page assignment with azion workload-deployment (#2564) docs(templates): reconcile Console Deploy links with the current catalog (#2563) docs(applications): fix rewrite argument, certificate API, workload domains, and connector CLI (#2562) docs(style-guide): review the EN style guide against the naming catalog (MM-16284) (#2561) docs(marketplace): fix invalid Arguments JSON in 7 integration guides (#2559) docs(runtime): fix broken example code in the Runtime reference (#2556) ...
- Auth layer: run `azion init --name my-auth-storage`. Azion CLI 4.24.0 ignores a positional name and asks for one with a random suggestion. - Vector search: write the search into `index.js`, the entrypoint of the Javascript / Hello World project the prerequisite links to, with the ES Modules fetch handler instead of the deprecated default-export function. - Vector search: restore the LangChain Vector Store and Retriever note, sourced by the May 5, 2025 release notes. - Vector search: name stage 6 "Run the search locally", the build step "Build the project", and `seedDocuments` where "the function" was ambiguous.
bruno-andrade-azion
deleted the
docs/mm-16222-runnable-auth-vector-tutorials
branch
November 11, 2026 19:26
bruno-andrade-azion
pushed a commit
that referenced
this pull request
Nov 11, 2026
* origin/main: fix(marketplace): drop the Azion CLI prerequisite from firewall integration guides (#2612) docs(guides): replace the residual "These checks confirm" lines with use-case expect blocks (#2611) docs(guides): make the auth layer and vector search tutorials runnable (#2566) chore(scripts): add pnpm lint:terraform to validate Terraform samples (#2637) fix(firewall): correct the CLI binding, the WAF config sample, and the JWT paywall steps (#2565) docs(cli): document azion workload-deployment and fix pages that say the CLI cannot bind a deployment (#2567) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) chore(main): release docs 2.4.4 (#2627) chore(deploy): promote docs-v2.4.3 to production (#2617) fix(applications): apply live test results and define each resource by its role (#2626)
bruno-andrade-azion
pushed a commit
that referenced
this pull request
Nov 11, 2026
* origin/main: fix(marketplace): drop the Azion CLI prerequisite from firewall integration guides (#2612) docs(guides): replace the residual "These checks confirm" lines with use-case expect blocks (#2611) docs(guides): make the auth layer and vector search tutorials runnable (#2566) chore(scripts): add pnpm lint:terraform to validate Terraform samples (#2637) fix(firewall): correct the CLI binding, the WAF config sample, and the JWT paywall steps (#2565) docs(cli): document azion workload-deployment and fix pages that say the CLI cannot bind a deployment (#2567) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) chore(main): release docs 2.4.4 (#2627) chore(deploy): promote docs-v2.4.3 to production (#2617) fix(applications): apply live test results and define each resource by its role (#2626)
bruno-andrade-azion
pushed a commit
that referenced
this pull request
Nov 11, 2026
…-main * origin/main: (21 commits) feat(nav): give every breadcrumb crumb a page and make CLI commands runnable (#2636) fix(cli): drop azion update workload-deployment, which the CLI does not expose (#2639) docs(terminology): retire Edge Node, module, and add-on from current pages (#2618) docs(migration): share the repeated migration-guide procedures as partials (#2619) fix(marketplace): drop the Azion CLI prerequisite from firewall integration guides (#2612) docs(guides): replace the residual "These checks confirm" lines with use-case expect blocks (#2611) docs(guides): make the auth layer and vector search tutorials runnable (#2566) chore(scripts): add pnpm lint:terraform to validate Terraform samples (#2637) fix(firewall): correct the CLI binding, the WAF config sample, and the JWT paywall steps (#2565) docs(cli): document azion workload-deployment and fix pages that say the CLI cannot bind a deployment (#2567) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) chore(main): release docs 2.4.4 (#2627) chore(deploy): promote docs-v2.4.3 to production (#2617) fix(applications): apply live test results and define each resource by its role (#2626) chore(main): release docs 2.4.3 (#2616) docs(applications): review the Applications section and apply the updated writing rules (#2615) chore(deps): bump npm and GitHub Actions dependencies (#2590) chore(deploy): promote docs-v2.4.2 to production (#2610) chore(main): release docs 2.4.2 (#2609) ...
bruno-andrade-azion
pushed a commit
that referenced
this pull request
Nov 11, 2026
* commit '7aa84b1d0': (22 commits) docs(nav): apply the review of the orphan-page triage feat(nav): give every breadcrumb crumb a page and make CLI commands runnable (#2636) fix(cli): drop azion update workload-deployment, which the CLI does not expose (#2639) docs(terminology): retire Edge Node, module, and add-on from current pages (#2618) docs(migration): share the repeated migration-guide procedures as partials (#2619) fix(marketplace): drop the Azion CLI prerequisite from firewall integration guides (#2612) docs(guides): replace the residual "These checks confirm" lines with use-case expect blocks (#2611) docs(guides): make the auth layer and vector search tutorials runnable (#2566) chore(scripts): add pnpm lint:terraform to validate Terraform samples (#2637) fix(firewall): correct the CLI binding, the WAF config sample, and the JWT paywall steps (#2565) docs(cli): document azion workload-deployment and fix pages that say the CLI cannot bind a deployment (#2567) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) chore(main): release docs 2.4.4 (#2627) chore(deploy): promote docs-v2.4.3 to production (#2617) fix(applications): apply live test results and define each resource by its role (#2626) chore(main): release docs 2.4.3 (#2616) docs(applications): review the Applications section and apply the updated writing rules (#2615) chore(deps): bump npm and GitHub Actions dependencies (#2590) chore(deploy): promote docs-v2.4.2 to production (#2610) ...
bruno-andrade-azion
pushed a commit
that referenced
this pull request
Nov 12, 2026
* origin/main: (24 commits) chore(nav): count only visible rows toward the navcheck soft max (#2640) docs(nav): triage the pages outside the navigation (#2593) fix(guides): match the QStash variable and the Functions usage response to the code (#2571) feat(nav): give every breadcrumb crumb a page and make CLI commands runnable (#2636) fix(cli): drop azion update workload-deployment, which the CLI does not expose (#2639) docs(terminology): retire Edge Node, module, and add-on from current pages (#2618) docs(migration): share the repeated migration-guide procedures as partials (#2619) fix(marketplace): drop the Azion CLI prerequisite from firewall integration guides (#2612) docs(guides): replace the residual "These checks confirm" lines with use-case expect blocks (#2611) docs(guides): make the auth layer and vector search tutorials runnable (#2566) chore(scripts): add pnpm lint:terraform to validate Terraform samples (#2637) fix(firewall): correct the CLI binding, the WAF config sample, and the JWT paywall steps (#2565) docs(cli): document azion workload-deployment and fix pages that say the CLI cannot bind a deployment (#2567) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) chore(main): release docs 2.4.4 (#2627) chore(deploy): promote docs-v2.4.3 to production (#2617) fix(applications): apply live test results and define each resource by its role (#2626) chore(main): release docs 2.4.3 (#2616) docs(applications): review the Applications section and apply the updated writing rules (#2615) ...
bruno-andrade-azion
pushed a commit
that referenced
this pull request
Nov 12, 2026
…y-filter-removal * origin/main: (24 commits) chore(nav): count only visible rows toward the navcheck soft max (#2640) docs(nav): triage the pages outside the navigation (#2593) fix(guides): match the QStash variable and the Functions usage response to the code (#2571) feat(nav): give every breadcrumb crumb a page and make CLI commands runnable (#2636) fix(cli): drop azion update workload-deployment, which the CLI does not expose (#2639) docs(terminology): retire Edge Node, module, and add-on from current pages (#2618) docs(migration): share the repeated migration-guide procedures as partials (#2619) fix(marketplace): drop the Azion CLI prerequisite from firewall integration guides (#2612) docs(guides): replace the residual "These checks confirm" lines with use-case expect blocks (#2611) docs(guides): make the auth layer and vector search tutorials runnable (#2566) chore(scripts): add pnpm lint:terraform to validate Terraform samples (#2637) fix(firewall): correct the CLI binding, the WAF config sample, and the JWT paywall steps (#2565) docs(cli): document azion workload-deployment and fix pages that say the CLI cannot bind a deployment (#2567) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) chore(main): release docs 2.4.4 (#2627) chore(deploy): promote docs-v2.4.3 to production (#2617) fix(applications): apply live test results and define each resource by its role (#2626) chore(main): release docs 2.4.3 (#2616) docs(applications): review the Applications section and apply the updated writing rules (#2615) ...
bruno-andrade-azion
pushed a commit
that referenced
this pull request
Nov 12, 2026
* origin/main: (29 commits) fix(structure): tag bare code fences, fix heading skips, add pt-br meta_tags (#2629) docs(style-guide): drop the nonexistent GlossaryFilter from the glossary template (#2577) docs(release-notes): fix the October 14 anchor and merge the duplicate February 24 entry (#2572) fix(orchestrator): fix broken bind and create-service API samples (#2574) docs(readability): split the long sentences in the Runtime, CLI, Reference, and KV Store pages (#2635) chore(nav): count only visible rows toward the navcheck soft max (#2640) docs(nav): triage the pages outside the navigation (#2593) fix(guides): match the QStash variable and the Functions usage response to the code (#2571) feat(nav): give every breadcrumb crumb a page and make CLI commands runnable (#2636) fix(cli): drop azion update workload-deployment, which the CLI does not expose (#2639) docs(terminology): retire Edge Node, module, and add-on from current pages (#2618) docs(migration): share the repeated migration-guide procedures as partials (#2619) fix(marketplace): drop the Azion CLI prerequisite from firewall integration guides (#2612) docs(guides): replace the residual "These checks confirm" lines with use-case expect blocks (#2611) docs(guides): make the auth layer and vector search tutorials runnable (#2566) chore(scripts): add pnpm lint:terraform to validate Terraform samples (#2637) fix(firewall): correct the CLI binding, the WAF config sample, and the JWT paywall steps (#2565) docs(cli): document azion workload-deployment and fix pages that say the CLI cannot bind a deployment (#2567) docs(terraform): rewrite the samples for provider v2.10.0 (#2557) chore(deploy): promote docs-v2.4.4 to production (#2631) ... # Conflicts: # apps/docs/src/content/docs/en/pages/observe/real-time-events/data-sources.mdx # apps/docs/src/content/docs/pt-br/pages/observe/real-time-events/fontes-de-dados.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
azion init --name my-auth-storage. Azion CLI 4.24.0 ignores a positional name: it asksYour application's name:with a random suggestion, socd my-auth-storagefailed for a reader who accepted it.Choose a preset:/Choose a template:).azion create variablesbeforeazion deployreplaces the root.env+azion syncstep, becauseazion syncreads.edge/.envand never sentJWT_SECRETorBUCKET_NAMEto the function.setup.mjsfrom a read-only search function.14001 Name Already In Use.getDatabaseuntilstatusiscreated, usesIF NOT EXISTS, and seeds only when the table is empty.CREATE TABLE, and every later request returned500on14001.index.jsin the Javascript / Hello World project that the prerequisite links to. It wasmain.ts, a file that project does not have.export default { fetch }handler instead of the deprecated default-export function.@aziontech/sql, as the Azion Lib reference does.How to test
pnpm dev/en/documentation/guides/application-development/data/auth-layer-object-storage-functions/and its pt-br version,/pt-br/documentacao/guias/desenvolvimento-de-aplicacoes/dados/camada-autenticacao-object-storage-functions/.azion init --name my-auth-storageand names the preset and template prompts.azion create variables.azion sync./en/documentation/guides/application-development/data/sql-database-vector-search/and/pt-br/documentacao/guias/desenvolvimento-de-aplicacoes/dados/edge-sql-vector-search/. Stages 2–4 buildsetup.mjs, stage 5 is theindex.jssearch, and stage 6 runs it withazion dev.node --env-file=.env setup.mjstwice. The second run printsSetup completewithout creating anything.Notes
@aziontech/sqloverlaps with MM-16229 (T17), which applies the same decision to the other SQL pages.Azion.env.get()reads.envunderazion dev. The auth-layer page makes no claim about local env.Restrictedblocksazion:storage.@aziontech/sql1.0.1 source agrees with the page:getDatabasereturns{}for a missing name,statusgoes fromcreatingtocreated, and a failed statement fails the whole call.@aziontech/bundler1.2.0, whichazion devruns:index.jsextracted from the page builds with no deprecation warning;.env;Azion.Sqlis undefined, souseQuerygoes through the API and reads the database thatsetup.mjswrote.setup.mjsextracted from the page runs on Node 26 with--env-fileand stops cleanly on an invalid token.lint:linksreportsauth-layer-object-storage-functions: no closing link into "functions". The same finding already exists onmain.