Comments (9)
@Avielyo10 why are you using that? that's just a test script - you should borrow from that and just consume the API in your own Go code
from fido-device-onboard-rs.
I created a wrapper around the lib, I'm not using the test script.
This function is critical for using the lib, shouldn't the lib provide the validation?
from fido-device-onboard-rs.
@runcom https://github.com/Avielyo10/edge-api/blob/fdo-client/pkg/services/ownershipvoucher/ownershipvoucher.go#L20
from fido-device-onboard-rs.
@runcom https://github.com/Avielyo10/edge-api/blob/fdo-client/pkg/services/ownershipvoucher/ownershipvoucher.go#L20
oh so that was a bad link at the top :) - would be helpful if you provide the panic as well - @puiterwijk ?
https://github.com/Avielyo10/edge-api/blob/fdo-client/pkg/services/ownershipvoucher/ownershipvoucher.go#L21 (defer comes after you check for nil
also)
from fido-device-onboard-rs.
Yes sorry, my bad lol
defer comes after you check for
nil
also
Because in case I'm returning because of a nil
I want it to be invoked
from fido-device-onboard-rs.
panic will crush the server, unless I'll create recover()
- a bit redundant for this specific case IMO
from fido-device-onboard-rs.
Right, we really should not be panicking. Is there any chance you could share the panic, as @runcom mentioned, as that is a critical bug to us.
from fido-device-onboard-rs.
Okay, reproduced it, and will make sure this gets fixed.
from fido-device-onboard-rs.
thanks @puiterwijk
from fido-device-onboard-rs.
Related Issues (20)
- Wrong serialization of error messages. HOT 1
- Merging the Service Info API into the Owner Onboarding Server HOT 1
- Make sure that our implementation complies with the minimum requirements HOT 1
- Implement the `fido_alliance:dev_conformance` FSIM
- consider renaming Quay org to match the new GitHub org
- Support Non-EC keys for COSE signatures HOT 11
- [Spike] Rework trusted manufacturer checks. HOT 3
- Tests not working on non-devcontainer environments
- Database tests fail if no env variables are set and when they are run twice. HOT 1
- `commitlint` is broken, CI gets stuck
- `serde_cbor` is unmaintained HOT 1
- [SPIKE] Investigate whether `cose-rust` can replace `aws-nitro-enclaves-cose` to provide EC crypto and RSA crypto HOT 2
- Add a `sqlite` config option to the `aio` option of `fdo-admin-cli` HOT 2
- Selinux blocked FDO pgsql DB connection HOT 5
- no fdo-manufacturing-client in edge device HOT 2
- Enhance CI to perform end-to-end tests based on RPM-built code HOT 3
- cannot initialize fido sqlite db HOT 1
- Owner Onboarding Server fails to deserialize extended ownership vouchers
- Verify the device certificate chain in Rendezvous and Onboarding servers
- fdo-owner-tool: export OVs uses the new export REST API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fido-device-onboard-rs.