Skip to content

fix(extensions-library): add setup hooks for weaviate and paperless-ngx#570

Open
yasinBursali wants to merge 1 commit intoLight-Heart-Labs:resources/devfrom
yasinBursali:ext/fix-setup-hooks-c5
Open

fix(extensions-library): add setup hooks for weaviate and paperless-ngx#570
yasinBursali wants to merge 1 commit intoLight-Heart-Labs:resources/devfrom
yasinBursali:ext/fix-setup-hooks-c5

Conversation

@yasinBursali
Copy link
Contributor

What

Add setup.sh hook scripts and env_vars declarations for weaviate and paperless-ngx.

Why

  • weaviate: compose requires WEAVIATE_API_KEY via :? syntax but manifest had env_vars: [] and no auto-generation
  • paperless-ngx: compose uses PAPERLESS_SECRET_KEY with insecure default change-me — manifest had env_vars: [] and no auto-generation

How

  • Added env_vars with required: true, secret: true for both services
  • Added setup_hook: setup.sh to both manifests
  • Created setup.sh scripts using openssl rand -hex 32
  • POSIX sh, idempotent
  • Note: PAPERLESS_DB_PASSWORD intentionally NOT generated — the compose file does not pass it to the paperless-ngx container, only to postgres. Generating it would break DB authentication.

Scope

All changes within resources/dev/extensions-library/services/{weaviate,paperless-ngx}/.

Testing

  • Automated: shellcheck, YAML validation
  • Manual: fresh install, verify secrets in .env, verify compose starts, verify weaviate accepts generated API key

Review

Critique Guardian: APPROVED (after removing PAPERLESS_DB_PASSWORD generation that would have broken DB auth)

Suggested merge order

Complements existing open PRs for weaviate env_vars declaration and paperless secret key requirement. Those PRs can merge first; this PR adds the auto-generation layer. No merge conflicts expected.

Add setup.sh scripts that auto-generate required secrets on first
install, along with env_vars declarations in manifests.

- weaviate: WEAVIATE_API_KEY
- paperless-ngx: PAPERLESS_SECRET_KEY

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 weaviate and paperless-ngx manifests which are also modified by #554 — please merge #554 first, then this PR may need a trivial rebase.

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.

1 participant