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

SS_ADMINER_PUBLIC="false" does not work as intended. #196

Closed
NathanAdhitya opened this issue Apr 15, 2023 · 9 comments
Closed

SS_ADMINER_PUBLIC="false" does not work as intended. #196

NathanAdhitya opened this issue Apr 15, 2023 · 9 comments

Comments

@NathanAdhitya
Copy link

Issue

On version APR2023K, SS_ADMINER_PUBLIC set to "false" still exposes Adminer to the public web.

@jessuppi
Copy link
Member

Related: #73

@jessuppi
Copy link
Member

jessuppi commented May 7, 2023

Perhaps this is another feature that could be moved to our new Nginx includes approach, like:

/var/www/sites/includes/adminer.conf

@jessuppi
Copy link
Member

If we end up doing something like:

https://wordpress.org/plugins/db-access-adminer/

Where it requires WP Admin authentication, the entire issue might be moot.

@jessuppi
Copy link
Member

Some patches:

fd74e7a

865024f

@jessuppi
Copy link
Member

These patches (above) are temporary, because they delete the adminer.php file in case SS_ADMINER_PUBLIC is set to false in your ss-config. Later on, we should consider a separate Nginx file for Adminer too.

@jessuppi
Copy link
Member

@jessuppi
Copy link
Member

We could probably also hide the Database tab in the SlickStack WP Admin Dashboard if this is set to false, that's something that a few developers had asked about.

@jessuppi
Copy link
Member

jessuppi commented Apr 3, 2024

Update: this option in ss-config is now called ADMINER_PUBLIC

@jessuppi
Copy link
Member

jessuppi commented Apr 3, 2024

Okay, Adminer is now officially a submodule for Nginx for SlickStack purposes... if ADMINER_PUBLIC="true" in your ss-config then the file adminer.conf will be installed to /var/www/sites/includes going forward, otherwise that file will be deleted if set to false for that option.

New script:
https://github.com/littlebizzy/slickstack/blob/master/bash/ss-install-nginx-adminer.txt

I've also removed the temporary fix in ss-clean-files which deleted /var/www/meta/adminer.php if ADMINER_PUBLIC was set to false... so that is no longer going to happen going forward.

Notes:

We could make this even stronger by adding a 403 denied or something to the Adminer URL, however, now that the URL is a randomized string it's probably not a concern.

@jessuppi jessuppi closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants