Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 warning still showing even with only v3 enabled service #5715

Closed
5 tasks
kushaldas opened this issue Jan 18, 2021 · 2 comments · Fixed by #5726
Closed
5 tasks

V2 warning still showing even with only v3 enabled service #5715

kushaldas opened this issue Jan 18, 2021 · 2 comments · Fixed by #5726

Comments

@kushaldas
Copy link
Contributor

Description

This instance had both v2 and v3 onion services enabled. It was showing the red banner asking to Complete the v3 onion Services setup ... banner. After disabling v2 and keeping only v3 service, and it is still showing the same banner.

Steps to Reproduce

  • prod vm with both v2+v3 running
  • disable v2 via ./securedrop-admin sdconfig and then ./securedrop-admin install

Expected Behavior

  • The journalist interface should not show any banner

Actual Behavior

  • The journalist interface is still showing the banner
  • /var/lib/securedrop has source_v3_url file, no v2 file there.

Comments

Suggestions to fix, any other relevant information.

@emkll
Copy link
Contributor

emkll commented Jan 18, 2021

Thanks @kushaldas I did manage to reproduce this. However, after restarting Apache or rebooting the application server, I no longer observe the banner. The app config is populated once the application starts with Apache, and prior to the webserver restarting, the old value for V2_ONION_ENABLED is in the configuration.

Can you try accessing the journalist interface again on the app server (after reboot) to ensure that it resolves? If so, we could consider adding a task to the playbooks to restart Apache after completing a v2->v3 migration

@emkll emkll removed their assignment Jan 18, 2021
@zenmonkeykstop
Copy link
Contributor

Replicated while QAing by:

  • installing v2+v3
  • updating to v3-only

The message still shows, but restarting apache with ssh app sudo systemctl restart apache2 clears it.

As per @emkll, this can probably be most easily resolved by adding an apache restart in the install playbook after those files are changed, or - even easier - noting in the docs that the message will persist until the next nightly reboot and can be removed by restarting apache as above.

@emkll emkll added this to SecureDrop Sprint #64 - 1/6-1/20 in SecureDrop Team Board Jan 19, 2021
@eloquence eloquence changed the title V2 warning still showing even wtih only v3 enabled service V2 warning still showing even with only v3 enabled service Jan 19, 2021
SecureDrop Team Board automation moved this from SecureDrop Sprint #64 - 1/6-1/20 to Done Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
4 participants