Comments (5)
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.
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.
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.
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.
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)
- [bitnami/valkey] global.valkey.password does not override auth.password
- [bitnami/grafana-loki] loki default configuration is incompatible with appVersion: 3.0.0 HOT 1
- [bitnami/postgresql]: Error on CREAT EXTENSION earthdistance, Needs SUPERUSER HOT 6
- Missing volume certs in postgres-ha chart with tls enabled HOT 1
- [bitnami/kafka] failing to build a kafka 3 pod cluster using helm chart HOT 6
- Grafana Mimir - Error while configuring service monitors using bitnami mimir helm chart
- [bitnami/solr] Increase the expiration of self-signed certificate generated HOT 1
- [bitnami/postgresql-ha] Upgrade from 14.1.0 to 14.1.1 fails due to invalid exporter pod spec HOT 2
- [bitnami/mlflow] MLFLOW_S3_ENDPOINT_URL not inject if i dont want to use minio HOT 4
- LivenessProbes not working HOT 3
- [bitnami/argo-cd] argo-cd-notifications liveness problem HOT 1
- [Kafka] KeeperErrorCode = NoAuth for /config/users/user HOT 2
- Issue in upgrading rabbitmq from chart13 to 14 HOT 1
- [bitnami/mongodb] Problem with externalAccess and replicaset both enabled (slice index out of range) HOT 4
- rabbitmq-cluster-operator ValidatingWebhook fails to load caBundle with cert-manager enabled HOT 1
- [bitnami/postgresql-ha] nil pointer evaluating interface {}.postgresql after upgrade from 14.1.0 to 14.1.1 or 14.1.2
- [bitnami/jenkins] Jenkins, CASC, deprecated resources parameters HOT 1
- [bitnami/postgresql-ha] Postgresql-ha Deployment Failure When Adding Custom Host to pgHbaConfiguration in Values File HOT 1
- [bitnami/kube-prometheus] Add a prometheus.extraEnvVars HOT 1
- [bitnami/thanos] Thanos receive fails "no space left on device" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.