Code Monkey home page Code Monkey logo

Comments (5)

iain-ilearner avatar iain-ilearner commented on June 27, 2024 1

Thanks very much for the suggestion. I have now had time to test the new config and can confirm putting the htaccess file at /opt/bitnami/apache/conf.default/vhosts/htaccess works and allows the pod to start without any issues.

from charts.

juan131 avatar juan131 commented on June 27, 2024

Hi @iain-ilearner

As you can see in the link below, new major version of the Mediawiki chart includes some security enhancements:

The new security defaults for Mediawiki containers set restrictive rules such as using read-only filesystems. This is a great feature to prevent a series of attacks but it also sets some challenges for the application to work on such a restrictive environment.

Could you please share the extraVolumeMounts section you're using? It's very likely that you're overwriting volume mount below that it's required for providing to Bitnami Mediawiki initializations scripts capabilities to write in the /opt/bitnami/apache/conf directory.

from charts.

iain-ilearner avatar iain-ilearner commented on June 27, 2024

Could you please share the extraVolumeMounts section you're using?

Sure thing, it's here:

extraVolumeMounts:
  - mountPath: /opt/bitnami/apache/conf/vhosts/htaccess
    name: custom-htaccess

Is this not the supported way to add supplemental apache conf?

I guess I was trying to replicate bitmani/vms style config.

from charts.

juan131 avatar juan131 commented on June 27, 2024

Hi @iain-ilearner

Could you try mounting your custom mediawiki-htaccess.conf at /opt/bitnami/apache/conf.default/vhosts/htaccess instead? Check these values as example:

extraVolumes:
  - name: custom-htaccess
    configMap:
      name: wiki-htaccess-configmap
      items:
        - key: mediawiki-htaccess.conf
          path: mediawiki-htaccess.conf
extraVolumeMounts:
  - mountPath: /opt/bitnami/apache/conf.default/vhosts/htaccess
    name: custom-htaccess
extraDeploy:
  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: wiki-htaccess-configmap
    data:
      mediawiki-htaccess.conf: |
        <Directory "/opt/bitnami/mediawiki/cache">
          Require all denied
        </Directory>
        <Directory "/opt/bitnami/mediawiki/images">
          <IfModule headers_module>
          Header set X-Content-Type-Options nosniff
          </IfModule>
          <IfModule php7_module>
          php_flag engine off
          </IfModule>
          <IfModule php_module>
          php_flag engine off
          </IfModule>
        </Directory>

from charts.

juan131 avatar juan131 commented on June 27, 2024

Awesome @iain-ilearner ! I proceed to close the issue but please don't hesitate to let us know if you require further help.

from charts.

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.