BigBoot / AutoKuma

AutoKuma is a utility that automates the creation of Uptime Kuma monitors based on Docker container labels. With AutoKuma, you can eliminate the need for manual monitor creation in the Uptime Kuma UI.
MIT License
309 stars 15 forks source link

API Key Access #83

Closed undaunt closed 2 months ago

undaunt commented 2 months ago

Hello,

I may be misunderstand the current MFA token implementation, but when I set up MFA with Uptime Kuma and launch Autokuma, login works temporarily until the current MFA code expires, then I am no longer able to connect and start getting login errors.

Is it possible to use an API key to access Uptime Kuma continuously via Autokuma while having MFA enabled? Else, I'll disable MFA.

Thank you.

BigBoot commented 2 months ago

Hmm you're right, in that case an MFA token doesn't really make sense. I'm not using the built-in authentication so I never bothered with it. Unfortunately the API keys in uptime kuma serve a different purpose, so I guess the only solution is to disable MFA.

undaunt commented 2 months ago

Understood, thank you!

Menschomat commented 1 month ago

So no chance to get this working with built-in MFA?

BigBoot commented 1 month ago

The only way I see is to generate 2FA a new token from the secret for every login, so you'd have to give your 2FA secret to autokuma. Would this be an acceptable solution?