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

removes 'source_v2_url' field from SI metadata endpoint #5926

Merged
merged 1 commit into from May 19, 2021

Conversation

zenmonkeykstop
Copy link
Contributor

@zenmonkeykstop zenmonkeykstop commented May 4, 2021

Status

Ready for review

Description of Changes

Super-closes #5731

Removes the v2 source URL from the Source Interface /metadata endpoint.

Testing

Dev

  • run make dev and visit http://localhost:8080/metadata
    • verify that the v2_source_url field is not present
    • verify that the v3_source_url field is present with a null value
  • log into the docker container with docker exec -it securedrop-dev-0 bash
  • create a file /var/lib/securedrop/source_v3_url containing a valid v3 address (56-char.onion, no protocol)
  • create a file /var/lib/securedrop/source_v2_url containing a valid v2 address (16-char.onion no protocol)
  • visit http://localhost:8080/metadata
    • verify that the v2_source_url field is not present
    • verify that the v3_source_url field is present with the value from the source_v3_url file.

Deployment

Deployed with app-code .deb install/upgrade.

Checklist

If you made changes to the server application code:

  • Linting (make lint) and tests (make test) pass in the development container

If you added or removed a file deployed with the application:

  • I have updated AppArmor rules to include the change

If you made non-trivial code changes:

  • I have written a test plan and validated it for this PR

Choose one of the following:

  • I have opened a PR in the docs repo for these changes, or will do so later
  • I would appreciate help with the documentation
  • These changes do not require documentation

@zenmonkeykstop zenmonkeykstop requested a review from a team as a code owner May 4, 2021 22:23
@eloquence eloquence added this to the 2.0.0 milestone May 11, 2021
@eloquence eloquence added this to Near Term - SecureDrop Core in SecureDrop Team Board May 11, 2021
Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works beautifully. Thanks, @zenmonkeykstop.

Super-closes #5731

❤️ 😎

@conorsch conorsch merged commit c399374 into develop May 19, 2021
SecureDrop Team Board automation moved this from Near Term - SecureDrop Core to Done May 19, 2021
@zenmonkeykstop zenmonkeykstop mentioned this pull request Jun 14, 2021
39 tasks
@rmol rmol deleted the remove-v2-metadata branch June 23, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Remove support for v2 Onion Services
3 participants