Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(cli): explain task token replaced by a secrets manager (MUL-9802) (#11245)
Bohan Jiang78ce48fbcdfa
diff --git a/apps/docs/content/docs/daemon-runtimes.fr.mdx b/apps/docs/content/docs/daemon-runtimes.fr.mdxindex 864f6a511f..a54a258628 100644--- a/apps/docs/content/docs/daemon-runtimes.fr.mdx+++ b/apps/docs/content/docs/daemon-runtimes.fr.mdx@@ -288,6 +288,17 @@ Les runtimes intégrés **Codex** et **Claude Code** réutilisent par défaut deLorsqu'elles sont injectées directement dans l'environnement du processus (y compris pour les profils de runtime personnalisés et les exécutions avec `MULTICA_WARM_POOL=0`), ces valeurs se trouvent dans l'environnement réel du processus du runtime. Tout processus enfant lancé par le runtime hérite par défaut de toutes ces valeurs, y compris `MULTICA_TOKEN`. Si un processus enfant ne doit pas détenir cet identifiant, retirez-le explicitement ; ne comptez pas sur une isolation des processus qui n'existe pas. L'exception va dans l'autre sens : les outils qui filtrent l'environnement de leurs propres sous-processus peuvent exiger une règle d'autorisation explicite. Par exemple, l'outil shell de Codex écarte les noms contenant `TOKEN`, `KEY` ou `SECRET` ; le daemon installe donc une politique shell gérée qui autorise les variables d'exécution requises. Conservez le jeton uniquement dans les environnements de processus — jamais dans un prompt, un journal, un fichier du dépôt ou une configuration persistante. Un processus enfant partage l'identité et les permissions de l'exécution parente ; il ne reçoit pas de nouvelle identité à la portée indépendante.</Callout>+### Lancement via un gestionnaire de secrets [#secrets-managers]++Certaines équipes démarrent l'agent via un gestionnaire de secrets, avec une commande comme `doppler run -- claude`. Le gestionnaire de secrets démarre après le daemon et reconstruit l'environnement de l'agent à partir de votre projet de secrets. Si ce projet contient aussi un `MULTICA_TOKEN`, souvent un jeton personnel `mul_` conservé pour des scripts, il remplace le jeton de l'exécution, et chaque appel au CLI Multica dans l'exécution échoue avec `agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token`. Quand le CLI voit un jeton `mul_` à côté de `MULTICA_TASK_ID`, l'erreur renvoie à cette section.++Donnez la priorité aux valeurs du daemon :++- **Doppler** : ajoutez `--preserve-env=MULTICA_TOKEN` avant `--`, par exemple `doppler run --preserve-env=MULTICA_TOKEN -- claude`. Si le projet définit d'autres variables `MULTICA_`, listez-les séparées par des virgules : `--preserve-env=MULTICA_TOKEN,MULTICA_SERVER_URL`. Doppler n'accepte que la forme avec `=` ; `--preserve-env MULTICA_TOKEN` avec une espace ne fonctionne pas. L'option est sans effet avec `--mount`.+- **Autres outils** : utilisez l'option de l'outil qui donne la priorité aux variables d'environnement existantes, ou retirez les variables `MULTICA_` du projet de secrets utilisé pour les exécutions d'agents.++Un profil shell comme `~/.zshrc` qui exporte `MULTICA_TOKEN` remplace le jeton de l'exécution de la même façon lorsque le shell de l'agent le charge. Supprimez cet export, ou ne le définissez que lorsque `MULTICA_TASK_ID` est vide.+### Créer un profilSeuls les propriétaires et administrateurs de l'espace de travail peuvent créer, modifier ou supprimer des profils de runtime personnalisés :diff --git a/apps/docs/content/docs/daemon-runtimes.ja.mdx b/apps/docs/content/docs/daemon-runtimes.ja.mdxindex 2508ec1d6f..3d83983304 100644--- a/apps/docs/content/docs/daemon-runtimes.ja.mdx+++ b/apps/docs/content/docs/daemon-runtimes.ja.mdx@@ -288,6 +288,17 @@ Codex のネイティブサブエージェントも既定でオフです。Multiこれらの値がプロセス環境へ直接注入される場合(カスタムランタイムプロファイルや `MULTICA_WARM_POOL=0` を設定した実行を含む)、ランタイムプロセスの実際の環境に存在します。ランタイムが起動する子プロセスは、`MULTICA_TOKEN` を含むすべての値をデフォルトで継承します。子プロセスに認証情報を渡すべきでない場合は、明示的に削除してください。存在しないプロセス分離を前提にしてはいけません。逆に、独自に子プロセス環境をフィルタするツールでは、変数の明示的な許可が必要な場合があります。たとえば Codex の shell ツールは、名前に `TOKEN`、`KEY`、`SECRET` を含む変数を除外するため、デーモンは必要な作業変数を許可する管理対象の shell ポリシーを設定します。トークンはプロセス環境内だけに保持し、prompt、ログ、リポジトリファイル、永続設定には書き込まないでください。子プロセスは親の作業と同じ ID と権限を共有し、独立した新しいスコープ ID は受け取りません。</Callout>+### シークレット管理ツール経由の起動 [#secrets-managers]++`doppler run -- claude` のように、シークレット管理ツール経由でエージェントを起動するチームもあります。シークレット管理ツールはデーモンの後に起動し、シークレットプロジェクトの値でエージェントの環境を組み直します。そのプロジェクトに `MULTICA_TOKEN`(スクリプト用の個人 `mul_` トークンなど)も保存されていると作業トークンが上書きされ、作業内の Multica CLI 呼び出しはすべて `agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token` で失敗します。`MULTICA_TASK_ID` と一緒に `mul_` トークンを検出すると、CLI のエラーはこのセクションを案内します。++デーモンが注入した値を優先させてください。++- **Doppler**:`--` の前に `--preserve-env=MULTICA_TOKEN` を追加します。例:`doppler run --preserve-env=MULTICA_TOKEN -- claude`。プロジェクトにほかの `MULTICA_` 変数もある場合はカンマ区切りで並べます:`--preserve-env=MULTICA_TOKEN,MULTICA_SERVER_URL`。Doppler は `=` 形式のみ受け付け、スペース区切りの `--preserve-env MULTICA_TOKEN` は機能しません。`--mount` と併用するとこのオプションは無効です。+- **その他のツール**:既存の環境変数を優先させるツール側のオプションを使うか、エージェント実行に使うシークレットプロジェクトから `MULTICA_` 変数を削除してください。++`~/.zshrc` などのシェル設定ファイルが `MULTICA_TOKEN` を export している場合も、エージェントのシェルが読み込むと同じように作業トークンが上書きされます。その export を削除するか、`MULTICA_TASK_ID` が空のときだけ設定してください。+### プロファイルの作成カスタムランタイムプロファイルを作成・変更・削除できるのは、ワークスペースの owner と admin だけです。diff --git a/apps/docs/content/docs/daemon-runtimes.ko.mdx b/apps/docs/content/docs/daemon-runtimes.ko.mdxindex d2a4dd63c2..df30f060a1 100644--- a/apps/docs/content/docs/daemon-runtimes.ko.mdx+++ b/apps/docs/content/docs/daemon-runtimes.ko.mdx@@ -288,6 +288,17 @@ Codex 기본 하위 에이전트도 기본적으로 꺼져 있습니다. Multica이 값이 프로세스 환경에 직접 주입되는 경우(사용자 지정 런타임 프로필 및 `MULTICA_WARM_POOL=0` 실행 포함) 런타임 프로세스의 실제 환경에 존재합니다. 런타임이 시작하는 모든 자식 프로세스는 기본적으로 `MULTICA_TOKEN`을 포함한 모든 값을 상속합니다. 자식 프로세스가 자격 증명을 보유하면 안 되는 경우 명시적으로 제거하세요. 존재하지 않는 프로세스 격리를 전제로 하면 안 됩니다. 반대로 자체적으로 하위 프로세스 환경을 필터링하는 도구에는 명시적인 변수 허용 규칙이 필요할 수 있습니다. 예를 들어 Codex의 shell 도구는 이름에 `TOKEN`, `KEY`, `SECRET`이 포함된 변수를 제거하므로 데몬은 필요한 작업 변수를 허용하는 관리형 shell 정책을 설정합니다. 토큰은 프로세스 환경에만 두고 prompt, 로그, 저장소 파일 또는 영구 설정에 기록하지 마세요. 자식 프로세스는 상위 작업의 ID와 권한을 공유하며 독립된 새 범위 ID를 받지 않습니다.</Callout>+### 시크릿 관리 도구로 실행하기 [#secrets-managers]++`doppler run -- claude`처럼 시크릿 관리 도구를 거쳐 에이전트를 실행하는 팀도 있습니다. 시크릿 관리 도구는 데몬 다음에 실행되며 시크릿 프로젝트의 값으로 에이전트 환경을 다시 구성합니다. 그 프로젝트에 `MULTICA_TOKEN`(스크립트용 개인 `mul_` 토큰 등)도 저장되어 있으면 작업 토큰을 덮어쓰고, 작업 안의 모든 Multica CLI 호출이 `agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token` 오류로 실패합니다. CLI는 `MULTICA_TASK_ID`와 함께 `mul_` 토큰을 발견하면 오류 메시지에서 이 섹션을 안내합니다.++데몬이 주입한 값이 우선하도록 설정하세요.++- **Doppler**: `--` 앞에 `--preserve-env=MULTICA_TOKEN`을 추가합니다. 예: `doppler run --preserve-env=MULTICA_TOKEN -- claude`. 프로젝트에 다른 `MULTICA_` 변수도 있다면 쉼표로 구분해 함께 나열합니다: `--preserve-env=MULTICA_TOKEN,MULTICA_SERVER_URL`. Doppler는 `=` 형식만 받으며, 공백으로 구분한 `--preserve-env MULTICA_TOKEN`은 동작하지 않습니다. `--mount`와 함께 쓰면 이 옵션은 효과가 없습니다.+- **기타 도구**: 기존 환경 변수가 우선하도록 하는 도구 자체 옵션을 쓰거나, 에이전트 실행에 쓰는 시크릿 프로젝트에서 `MULTICA_` 변수를 삭제하세요.++`~/.zshrc` 같은 셸 설정 파일이 `MULTICA_TOKEN`을 export하면 에이전트의 셸이 이를 불러올 때도 같은 방식으로 작업 토큰을 덮어씁니다. 해당 export를 삭제하거나 `MULTICA_TASK_ID`가 비어 있을 때만 설정하세요.+### 설정 만들기워크스페이스 owner와 admin만 사용자 지정 런타임 설정을 만들고 수정하거나 삭제할 수 있습니다.diff --git a/apps/docs/content/docs/daemon-runtimes.mdx b/apps/docs/content/docs/daemon-runtimes.mdxindex dbb02368f1..c18bef22ad 100644--- a/apps/docs/content/docs/daemon-runtimes.mdx+++ b/apps/docs/content/docs/daemon-runtimes.mdx@@ -288,6 +288,17 @@ Built-in **Codex** and **Claude Code** runtimes reuse warm provider processes acWhen injected directly into the process environment (including custom runtime profiles and runs with `MULTICA_WARM_POOL=0`), these values live in the runtime process's real environment. Any child process the runtime starts inherits all of them by default, including `MULTICA_TOKEN`. If a child should not hold the credential, strip it explicitly; do not rely on process isolation that is not there. The exception runs the other way: tools that filter their own subprocess environment may require an explicit allow rule. For example, Codex's shell tool drops names containing `TOKEN`, `KEY`, or `SECRET`, so the daemon installs a managed shell policy that allows the required task variables. Keep the token in process environments only—never in a prompt, log, repository file, or persistent configuration. A child shares the parent task's identity and permissions; it does not receive a new, independently scoped identity.</Callout>+### Secrets managers in the launch command [#secrets-managers]++Some teams start the agent through a secrets manager, with a command such as `doppler run -- claude`. The secrets manager starts after the daemon and rebuilds the agent's environment from your secrets project. If that project also stores a `MULTICA_TOKEN`, often a personal `mul_` token kept for scripts, it replaces the task token, and every Multica CLI call inside the task fails with `agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token`. When the CLI sees a `mul_` token next to `MULTICA_TASK_ID`, the error points to this section.++Let the daemon's values win:++- **Doppler**: add `--preserve-env=MULTICA_TOKEN` before `--`, for example `doppler run --preserve-env=MULTICA_TOKEN -- claude`. If the project defines other `MULTICA_` variables, list them separated by commas: `--preserve-env=MULTICA_TOKEN,MULTICA_SERVER_URL`. Doppler only accepts the `=` form; `--preserve-env MULTICA_TOKEN` with a space does not work. The option has no effect together with `--mount`.+- **Other tools**: use the tool's option that lets existing environment variables take precedence, or remove `MULTICA_` variables from the secrets project used for agent runs.++A shell profile such as `~/.zshrc` that exports `MULTICA_TOKEN` replaces the task token the same way when the agent's shell loads it. Remove that export, or set it only when `MULTICA_TASK_ID` is empty.+### Creating a profileOnly workspace owners and admins can create, edit, or delete custom runtime profiles:diff --git a/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdx b/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdxindex bda5ad44c7..d818b15bd1 100644--- a/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdx+++ b/apps/docs/content/docs/daemon-runtimes.zh-Hant.mdx@@ -289,6 +289,17 @@ Codex 原生子 AI 代理同樣預設關閉:父執行緒結束時,Multica當這些值直接注入程序環境時(包括自定義執行時配置,以及設定了 `MULTICA_WARM_POOL=0` 的執行),它們存在於執行時程序的實際環境中。執行時啟動的任何子程序預設都會繼承全部變數,包括 `MULTICA_TOKEN`。子程序不應持有該憑據時,必須顯式移除,程序之間沒有自動隔離。反過來,有些工具會過濾自己的子程序環境,這時可能需要顯式放行變數。例如,Codex 的 shell 工具會丟棄名稱中含有 `TOKEN`、`KEY` 或 `SECRET` 的變數,所以守護程序會安裝託管的 shell 策略,放行所需的 task 變數。令牌只能存在於程序環境中,不得寫入 prompt、日誌、倉庫檔案或持久配置。子程序與父 task 共享身份和權限,不會獲得新的獨立作用域身份。</Callout>+### 透過密鑰管理工具啟動 [#secrets-managers]++有些團隊會透過密鑰管理工具啟動 AI 代理,例如命令寫成 `doppler run -- claude`。密鑰管理工具在守護程序之後啟動,會用密鑰專案裡的值重建 AI 代理的環境。如果這個專案裡也存了 `MULTICA_TOKEN`(常見的是給腳本用的個人 `mul_` 權杖),它會覆蓋 task 權杖,task 裡所有 Multica CLI 呼叫都會失敗,報錯 `agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token`。CLI 發現 `MULTICA_TASK_ID` 旁邊是 `mul_` 權杖時,報錯會指向本節。++讓守護程序注入的值優先:++- **Doppler**:在 `--` 前加 `--preserve-env=MULTICA_TOKEN`,例如 `doppler run --preserve-env=MULTICA_TOKEN -- claude`。專案裡還定義了其他 `MULTICA_` 變數時,用逗號分隔一併列出:`--preserve-env=MULTICA_TOKEN,MULTICA_SERVER_URL`。Doppler 只接受 `=` 寫法,用空格隔開的 `--preserve-env MULTICA_TOKEN` 不生效;與 `--mount` 一起使用時該選項不起作用。+- **其他工具**:使用該工具讓既有環境變數優先的選項,或者從 AI 代理執行所用的密鑰專案中刪除 `MULTICA_` 變數。++`~/.zshrc` 等 shell 設定檔匯出 `MULTICA_TOKEN` 時,AI 代理的 shell 載入它也會同樣覆蓋 task 權杖。刪除這條匯出,或者只在 `MULTICA_TASK_ID` 為空時設定。+### 建立配置只有工作區 owner 和 admin 可以建立、修改或刪除自定義執行時配置:diff --git a/apps/docs/content/docs/daemon-runtimes.zh.mdx b/apps/docs/content/docs/daemon-runtimes.zh.mdxindex a6866860ca..6f10ee0399 100644--- a/apps/docs/content/docs/daemon-runtimes.zh.mdx+++ b/apps/docs/content/docs/daemon-runtimes.zh.mdx@@ -289,6 +289,17 @@ Codex 原生子智能体同样默认关闭:父线程结束时,Multica 就把当这些值直接注入进程环境时(包括自定义运行时配置,以及设置了 `MULTICA_WARM_POOL=0` 的运行),它们存在于运行时进程的实际环境中。运行时启动的任何子进程默认都会继承全部变量,包括 `MULTICA_TOKEN`。子进程不应持有该凭据时,必须显式移除,进程之间没有自动隔离。反过来,有些工具会过滤自己的子进程环境,这时可能需要显式放行变量。例如,Codex 的 shell 工具会丢弃名称中含有 `TOKEN`、`KEY` 或 `SECRET` 的变量,所以守护进程会安装托管的 shell 策略,放行所需的 task 变量。令牌只能存在于进程环境中,不得写入 prompt、日志、仓库文件或持久配置。子进程与父 task 共享身份和权限,不会获得新的独立作用域身份。</Callout>+### 通过密钥管理工具启动 [#secrets-managers]++有些团队会通过密钥管理工具启动智能体,例如命令写成 `doppler run -- claude`。密钥管理工具在守护进程之后启动,会用密钥项目里的值重建智能体的环境。如果这个项目里也存了 `MULTICA_TOKEN`(常见的是给脚本用的个人 `mul_` 令牌),它会覆盖 task 令牌,task 里所有 Multica CLI 调用都会失败,报错 `agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token`。CLI 发现 `MULTICA_TASK_ID` 旁边是 `mul_` 令牌时,报错会指向本节。++让守护进程注入的值优先:++- **Doppler**:在 `--` 前加 `--preserve-env=MULTICA_TOKEN`,例如 `doppler run --preserve-env=MULTICA_TOKEN -- claude`。项目里还定义了其他 `MULTICA_` 变量时,用逗号分隔一并列出:`--preserve-env=MULTICA_TOKEN,MULTICA_SERVER_URL`。Doppler 只接受 `=` 写法,用空格隔开的 `--preserve-env MULTICA_TOKEN` 不生效;与 `--mount` 一起使用时该选项不起作用。+- **其他工具**:使用该工具让已有环境变量优先的选项,或者从智能体运行所用的密钥项目中删除 `MULTICA_` 变量。++`~/.zshrc` 等 shell 配置文件导出 `MULTICA_TOKEN` 时,智能体的 shell 加载它也会同样覆盖 task 令牌。删除这条导出,或者只在 `MULTICA_TASK_ID` 为空时设置。+### 创建配置只有工作区 owner 和 admin 可以创建、修改或删除自定义运行时配置:diff --git a/server/cmd/multica/cmd_agent.go b/server/cmd/multica/cmd_agent.goindex 4fad09b9b8..18ced080d7 100644--- a/server/cmd/multica/cmd_agent.go+++ b/server/cmd/multica/cmd_agent.go@@ -259,6 +259,9 @@ func newAPIClient(cmd *cobra.Command) (*cli.APIClient, error) {taskContext := inDaemonManagedExecutionContext()token := resolveToken(cmd)if taskContext && !strings.HasPrefix(token, "mat_") {+ if hint := replacedTaskTokenHint(token); hint != "" {+ return nil, fmt.Errorf("agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token%s", hint)+ }// When the ONLY daemon signal is a workdir marker (no MULTICA_AGENT_ID /// MULTICA_TASK_ID / MULTICA_DAEMON_PORT), name the exact file and say// whether it can be a leftover, instead of an opaque "requires mat_@@ -400,6 +403,19 @@ func daemonPortOnlyContextHint() string {return "; MULTICA_DAEMON_PORT is set without task identity — if this is a host or container startup shell, remove that variable and retry"}+// replacedTaskTokenHint explains a task that holds a personal access token.+// The daemon always injects a mat_ token next to MULTICA_TASK_ID, and an+// agent's custom env cannot override MULTICA_*, so a mul_ token here was put+// back after launch — typically by a secrets manager wrapping the runtime+// command (`doppler run`) or a shell profile exporting MULTICA_TOKEN (#7666).+// The hint names the prefix only, never the token.+func replacedTaskTokenHint(token string) string {+ if !strings.HasPrefix(token, "mul_") || strings.TrimSpace(os.Getenv("MULTICA_TASK_ID")) == "" {+ return ""+ }+ return "; MULTICA_TOKEN holds a personal access token (mul_) although MULTICA_TASK_ID is set, so something between the daemon and this command replaced the task token — usually a secrets manager in the runtime's launch command or a shell profile exporting MULTICA_TOKEN. Let the daemon's MULTICA_* values win (Doppler: doppler run --preserve-env=MULTICA_TOKEN -- <agent command>); see https://multica.ai/docs/daemon-runtimes#secrets-managers"+}+// requireTaskLocalConfigRoot prevents daemon-managed subprocesses that lost// part of their injected environment from silently resolving Multica state// below the daemon owner's HOME. Commands that intentionally support task-localdiff --git a/server/cmd/multica/cmd_agent_test.go b/server/cmd/multica/cmd_agent_test.goindex fbb995e92b..3fc5b766ff 100644--- a/server/cmd/multica/cmd_agent_test.go+++ b/server/cmd/multica/cmd_agent_test.go@@ -613,6 +613,9 @@ func TestNewAPIClient_AgentContextRequiresTaskToken(t *testing.T) {if !strings.Contains(err.Error(), "mat_ token") {t.Fatalf("newAPIClient() error = %q, want mat_ token guidance", err.Error())}+ if strings.Contains(err.Error(), "preserve-env") {+ t.Fatalf("newAPIClient() error = %q, secrets manager hint is only for a replaced mul_ token", err.Error())+ }})t.Run("member token fails closed", func(t *testing.T) {@@ -625,6 +628,16 @@ func TestNewAPIClient_AgentContextRequiresTaskToken(t *testing.T) {if !strings.Contains(err.Error(), "mat_ token") {t.Fatalf("newAPIClient() error = %q, want mat_ token guidance", err.Error())}+ // #7666: a secrets manager wrapping the runtime re-exported a+ // project-level PAT over the injected task token.+ for _, want := range []string{"secrets manager", "--preserve-env=MULTICA_TOKEN", "daemon-runtimes#secrets-managers"} {+ if !strings.Contains(err.Error(), want) {+ t.Fatalf("newAPIClient() error = %q, want %q", err.Error(), want)+ }+ }+ if strings.Contains(err.Error(), "mul_member_token") {+ t.Fatalf("newAPIClient() error leaked the token: %q", err.Error())+ }})t.Run("task token succeeds", func(t *testing.T) {diff --git a/server/cmd/multica/cmd_auth.go b/server/cmd/multica/cmd_auth.goindex 7694f5f4c4..3aa8dc2b34 100644--- a/server/cmd/multica/cmd_auth.go+++ b/server/cmd/multica/cmd_auth.go@@ -494,7 +494,7 @@ func runAuthStatus(cmd *cobra.Command, _ []string) error {taskContext := inDaemonManagedExecutionContext()token := resolveToken(cmd)if taskContext && !strings.HasPrefix(token, "mat_") {- return fmt.Errorf("agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token")+ return fmt.Errorf("agent execution context requires MULTICA_TOKEN to be a task-scoped mat_ token%s", replacedTaskTokenHint(token))}serverURL := resolveServerURL(cmd)diff --git a/server/cmd/multica/cmd_auth_test.go b/server/cmd/multica/cmd_auth_test.goindex 7aa40530d8..310754544a 100644--- a/server/cmd/multica/cmd_auth_test.go+++ b/server/cmd/multica/cmd_auth_test.go@@ -482,6 +482,12 @@ func TestRunAuthStatusTaskContextRequiresTaskToken(t *testing.T) {if err == nil || !strings.Contains(err.Error(), "task-scoped mat_ token") {t.Fatalf("runAuthStatus error = %v, want task token requirement", err)}+ if wantHint := tc.token != ""; strings.Contains(err.Error(), "--preserve-env=MULTICA_TOKEN") != wantHint {+ t.Fatalf("runAuthStatus error = %v, want secrets manager hint = %v", err, wantHint)+ }+ if tc.token != "" && strings.Contains(err.Error(), tc.token) {+ t.Fatalf("runAuthStatus error leaked the token: %v", err)+ }if requestCount != 0 {t.Fatalf("auth status made %d request(s) without a task token", requestCount)}