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

VCR: Add trusted issuers #149

Merged
merged 72 commits into from
Mar 18, 2021
Merged

VCR: Add trusted issuers #149

merged 72 commits into from
Mar 18, 2021

Conversation

woutslakhorst
Copy link
Member

@woutslakhorst woutslakhorst commented Mar 15, 2021

closes #134

The trustConfig is configurable via a different file. Location is data_dir/trusted_issuers.yaml
There's also an API to add trust/remove trust which also saves the file.
This comes in handy for testing and on-the-fly adding of trust.
It's expected that a production network doesn't need these but only uses the file.

It's expected that this will change a lot when more different types of VCs and different proof types are added. For now it fills a basic need.

author Wout Slakhorst <wout.slakhorst@nedap.com> 1613478142 +0100
committer Wout Slakhorst <wout.slakhorst@nedap.com> 1614170222 +0100
gpgsig -----BEGIN PGP SIGNATURE-----

 iQEzBAABCAAdFiEE7J+WX+qKnh5/rHMTXC0I4qbxRDAFAmA2SG4ACgkQXC0I4qbx
 RDD9hQgAkReJ3lsQVNl3SJTwHFNLzK5cg6VYyD+m94Sf/lCNez5q0liE/rtZOznA
 9GGhrf3d3l10RpjKeoTke+n57khXku9aMpGEhEwuNvramilP2NrcidHV0AIP/lPr
 5Lswmy1Uvcc2MLNhc9ftGjcmTXHfrm9DTZFDjIgqQ12MyC0OXHDXsqWka1E0D8fN
 /4RVG5wf3sxcCgy0/q8CwKATDUerCLmHZEZSCSPCunszVv03blOFj/ZI+202HRSH
 DkLCnHm7i33iWUMye1dzZczFu1RIJCOxyOV2Qvw3KfOCLDP6FcF+2/3WZ9L8lGnm
 TeWz8I6hCaqnL7CYT3fJgmE1W7CuVQ==
 =oY0J
 -----END PGP SIGNATURE-----

Added support for Verifiable Credentials:
- concept mapping infrastructure
- instance
- search method on instance
- api spec

this is part of #69

updated nuts libs

fixed generator

go-did update and simplified API return for organization search

add xperimental concept mapping

added example integration for API and network

Updated to latest version of go-did library (#72)

Co-authored-by: Rein Krul <info@reinkrul.nl>

No longer save pubKey in KeyCreator.New (#70)

* No longer directly save a pubKey from in KeyCreator.New

switched go-did back to improve-api branch

something that compiles

connected credential engine

changed pub fields to methods and priv fields

fixed template indexing code

gofmt

some comments

add query tests

completed query.go tests

more template tests

added first test set for credential store

gofmt and goimport

test fix

ignore API for this PR

codeclimate stuff

more interfaces

regen mocks

gofmt:
The trustConfig is configurable via a different file. Location is in the data_dir/trusted_issuers.yaml
There's also an API to add trust/remove trust which also saves the file. This comes in handy for testing and on-the-fly adding of trust.
It's exptected that a production network doesn't need these but only uses the file.
@woutslakhorst woutslakhorst changed the title Add trusted issuers VCR: Add trusted issuers Mar 15, 2021
@codecov
Copy link

codecov bot commented Mar 15, 2021

Codecov Report

Merging #149 (e4336c1) into master (e153cb6) will increase coverage by 0.18%.
The diff coverage is 87.87%.

Impacted Files Coverage Δ
vcr/vcr.go 80.62% <78.57%> (-0.44%) ⬇️
vcr/trust/trust.go 86.36% <86.36%> (ø)
vcr/api/v1/api.go 92.50% <100.00%> (+3.61%) ⬆️

@woutslakhorst woutslakhorst mentioned this pull request Mar 15, 2021
2 tasks
@woutslakhorst woutslakhorst marked this pull request as ready for review March 15, 2021 17:48
docs/_static/vcr/v1.yaml Outdated Show resolved Hide resolved
docs/_static/vcr/v1.yaml Outdated Show resolved Hide resolved
docs/_static/vcr/v1.yaml Show resolved Hide resolved
docs/_static/vcr/v1.yaml Outdated Show resolved Hide resolved
docs/_static/vcr/v1.yaml Outdated Show resolved Hide resolved
vcr/vcr.go Outdated Show resolved Hide resolved
vcr/trust.go Outdated Show resolved Hide resolved
vcr/trust.go Outdated Show resolved Hide resolved
vcr/trust.go Outdated Show resolved Hide resolved
vcr/trust.go Outdated Show resolved Hide resolved
vcr/api/v1/api.go Outdated Show resolved Hide resolved
vcr/trust/trust.go Outdated Show resolved Hide resolved
@woutslakhorst woutslakhorst merged commit 3a75d99 into master Mar 18, 2021
@woutslakhorst woutslakhorst deleted the iss134_vcr_trusted_issuers branch March 18, 2021 15:07
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.

VCR: add trust to credentials
2 participants