fides icon indicating copy to clipboard operation
fides copied to clipboard

fix: add opt-out flag to fides init

Open mikemechanic1337 opened this issue 3 months ago • 2 comments

Summary

  • Closes #4703
  • add --opt-out flag to fides init so non-interactive setups can disable analytics
  • guard against mixing --opt-in/--opt-out and thread the new option through config creation
  • extend analytics consent unit tests and update the changelog entry

Testing

  • pytest tests/ctl/core/config/test_create.py

Manual Verification

  1. Ensure Docker Desktop is running and copy example.env to .env if needed.
  2. Launch the dev stack through nox and drop into the webserver container shell: nox -s dev -- shell. Once the shell opens, run:
    • mkdir -p /tmp/fides-init-check && cd /tmp/fides-init-check
    • fides init --opt-out
    • grep analytics_opt_out .fides/fides.toml (should read true)
    • fides init --opt-in --opt-out (fails with "--opt-in and --opt-out cannot be used together")
    • exit to leave the container shell.
  3. Execute the control-plane unit tests via nox: nox -s pytest -- ctl-unit. (This covers tests/ctl/core/config/test_create.py; alternatively run the file directly inside the container if preferred.)
  4. Tear everything down when finished: nox -s teardown -- volumes.

mikemechanic1337 avatar Sep 23 '25 23:09 mikemechanic1337

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
fides-privacy-center Ignored Ignored Sep 24, 2025 0:33am

vercel[bot] avatar Sep 23 '25 23:09 vercel[bot]

Someone is attempting to deploy a commit to the Ethyca Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 23 '25 23:09 vercel[bot]