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

Can't disable auth when using docker image #92

Open
conet opened this issue Feb 22, 2018 · 5 comments
Open

Can't disable auth when using docker image #92

conet opened this issue Feb 22, 2018 · 5 comments

Comments

@conet
Copy link

conet commented Feb 22, 2018

There is no way to unset the default auth using environment variables. This should be available when the service is secured by other means like a reverse proxy.

@luongvm
Copy link
Contributor

luongvm commented Feb 22, 2018

@conet if you run by one liner you can't do that. but if you use docker-compose or rebuild the docker image mabe you can modify the config.dist.php file and remove the auth section.

I'm pushing up a PR where you can disable auth by setting the PHPREDMIN_AUTH_USERNAME variable to empty.

@conet
Copy link
Author

conet commented Feb 22, 2018

Yeah I know that, but I want to be able to do it using environment variables only, rebuilding or mounting files makes a composition less self-contained, plus there is this statement on the main page:

Note: As you can see you can use ENV variables to override any configuration directive of PHPRedmin.

@luongvm
Copy link
Contributor

luongvm commented Feb 22, 2018

@conet please check #93, I just wrote this.

As I inspected, the config would not unset a config node that has children, so PHPREDMIN_AUTH= didn't work for me. (Need verification on this).

After #93 is merged you will be able to disable authentication by setting username to empty.

@conet
Copy link
Author

conet commented Feb 22, 2018

It looks good, thanks.

@Delagen
Copy link

Delagen commented Nov 14, 2018

Use volume mapping to override default config.php and all works (remove auth section)

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

3 participants