-
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
Unable to use restore from backup due to missing authentication #15
Comments
AFAIS this is caused by a missing |
This patch fixes the API spec to add authentication to the POST /system/restore endpoint. Fixes: #15
This should now work both for the unauthenticated/complete restore and the authenticated/partial restore. Please report back if there are still issues with it. |
Oof, I was under the impression, that this has already been added in a released version of nethsm-sdk-rs. I'm currently testing on the actual hardware but am still running into this issue unfortunately. |
Alright, after using a88b461 I am now able to do restore from backup on an already provisioned system. (I have sent test cases, wireshark dumps and shell logs out of band). |
AFAIS the unprovisioned case has now been fixed too so this is really resolved. |
Hi! 👋
I'm using this crate in the nethsm crate and noticed that one of the endpoints that reliably fails for me is the one for restoring from backup (I always get a 400 response code).
I have already reported this in the nethsm repository, please see Nitrokey/nethsm#5 for further details.
In short, it appears as if authentication and authorization handling is missing in the relevant function:
nethsm-sdk-rs/src/apis/default_api.rs
Lines 3353 to 3401 in 569321d
Compare to:
nethsm-sdk-rs/src/apis/default_api.rs
Lines 3300 to 3349 in 569321d
I am tracking this issue downstream in https://gitlab.archlinux.org/archlinux/signstar/-/issues/8
The text was updated successfully, but these errors were encountered: