-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add authentication for system_restore_post #17
Conversation
@dvzrv Can you please test if this fixes your issue? |
Shouldn't the OpenAPI spec be fixed in the original |
@jans23 Yes, but this PR allows us to test the changes before it is fixed upstream. |
The corresponding NetHSM issue is: |
Without this change I get:
With this change I get:
I am running restore against an "operational" container. While the authentication error appears gone, I don't really know what to do about the 400, which is documented as
|
I am also getting a 400 when trying to restore an "unprovisioned" container from backup. |
Um, |
This patch fixes the API spec to add authentication to the POST /system/restore endpoint. Fixes: #15
46f2857
to
a88b461
Compare
FWIW: we implemented multipart after we changed to ureq, but because we only used the Rust SDK for the PKCS#11 module, which doesn't handle restore or updates, we didn't care. 😉 |
This patch fixes the API spec to add authentication to the
POST /system/restore
endpoint.Fixes: #15