Skip to content

fix(extensions-library): add setup hooks for anythingllm and flowise#566

Merged
Lightheartdevs merged 1 commit intoLight-Heart-Labs:resources/devfrom
yasinBursali:ext/fix-setup-hooks-c1
Mar 24, 2026
Merged

fix(extensions-library): add setup hooks for anythingllm and flowise#566
Lightheartdevs merged 1 commit intoLight-Heart-Labs:resources/devfrom
yasinBursali:ext/fix-setup-hooks-c1

Conversation

@yasinBursali
Copy link
Contributor

What

Add env_vars declarations and setup.sh hook scripts for anythingllm and flowise.

Why

Both services require secrets via compose :? syntax (ANYTHINGLLM_JWT_SECRET, ANYTHINGLLM_AUTH_TOKEN, FLOWISE_USERNAME, FLOWISE_PASSWORD) but had no mechanism to auto-generate them. Users hit a cryptic Docker Compose error with no guidance.

How

  • Added env_vars section to both manifests declaring required variables with secret: true
  • Added setup_hook: setup.sh to both manifests
  • Created setup.sh scripts that auto-generate secrets using openssl rand on first install
  • Scripts are POSIX sh, idempotent (won't overwrite existing values)

Scope

All changes within resources/dev/extensions-library/services/{anythingllm,flowise}/.

Testing

  • Automated: shellcheck, YAML validation
  • Manual: fresh install with services enabled, verify .env population, verify compose starts without :? errors, verify idempotency on re-run

Review

Critique Guardian: APPROVED

Known Considerations

  • Re-install secret rotation: Phase 06 regenerates .env, which erases extension secrets. Setup hooks re-generate new values. This is a pre-existing architectural limitation outside extensions-library scope.

Suggested merge order

This PR is independent and can merge in any order relative to other batch C PRs.

Both services require secrets via compose :? syntax but had no mechanism
to auto-generate them. Add env_vars declarations to manifests and
setup.sh scripts that generate required secrets on first install.

- anythingllm: ANYTHINGLLM_JWT_SECRET, ANYTHINGLLM_AUTH_TOKEN
- flowise: FLOWISE_USERNAME (default: admin), FLOWISE_PASSWORD

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yasinBursali
Copy link
Contributor Author

Rebased on latest resources/dev (af07063). This PR touches anythingllm and flowise manifests which are also modified by #554 — please merge #554 first, then this PR may need a trivial rebase.

@Lightheartdevs Lightheartdevs merged commit 576edd3 into Light-Heart-Labs:resources/dev Mar 24, 2026
12 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants