-
-
Notifications
You must be signed in to change notification settings - Fork 7
Harden trixie #92
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
Harden trixie #92
Conversation
…wnloads are not rendered in browser
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
Fixes many bugs and adds many new environment variables:
Dashboard
DASHBOARD
- allows the user to set their dashboard from current options selkies-dashboard selkies-dashboard-zinc selkies-dashboard-wish.File path
FILE_MANAGER_PATH
- modifies the default upload/download file pathMeta Tags
HARDEN_DESKTOP
- enablesDISABLE_OPEN_TOOLS
DISABLE_SUDO
DISABLE_TERMINALS
if unset by user app settingsSELKIES_FILE_TRANSFERS
SELKIES_COMMAND_ENABLED
SELKIES_UI_SIDEBAR_SHOW_FILES
SELKIES_UI_SIDEBAR_SHOW_APPS
HARDEN_OPENBOX
- enablesDISABLE_CLOSE_BUTTON
DISABLE_MOUSE_BUTTONS
HARDEN_KEYBINDS
and flagsRESTART_APP
if unset by user as the app needs to be auto restart without any kind of launch ability.Hardening env vars
DISABLE_OPEN_TOOLS
- If set, disablesxdg-open
andexo-open
binaries by removing their execute permissions.DISABLE_SUDO
- If set, disables thesudo
command by removing its execute permissions and invalidating the passwordless sudo configuration.DISABLE_TERMINALS
- If set, disables common terminal emulators by removing their execute permissions and hiding them from the Openbox right-click menu.DISABLE_CLOSE_BUTTON
- If set, removes the close button from window title bars in the Openbox window manager.DISABLE_MOUSE_BUTTONS
- If set, disables the right-click and middle-click context menus and actions within the Openbox window manager.HARDEN_KEYBINDS
- If set, disables default Openbox keybinds that can bypass other hardening options (e.g.,Alt+F4
to close windows,Alt+Escape
to show the root menu).RESTART_APP
- If set, enables a watchdog service that automatically restarts the main application if it is closed. The user's autostart script is made read-only and root owned to prevent tampering.This allows single app containers to be locked to the app, when passing like
-e HARDEN_DESKTOP=true
and-e HARDEN_OPENBOX=true
to a container it becomes a single app instance that the client really cannot change anything about the container just stay in the app sandbox.example :
This all depends on the app but stuff like chromium uses xdg-open to open files or file managers so it really is isolated down to its base function and cannot spin up random bins from its file:// url scheme. Even extensions would be forced to use that standardized api as far as I understand it.