Skip to content
New issue

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

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

Already on GitHub? # to your account

Update the CLIs & Console to support the new content serve authorization flow #207

Closed
4 tasks done
Tracked by #135
fforbeck opened this issue Dec 4, 2024 · 2 comments
Closed
4 tasks done
Tracked by #135
Assignees

Comments

@fforbeck
Copy link
Member

fforbeck commented Dec 4, 2024

  • The w3cli is using a very old version of the w3up-client (v14.1.1), we will need to update to the latest version (17.1.0) and solve any breaking changes.
  • The storacha/cli needs to be updated as well to support the new createSpace function.
  • The w3ui/core was updated to use the storacha/cli, so we first need to release the storacha/cli and then update and release the w3ui/core lib.
  • The Console app depends on w3ui/core which needs to be updated, core is using storacha/client instead of w3up-client, so we need to that lib to use the latest version of the @web3-storage/w3up-client.
@fforbeck fforbeck self-assigned this Dec 4, 2024
@fforbeck fforbeck changed the title Update the Console App to use the latest w3up-client (content serve auth) Update the Console & CLI to use the latest w3up-client (content serve auth) Dec 10, 2024
@fforbeck
Copy link
Member Author

@fforbeck fforbeck changed the title Update the Console & CLI to use the latest w3up-client (content serve auth) Update the Console & CLIs to use the latest w3up-client (content serve auth) Dec 13, 2024
@fforbeck fforbeck changed the title Update the Console & CLIs to use the latest w3up-client (content serve auth) Update the CLIs & Console to support the new content serve authorization flow Dec 13, 2024
fforbeck added a commit to storacha/upload-service that referenced this issue Dec 19, 2024
…ay (#99)

To enable a gateway to serve content from a specific space, we must
ensure that the space owner delegates the `space/content/serve/*`
capability to the Gateway. This delegation allows the Gateway to serve
content and log egress events appropriately.

I created a new function `authorizeContentServe` for this implementation
and included it in the `createSpace` flow. This is a breaking change
because now the user is forced to provide the DIDs of the Content Serve
services, and the connection, or skip the authorization flow.

Additionally, with the `authorizeContentServe` function, we can
implement a feature in the Console App that enables users to explicitly
authorize the Freeway Gateway to serve content from existing/legacy
spaces.

- **New Functionality:** 
- Added a new function, `authorizeContentServe`, in the `w3up-client`
module to facilitate the delegation process. Integrated it with the
`createdSpace` flow.
- It also sets the Storacha Gateway as the default content server
service in case the user doesn't provide any in the `createSpace` call,
and doesn't use the `skipGatewayAuthorization=true` flag.
- **Testing:** Introduced test cases to verify the authorization of
specified gateways.
- **Fixes:** Resolved issues with previously broken test cases (Egress
Record).

### Related Issues
- storacha/project-tracking#158
- storacha/project-tracking#160
- storacha/project-tracking#207
- storacha#1604
- Resolves storacha/project-tracking#196
fforbeck added a commit to storacha/w3cli that referenced this issue Dec 19, 2024
### Context
We must ensure that the space owner delegates the
`space/content/serve/*` capability to the Gateway. This delegation
allows the Gateway to serve content and log egress events appropriately.

### Changes
I've updated the CLI to enable the new gateway content serve
authorization flow when creating a space. This is a breaking change
because now the user is forced to provide the DIDs of the Content Serve
services, and the service endpoint, or skip the authorization flow.

### Related Issues
- storacha/project-tracking#158
- storacha/project-tracking#160
- storacha/project-tracking#207
- Resolves storacha/project-tracking#196
@fforbeck
Copy link
Member Author

fforbeck commented Jan 9, 2025

@fforbeck fforbeck closed this as completed Jan 9, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant