From ebb9688fc52d516726e928c6d07ad2ba898626d6 Mon Sep 17 00:00:00 2001 From: devin distefano Date: Thu, 26 Mar 2026 15:08:06 -0500 Subject: [PATCH 1/4] tenant config docs --- src/content/cre/account/cli-login.mdx | 4 +- src/content/cre/account/managing-auth.mdx | 6 +- src/content/cre/llms-full-go.txt | 58 +++++++++++++++---- src/content/cre/llms-full-ts.txt | 58 +++++++++++++++---- .../cre/reference/cli/authentication.mdx | 42 ++++++++++++-- src/content/cre/reference/cli/index.mdx | 6 +- 6 files changed, 141 insertions(+), 33 deletions(-) diff --git a/src/content/cre/account/cli-login.mdx b/src/content/cre/account/cli-login.mdx index 054586cd2d4..457d66b822f 100644 --- a/src/content/cre/account/cli-login.mdx +++ b/src/content/cre/account/cli-login.mdx @@ -5,7 +5,7 @@ title: "Logging in with the CLI" metadata: description: "Learn how to log in to the CRE CLI: authenticate through your browser, complete 2FA verification, and start using CLI commands." datePublished: "2025-11-04" - lastModified: "2026-02-12" + lastModified: "2026-03-26" --- import { Aside, ClickToZoom } from "@components" @@ -80,3 +80,5 @@ Login completed successfully ``` Your CLI session is authenticated and ready to use. + +In the terminal, the CLI may show **“Fetching user context…”** while it downloads your organization’s tenant configuration from the platform. It then writes **`~/.cre/context.yaml`** (registry manifest: vault gateway URL, registries, secrets auth flows, and related fields). That file is separate from your credentials file (`cre.yaml`). For details and a sanitized example, see [Tenant context cache](/cre/reference/cli/authentication#tenant-context-cache). diff --git a/src/content/cre/account/managing-auth.mdx b/src/content/cre/account/managing-auth.mdx index 8b36ba573a4..a9b6a5e8a11 100644 --- a/src/content/cre/account/managing-auth.mdx +++ b/src/content/cre/account/managing-auth.mdx @@ -5,7 +5,7 @@ title: "Managing Authentication" metadata: description: "Manage your CRE CLI sessions: check if you're logged in, handle expired sessions, and securely log out when needed." datePublished: "2025-11-04" - lastModified: "2026-02-12" + lastModified: "2026-03-26" --- import { Aside } from "@components" @@ -18,6 +18,8 @@ To authenticate your CLI with your CRE account, use the `cre login` command. Thi For detailed login instructions, see the [Logging in with the CLI](/cre/account/cli-login) guide. +Browser login stores **`~/.cre/cre.yaml`** (credentials) and **`~/.cre/context.yaml`** (cached **tenant context**: registry manifest from the platform, including vault gateway URL and related settings). **`cre logout`** removes both. For a full description and a sample `context.yaml` shape, see [Tenant context cache](/cre/reference/cli/authentication#tenant-context-cache). + ## API key authentication {/* prettier-ignore */} @@ -70,7 +72,7 @@ To check your deploy access status or submit a request, see [Requesting Deploy A ## Logging out -To explicitly end your CLI session and remove your stored credentials, use the `cre logout` command: +To explicitly end your CLI session and remove your stored credentials **and cached tenant context** (`context.yaml`), use the `cre logout` command: ```bash cre logout diff --git a/src/content/cre/llms-full-go.txt b/src/content/cre/llms-full-go.txt index 4a339826160..597ab12914f 100644 --- a/src/content/cre/llms-full-go.txt +++ b/src/content/cre/llms-full-go.txt @@ -6886,7 +6886,7 @@ Once your account is created: # Logging in with the CLI Source: https://docs.chain.link/cre/account/cli-login -Last Updated: 2026-02-12 +Last Updated: 2026-03-26 To deploy and manage workflows with the CRE CLI, you need to authenticate your CLI session with your CRE account. This guide walks you through the browser-based login process. @@ -6947,11 +6947,13 @@ Login completed successfully Your CLI session is authenticated and ready to use. +In the terminal, the CLI may show **“Fetching user context…”** while it downloads your organization’s tenant configuration from the platform. It then writes **`~/.cre/context.yaml`** (registry manifest: vault gateway URL, registries, secrets auth flows, and related fields). That file is separate from your credentials file (`cre.yaml`). For details and a sanitized example, see [Tenant context cache](/cre/reference/cli/authentication#tenant-context-cache). + --- # Managing Authentication Source: https://docs.chain.link/cre/account/managing-auth -Last Updated: 2026-02-12 +Last Updated: 2026-03-26 This guide covers how to manage your CLI authentication, including browser-based login, API key authentication, checking your status, handling session expiration, and logging out. @@ -6961,6 +6963,8 @@ To authenticate your CLI with your CRE account, use the `cre login` command. Thi For detailed login instructions, see the [Logging in with the CLI](/cre/account/cli-login) guide. +Browser login stores **`~/.cre/cre.yaml`** (credentials) and **`~/.cre/context.yaml`** (cached **tenant context**: registry manifest from the platform, including vault gateway URL and related settings). **`cre logout`** removes both. For a full description and a sample `context.yaml` shape, see [Tenant context cache](/cre/reference/cli/authentication#tenant-context-cache). + ## API key authentication @@ -7013,7 +7017,7 @@ To check your deploy access status or submit a request, see [Requesting Deploy A ## Logging out -To explicitly end your CLI session and remove your stored credentials, use the `cre logout` command: +To explicitly end your CLI session and remove your stored credentials **and cached tenant context** (`context.yaml`), use the `cre logout` command: ```bash cre logout @@ -8026,7 +8030,7 @@ See the [repository README](https://github.com/smartcontractkit/cre-gcp-predicti # CLI Reference Source: https://docs.chain.link/cre/reference/cli -Last Updated: 2026-03-17 +Last Updated: 2026-03-26