n8n/scripts/instance-seeding
Arvin Ansari a59228f7a6
feat(core): Make the seed's API tokens optional (no-changelog)
Missing tokens no longer abort the run. The credential is still created and
still attached to every node that needs it, holding a placeholder — so the
workflows open without a missing-credential warning and nothing is left
half-wired. They just cannot run until a real token is supplied.

The placeholder is labelled in both places someone will look: the credential
name becomes "Anthropic (seed, fake key)", which is what shows in the
credential list and on every node, and the stored key is
SEEDED-FAKE-KEY-not-a-real-credential, so a 401 in a log explains itself rather
than raising a question about which key was used. The name is resolved once and
used for the row, the cached name on each node, and the report, so those three
cannot disagree.

The report ends with what to do about it: which token each placeholder needs,
where to generate it, and every place it can be set, each marked exists or
create it. Re-running with the token set replaces the credential in place and
keeps its id, so every node keeps pointing at it and the label drops away —
verified by seeding placeholders and then re-seeding with real tokens.

SEED_PLACEHOLDER_CREDENTIALS=1 forces placeholders even where a real token is
available, for producing a database with no real keys in it or for seeing the
estate as it looks before anything is configured.
2026-08-26 15:37:03 +02:00
..
AGENTS.md feat(core): Make the seed's API tokens optional (no-changelog) 2026-08-26 15:37:03 +02:00
seed-anthropic-linear.data.mjs feat(core): Seed a whole account, not just workflows (no-changelog) 2026-08-26 15:05:37 +02:00
seed-anthropic-linear.mjs feat(core): Make the seed's API tokens optional (no-changelog) 2026-08-26 15:37:03 +02:00
seedInstance.mjs chore: Add script to seed an example instance with workflows (#33513) 2026-07-03 09:21:32 +00:00