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

CLI tool to facilitate populating ZKAPs #447

Open
meejah opened this issue Mar 8, 2023 · 0 comments
Open

CLI tool to facilitate populating ZKAPs #447

meejah opened this issue Mar 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@meejah
Copy link
Collaborator

meejah commented Mar 8, 2023

While writing a document discussing how to use some experimental new features in magic-folder, we identified that it would be nice to have a CLI tool to accomplish the steps required to populate the ZKAP database with valid tokens.

For Private Storage specifically, this would do approximately what the GUI does but without needing to launch a Qt + Python GUI and a Web page. This would make sense for humans who don't want to use a GUI or for automated / headless systems like CI machines.

These steps include (but might not be limited to):

  • create a voucher
  • use Strip to pay for that voucher
  • redeem the voucher at Private Storage's payment server
  • put the resultant ZKAPs in the database

Mostly this means calling some HTTP APIs on the ZKAPAuthorizer running in a Tahoe-LAFS client on the local machine. The "use Stripe" part might be accomplished via https://stripe.com/docs/stripe-cli/overview at least for "staging" / non-production cases. For production, there might not be a way around the "use a Web browser" part. (These parts require investigation).

@meejah meejah added the enhancement New feature or request label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant