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

[BUG] UI config not being overridden by autoconf/scheduler #1302

Open
2 tasks done
cocoonkid opened this issue Jun 22, 2024 · 5 comments
Open
2 tasks done

[BUG] UI config not being overridden by autoconf/scheduler #1302

cocoonkid opened this issue Jun 22, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@cocoonkid
Copy link

cocoonkid commented Jun 22, 2024

What happened?

I have set basic auth in bunkerweb docker compose from the .env

image

image: bunkerity/bunkerweb:1.5.8
image

and it works. But when I set it in another services like invidious:
image

it still asks for auth. (EDIT: I fixed the typo there with bunkerweg is now bunkerweb)

I restarted & recreated all containers.
Also deleted all bunkerweb volumes and fully reinitialized with 1.5.8 but it still does not work as expected.

What could the problem be ?

How to reproduce?

Set basic auth for multisite. It works as expected.

set the following in docker compose of other service as

labels:
	  - "bunkerweb.USE_LIMIT_CONN=no"
      - "bunkerweb.USE_LIMIT_REQ=no"
      - "bunkerweb.USE_ANTIBOT=no"
      - "bunkerweb.USE_AUTH_BASIC=no"

get ignored.

Configuration file(s) (yaml or .env)

No response

Relevant log output

No response

BunkerWeb version

1.5.8

What integration are you using?

Docker

Linux distribution (if applicable)

Ubuntu 24.04

Removed private data

  • I have removed all private data from the configuration file and the logs

Code of Conduct

  • I agree to follow this project's Code of Conduct
@cocoonkid cocoonkid added the bug Something isn't working label Jun 22, 2024
@cocoonkid
Copy link
Author

cocoonkid commented Jun 22, 2024

I found the problem. As it looks I had basic auth set in the bunkerweb admin UI.
I must have done that literally years ago :-)
So I would recommend that a check get's added that will log an Info out like:

Basic Auth env var for service  {servicename }is configured differently from your Bunkerweb UI settings. Please make sure this is what you want. 

or any env var always overrides the UI settings. Or they autocorrect accordingly ?
does this make sense ?

@TheophileDiot TheophileDiot self-assigned this Jun 26, 2024
@TheophileDiot TheophileDiot changed the title [BUG] Basic auth for specific site override does not work. [BUG] UI config not being overridden by autoconf/scheduler Jun 26, 2024
@TheophileDiot
Copy link
Member

Hi @cocoonkid, thank you for opening this issue, I'll have a look and let you know !

@TheophileDiot
Copy link
Member

TheophileDiot commented Jun 26, 2024

I couldn't reproduce the issue, did you restarted your service correctly ?

docker compose -f myfile.yml down
docker compose -f myfile.yml up

@cocoonkid
Copy link
Author

Hi, sorry for taking time to reply.

I found this happens to all 1.5.7 that I updated to 1.5.8.
The webui settings suddenly overrode the settings from the compose file.

With 1.5.9 it seems to be ok again.
Will verify soon and report back.

@TheophileDiot
Copy link
Member

Hi @cocoonkid, thank you for the update !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants