[GH-ISSUE #270] [Bug]: API keys fail when authentication is enabled #166

Closed
opened 2026-05-06 12:26:38 +02:00 by BreizhHardware · 1 comment

Originally created by @toskium on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/270

Originally assigned to: @maziggy on GitHub.

Bug Description

After deploying a fresh instance of Bambuddy and enabling authentication all generated API keys to fail authentication. Any API request using these keys returns the error message “Authentication required”.

When authentication is disabled (settings -> users -> disable), the API works as expected and API keys authenticate successfully.

This issue also occurs when testing the API keys via Bambuddy’s internal API browser.

Expected Behavior

API keys generated after installation should authenticate successfully and allow API access, regardless of whether authentication is enabled.

Steps to Reproduce

Enable authentication.
Generate an API key.
Use the API key in a request (or test it via the internal API browser).

Printer Model

P1S

Bambuddy Version

0.1.7

Printer Firmware Version

01.09.01.00

Installation Method

Docker

Operating System

Linux (Ubuntu/Debian)

Relevant Logs / Support Package

Unable to drag and drop support package here, attached as additional context.

Screenshots

No response

Additional Context

Logging out of the web UI and logging back in does not resolve the problem.

The behavior is consistent across all generated API keys.

bambuddy-support-20260204-210130.zip

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
Originally created by @toskium on GitHub (Feb 4, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/270 Originally assigned to: @maziggy on GitHub. ### Bug Description After deploying a fresh instance of Bambuddy and enabling authentication all generated API keys to fail authentication. Any API request using these keys returns the error message “Authentication required”. When authentication is disabled (settings -> users -> disable), the API works as expected and API keys authenticate successfully. This issue also occurs when testing the API keys via Bambuddy’s internal API browser. ### Expected Behavior API keys generated after installation should authenticate successfully and allow API access, regardless of whether authentication is enabled. ### Steps to Reproduce Enable authentication. Generate an API key. Use the API key in a request (or test it via the internal API browser). ### Printer Model P1S ### Bambuddy Version 0.1.7 ### Printer Firmware Version 01.09.01.00 ### Installation Method Docker ### Operating System Linux (Ubuntu/Debian) ### Relevant Logs / Support Package ```shell Unable to drag and drop support package here, attached as additional context. ``` ### Screenshots _No response_ ### Additional Context Logging out of the web UI and logging back in does not resolve the problem. The behavior is consistent across all generated API keys. [bambuddy-support-20260204-210130.zip](https://github.com/user-attachments/files/25080696/bambuddy-support-20260204-210130.zip) ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode
BreizhHardware 2026-05-06 12:26:38 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Feb 5, 2026):

Fixed in branch 0.1.8b. Please let me know if it works now.

<!-- gh-comment-id:3851403651 --> @maziggy commented on GitHub (Feb 5, 2026): Fixed in branch 0.1.8b. Please let me know if it works now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#166
No description provided.