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

Check that Hetzner returns 2FA info message #24

Open
nh2 opened this issue Jun 20, 2017 · 5 comments
Open

Check that Hetzner returns 2FA info message #24

nh2 opened this issue Jun 20, 2017 · 5 comments

Comments

@nh2
Copy link
Contributor

nh2 commented Jun 20, 2017

I've put in a support ticket with Hetzner that instead of 401 - Unauthorized they should return a more descriptive error code when using the API fails because 2-factor auth is enabled.

Their reply:

thank you for your suggestion. We will add a info about 2fa in the error message.

We should check soon if that is really returned.

@aszlig
Copy link
Owner

aszlig commented Jun 20, 2020

We should check soon if that is really returned.

@nh2: Did they change it?

@nh2
Copy link
Contributor Author

nh2 commented Jun 20, 2020

I have not checked it yet, this is the last message I got on the topic.

@aneagoe
Copy link

aneagoe commented Apr 27, 2023

If 2fa is enabled on account, is there a way to leverage the API?

@markuman
Copy link

markuman commented Nov 29, 2024

That's not possible and not necessary. Because the requested username and password it not the one you're using for sign-in in your hrobot account.

You must generate a special user for hrobot webservice usage. It's very likey to API Key and Secret that are generated for other services ...

To be able to use the interface, a web service user is required. You can create this user in Robot via the user menu in the upper right corner under "Settings" -> "Web service and app settings".

https://robot.hetzner.com/doc/webservice/en.html#preface

@nh2
Copy link
Contributor Author

nh2 commented Nov 30, 2024

You must generate a special user for hrobot webservice usage. It's very likey to API Key and Secret that are generated for other services ...

@markuman I recently learned that as well.

But was it always like that? I'm reasonably sure that I could use the main Robot account in the past.

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

No branches or pull requests

4 participants