Skip to content

fix(extensions-library): add setup hooks for jupyter and dify#567

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

fix(extensions-library): add setup hooks for jupyter and dify#567
yasinBursali wants to merge 1 commit intoLight-Heart-Labs:resources/devfrom
yasinBursali:ext/fix-setup-hooks-c2

Conversation

@yasinBursali
Copy link
Contributor

What

Fix jupyter manifest contradiction and add setup.sh hooks for jupyter and dify.

Why

  • jupyter: manifest declared JUPYTER_TOKEN as required: false but compose uses :? (hard fail). Users hit a compose error despite the manifest suggesting the token is optional.
  • dify: has DIFY_SECRET_KEY correctly declared as required but no auto-generation. Service is disabled (compose.yaml.disabled) but the hook prepares secrets for when users enable it.

How

  • jupyter: changed required: false to required: true in manifest, added setup_hook: setup.sh
  • dify: added setup_hook: setup.sh to manifest
  • Created setup.sh scripts using openssl rand -hex 32 for both services
  • Scripts are POSIX sh, idempotent

Scope

All changes within resources/dev/extensions-library/services/{jupyter,dify}/.

Testing

  • Automated: shellcheck, YAML validation
  • Manual: fresh install with jupyter enabled, verify token in .env, verify compose starts, verify Jupyter UI accepts generated token

Review

Critique Guardian: APPROVED WITH WARNINGS (minor: dify hook runs on all installs even when disabled — intentional)

Suggested merge order

Independent of other batch C PRs.

@yasinBursali yasinBursali changed the base branch from resources/dev to main March 24, 2026 10:40
@yasinBursali yasinBursali changed the base branch from main to resources/dev March 24, 2026 10:42
jupyter: fix manifest contradiction (required: false vs compose :?)
and add setup.sh to auto-generate JUPYTER_TOKEN.

dify: add setup.sh to auto-generate DIFY_SECRET_KEY. Service remains
disabled (compose.yaml.disabled) but the hook prepares secrets for
when users enable it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yasinBursali yasinBursali force-pushed the ext/fix-setup-hooks-c2 branch from 9c7df73 to 566a5ef Compare March 24, 2026 11:10
@yasinBursali
Copy link
Contributor Author

Rebased on latest resources/dev (af07063). This PR has no file overlap with any other open PR and can be merged independently in any order.

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