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

hs-ucan upgrade #586

Closed
wants to merge 25 commits into from
Closed

hs-ucan upgrade #586

wants to merge 25 commits into from

Conversation

matheus23
Copy link
Member

These are breaking hs-ucan v0.7 changes right now.
The tests are messy, but it happily reads ts-ucan v0.7 UCANs and computes their capability scope.

This is a draft, because I'm in the process of upgrading to UCAN v0.8.1. I figured this is interesting nonetheless.

The base of this branch is ucan-upgrade, not main, because I'm solely working in hs-ucan/ for now, and leave the rest of the monorepo in a non-compiling state.

matheus23 and others added 5 commits February 4, 2022 17:59
* Write DID signature verification & tests

* Write failing rsa DID test

* Move over DID tests

* Manually import core changes from ##550

* Niv update

* Remove redundant test

* Parse ASN1 DER RSAPublicKeys

* Adjust test fixture to use new format

* Fix fission-cli type errors

* Get everything compiling

* Fix one remaining type error

* Fix type error

* Revert "Niv update"

This reverts commit 3a11d68.

* Cherry-pick some changes from "Niv update"

* Remove AllowAmbiguousTypes

* Move Test.Prelude to Test.Web.UCAN.Prelude

* Re-add AllowAmbigousTypes for DelegationSemantics

I'm pretty sure I need this? https://github.com/fission-suite/fission/runs/5005311975

* Revert encoding DIDs in new format

The rest of the system needs to understand the new format first!
Still, we can now *consume* the new format in the server/CLI.

* Remove unused orphan
* pdns environment handling

* powerdns client for setting records

* add get/clear and support tls

* pr changes

* add syncDNS task

* review cleanup

* Cleanup style

* Adjust imports (remove unused, cleaner qualifieds)

Co-authored-by: Brooklyn Zelenka <hello@brooklynzelenka.com>
Adds explicit error messages for a few failure cases, and
brings the existing errors in line with each other to share
a consistent tone.

In particular, error messages were added for:
- running `app publish` with an unregistered app
- running `app register` without logging in
- running `whoami` without logging in
* add docker-compose based setup for local dev

- pdns (auth + resolver)
- postgresql

* add ipfs docker container

* doc / config updates

* env.yaml -> server.yaml
@matheus23 matheus23 mentioned this pull request Mar 28, 2022
@matheus23 matheus23 requested a review from expede March 28, 2022 17:44
@matheus23 matheus23 changed the base branch from ucan-upgrade to main March 30, 2022 10:41
@matheus23 matheus23 changed the base branch from main to ucan-upgrade March 30, 2022 10:41
@matheus23
Copy link
Member Author

Closing, because diffs render incorrectly in github when you force-push the base branch :(

@matheus23 matheus23 closed this Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants