-
Notifications
You must be signed in to change notification settings - Fork 23
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
Propsoal: Trim the voucher protocol #178
Comments
I used descriptive names so i was able to understand what i was doing and actually make something work. Remember this is all super complex. We can rename those at any point.
can you give an example please ?
We can definitely adjust that, at the time this was the only way to make it work with tests and type checking.
Regarding the nft.storage example my view is that we will transfer the ownership of the space not the subscription, nft.storage DAO will still pay us to store data. I dont see the business need to allow users to create their own subscriptions plans that web3.storage would support. What we need to figure out is how users pay for a subscription and get back a subscription receipt that they can apply to a space. We dont need did or keys to do that. If and when we see that our customers are asking us to enable them to build businesses not only on top our storage system but also our billing system thats when we can think about defining a protocol where customers can create their own subscription and use our billing system to get paid.
|
🤖 I have created a release *beep* *boop* --- ## [3.0.1](storacha/w3ui@vue-uploader-v3.0.0...vue-uploader-v3.0.1) (2022-12-15) ### Bug Fixes * update dependencies ([996871f](storacha/w3ui@996871f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [3.0.1](storacha/w3ui@vue-uploader-v3.0.0...vue-uploader-v3.0.1) (2022-12-15) ### Bug Fixes * update dependencies ([c4752b0](storacha/w3ui@c4752b0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
### Context - Error while creating a new space in production: > create:1 Access to fetch at 'https://w3s.link/' from origin 'https://console.storacha.network' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request. ### Issue - I was using the `w3s.link` as the gateway host to be authorized to serve the space content, but the cors policy defined in the `w3s.link` doesn't allow redirects for a preflight request. - It doesn't happen in staging because in staging I am using the actual gateway, and not the proxy: `freeway-staging.dag.haus`. ### Fix - Authorize the actual production gateway instead of the proxy: `https://freeway.dag.haus`.
🤖 I have created a release *beep* *boop* --- ## [1.17.3](storacha/console@w3console-v1.17.2...w3console-v1.17.3) (2025-01-09) ### Bug Fixes * cors preflight issue in production ([storacha#178](storacha/console#178)) ([1b1b79a](storacha/console@1b1b79a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Context
Not a long ago I proposed changes to the simplify voucher protocol and to reconcile what is in the spec vs what is implemented #163 I even claimed there was an issue before there was a PR, but turns out there was no issue so I'm creating one retroactively.
Problems
account
,service
andproduct
are not ideal. We are already renaming that think we calledaccount
to thing calledspace
and I'm not even sure we've settled on that new name.[did, id]
and samedid
then shows up invoucher/redeem
in three different fieldswith
,iss
,service
. I've made a case that we should just use did and drop the secondaryid
, I'll elaborate on why belowspace
(formallyaccount
) allowing agent to pass it along or tie to whateverspace
it wants without having to communicate it ahead of time. Implementation simply ties to thewith
field that came in request.Proposal overview
I have proposed to identify subscription / plan / product / (you name it) by did:key identifier for following reasons:
[ourDID, madeupURI]
we can not simply transfer ownership to another organization, because it's tied to our DID and corresponding keys. On the other hand if it's independent DID we can transfer private key of it independent of any other "subscription"s or service private keys.product
andservice
from the protocol because it's just a resource which is identified viawith
.(we can come up with different name, please don't get stuck on the name)
Counter arguments
ali
,bob
andmal
.did:key:zKey?name=free-plan
[notOurDID, ourID]
don't we have same problem ? In fact it's worth becauseourID
can deceive us ignoringnotOurDID
.The text was updated successfully, but these errors were encountered: