Giter Site home page Giter Site logo

Comments (10)

OnGle avatar OnGle commented on July 2, 2024

A fresh installation of matomo on debian 9 stretch still gives warning about /usr/share/matomo/README.md.gz.

In addition matomo complains that piwik.js is not writable. IIR this is bad form, files in /usr subdirectories should be readonly and only be modified by package management. Variable non config should go in subdirectories of /var, see FHS (I think debian currently adhears mostly to the 2.3 version of the FHS but I'm not sure on that.)

from matomo-package.

aureq avatar aureq commented on July 2, 2024

@OnGle The README.md.gz relates to the package creation itself. Debian automatically compresses documentation files to save space. I'm not sure yet what's the best way of fixing this.

Regarding piwik.js it's more problematic since it's core to Matomo's functionality and making it Read/Write could lead to security problems being served to visitors. @mattab Rather than having a RW piwik.js, could we have a separate include pointing to a RW location instead?

from matomo-package.

OnGle avatar OnGle commented on July 2, 2024

@aureq Fwiw I believe it is quite common for README, INSTALL, etc files to be put in /usr/share/doc/<package_name>/ just doing a quick find /usr/share/doc -iname 'README*' shows a large amount of both compressed and uncompressed README files. (Ignore this if moving the files from the project root does not remove the system integrity message)

from matomo-package.

mattab avatar mattab commented on July 2, 2024

Regarding piwik.js it's more problematic since it's core to Matomo's functionality and making it Read/Write could lead to security problems being served to visitors. @mattab Rather than having a RW piwik.js, could we have a separate include pointing to a RW location instead?

Actually we now "require" that piwik.js is made writable.
-> So would it be possible to make it writable in the debian package?

(this is needed/important because plugins can now extend the piwik.js tracking code, and it will get overwritten).

from matomo-package.

florianjacob avatar florianjacob commented on July 2, 2024

@mattab The main problem is to separate the writable piwik.js file from all the other read-only files, like @aureq said.

In case the piwik.js is not intended to be shared between installations, a possible solution might be to let Matomo place piwik.js at the always-writable PIWIK_USER_PATH location instead of PIWIK_DOCUMENT_ROOT. PIWIK_USER_PATH could then be pointed to a directory in /var/, while everything else could stay in /usr.

from matomo-package.

aureq avatar aureq commented on July 2, 2024

On the README* files... Maybe it would be worth to move them into /usr/share/doc/matomo while keeping the same folder structure and remove these files from the manifest.inc.php

Only useful files would be exposed to the web server and the user would still have access to the README*.

from matomo-package.

aureq avatar aureq commented on July 2, 2024

For now, I'm excluding README files located in /usr/share/matomo/ from the manifest.inc.php because:

  • README is a broken link anyway because of below (See #82)
  • README.md.gz is generated by Debian

from matomo-package.

aureq avatar aureq commented on July 2, 2024

@mattab

  • Could you describe how the file integrity works please? It feels like it checks the manifest.inc.php but also checks for extra files not present in the manifest.inc.php. Does it read symlinks as well?
  • Also, is there a way invoke the integrity checker from the CLI, and providing a new root folder.
  • In the past, I used to exclude autoload*.php in the manifest.inc.php, but this seems to have changed...
Files were found in your Matomo but we didn't expect them.
--> Please delete these files to prevent errors. <--

File to delete: README.md.gz
File to delete: vendor/davaxi/sparkline/autoload.php
File to delete: vendor/davaxi/sparkline/src/autoload.php
File to delete: vendor/piwik/device-detector/autoload.php

from matomo-package.

mattab avatar mattab commented on July 2, 2024

@aureq

from matomo-package.

mattab avatar mattab commented on July 2, 2024

Thanks for your patience, let's continue the discussion in this other issue for now, where we're looking for a new maintainer for the debian package: #131

from matomo-package.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.