Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Sympl Sympl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Sympl
  • SymplSympl
  • Issues
  • #323

Closed
Open
Created Apr 24, 2022 by Christopher Wilkinson@techwilk

disable-filesystem-security: Can’t disable with config/disable-filesystem-security

Summary

According to multiple pages in the wiki, you can use /srv/example.com/config/disable-filesystem-security to disable on a per-site basis. However only ${domain}/config/do-not-secure for per-site or /etc/sympl/disable-filesystem-security for server-wide works.

https://wiki.sympl.io/view/Website_Configuration_Reference#Filesystem_Permissions

https://wiki.sympl.io/view/Configuration_Reference

See line 170 in the sympl-filesystem-security script

https://gitlab.mythic-beasts.com/sympl/sympl/-/blob/bullseye/core/sbin/sympl-filesystem-security#L170

Steps to reproduce

  • Create /srv/example.com/config/disable-filesystem-security
  • change ownership of any file in the public directory
  • run sudo sympl-filesystem-security
  • the ownership is changed back, despite the script supposedly being disabled for this domain

Example Project

See the script’s code, it doesn’t check on the file described in the wiki. It only checks the global config file, not the domain specific one.

https://gitlab.mythic-beasts.com/sympl/sympl/-/blob/bullseye/core/sbin/sympl-filesystem-security#L170

What is the current bug behavior?

Doesn’t disable filesystem ownership changes in the domain

/srv/example.com/config/disable-filesystem-security

What is the expected correct behavior?

According to multiple pages in the wiki, you can use /srv/example.com/config/disable-filesystem-security to disable on a per-site basis. However only ${domain}/config/do-not-secure works.

https://wiki.sympl.io/view/Website_Configuration_Reference#Filesystem_Permissions

https://wiki.sympl.io/view/Configuration_Reference

Possible fixes

See line 170 in the sympl-filesystem-security script

https://gitlab.mythic-beasts.com/sympl/sympl/-/blob/bullseye/core/sbin/sympl-filesystem-security#L170

/cc @kelduum

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking