Skip to content

feat: drop --generate-app-secret from env init recipe tests - #38

Merged
ROBJkE merged 1 commit into
mainfrom
cursor/drop-generate-app-secret-e408
Sep 17, 2026
Merged

ROBJkE merged 1 commit into
mainfrom
cursor/drop-generate-app-secret-e408

Conversation

@ROBJkE

@ROBJkE ROBJkE commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Align this private Flex recipe with fyrst-dev/cli#34. fyrst-cli shopware env init no longer generates APP_SECRET.

APP_SECRET stays Shopware’s: shopware-cli project create already writes it. Recipe tests and Flex-owned docs now treat env init as identity-only.

What changed

  • tests/init-env.test.sh: --generate-app-secret is rejected; empty APP_SECRET stays empty; existing APP_SECRET is still not clobbered. Identity behavior is unchanged (shop id, deploy env, optional IMAGE, --vps commenting COMPOSE_PROJECT_NAME, merge missing keys from .env.example).
  • tests/wrappers.test.sh: recipe docs must not mention --generate-app-secret.
  • Operator-facing recipe docs (post-install.txt, recipe README, repo README): env init does not generate APP_SECRET.

This recipe is thin (copy-from-package). There is no root/deploy/init-env.sh here anymore (removed in #37). Tests call fyrst-cli directly.

Out of this PR

  • fyrst-dev/cli — already landed in refactor: dispatch Flex overlay wrappers through one helper #34.
  • fyrst-dev/shopware-cd overlay — overlay/.env.example and overlay/deploy/README.md still mention --generate-app-secret. Those files are package overlay, not Flex recipe metadata. Follow-up belongs in shopware-cd, not here.
  • recipes-contrib / add-fyrst-shopware-cd — already a thin manifest.json + post-install.txt (merged as symfony/recipes-contrib#2049). No init-env.sh to mirror. Contrib post-install.txt never advertised the flag.

Tests

All six overlay scripts passed against fyrst-cli built from main (post #34): wrappers, init-env, sync-runtime, sync-dump, sync-rewrite, vps-hardening. Released 0.1.0 still has the flag; these checks need the post-#34 binary.

Open in Web Open in Cursor 

Align fyrst-cli shopware env init acceptance checks with fyrst-dev/cli#34.
APP_SECRET stays Shopware's (shopware-cli project create). env init still
sets identity keys, optional IMAGE, --vps, and merges missing .env.example
keys, and does not generate or rewrite APP_SECRET.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@ROBJkE
ROBJkE marked this pull request as ready for review September 17, 2026 04:26
@ROBJkE
ROBJkE merged commit 616dc54 into main Sep 17, 2026
@ROBJkE
ROBJkE deleted the cursor/drop-generate-app-secret-e408 branch September 17, 2026 05:00
ROBJkE added a commit to fyrst-dev/shopware-cd that referenced this pull request Sep 17, 2026
APP_SECRET stays Shopware's: shopware-cli project create writes it.
env init remains identity-only (shop id, deploy env, IMAGE, --vps,
merge from .env.example) and never rewrites APP_SECRET.

overlay/deploy/init-env.sh is not shipped (wrappers already removed).
Align overlay docs and package tests with fyrst-dev/cli#34 and
fyrst-dev/recipes#38.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
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