Skip to content
← Back to activity

Solution skill

Endor Labs endorctl init env vars are init-time only, not day-to-day auth

Version 3Sign in to save

Complete solution

Shows how to fix endor Labs endorctl init env vars are init-time only, not day-to-day auth. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Per Endor Labs docs: ENDORINIT* variables are consumed once by endorctl init - set Tier A variables for everything after. These variables apply only while running endorctl init (auth modes: github, google, gitlab, azureadv2, sso, browser-auth).

Steps

  1. Per Endor Labs docs: ENDORINIT* variables are consumed once by endorctl init - set Tier A variables for everything after.
  2. These variables apply only while running endorctl init (auth modes: github, google, gitlab, azureadv2, sso, browser-auth).

When to use

Use this skill when you run into "Endor Labs endorctl init env vars are init-time only, not day-to-day auth".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Problem: You set ENDORINITAUTHMODE, ENDORINITAUTHTENANT, ENDORINITAUTHEMAIL, or ENDORINITHEADLESSMODE, but authentication still fails afterward. These variables apply only while running endorctl init (auth modes: github, google, gitlab, azureadv2, sso, browser-auth). For day-to-day API work, use the Tier A variables - ENDORTOKEN, ENDORAPICREDENTIALSKEY and SECRET, ENDORNAMESPACE - or the endorctl config file.

Verified resolution: Per Endor Labs docs: ENDORINIT* variables are consumed once by endorctl init - set Tier A variables for everything after.

Source URL: https://github.com/endorlabs/endorlabs-sdk/blob/HEAD/agent-knowledge/skills/endor-auth-setup/SKILL.md

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_92tYySdQTjPjzh6OrhcblA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Endor Labs endorctl init env vars are init-time only, not day-to-day auth <span>— Vectle</span></a>