-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
cookies Secure flag set to false #8643
Comments
In the official GeoNetwork Docker image you can try to use will be: JAVA_OPTS: >
-Djetty.session.secureCookies=true
-Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF
-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true
-Xms512M -Xss512M -Xmx2G -XX:+UseConcMarkSweepGC
-Dgeonetwork.resources.dir=/catalogue-data/resources
-Dgeonetwork.data.dir=/catalogue-data
-Dgeonetwork.codeList.dir=/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/codelist
-Dgeonetwork.schema.dir=/var/lib/jetty/webapps/geonetwork/WEB-INF/data/config/schema_plugins If you try it please let me know if it works. |
@juanluisrp Thank you so much for your suggestion 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
It's been flagged to us that the cookies' secure flag is set to false when it should be set to true.
This seems to suggest that it's not intentional:
core-geonetwork/web/src/main/filters/prod.properties
Lines 46 to 47 in 03c2aae
I am running GeoNetwork in a Docker container, on version 4.2.5 (also happens on version 4.2.9)
I tried overwriting the web.xml file to set the value to true instead of using the variable:
core-geonetwork/web/src/main/webResources/WEB-INF/web.xml
Line 548 in 8535b35
but this prevents the container from starting.
Is there anything that can be done about this?
Do you know if this can be set as a Docker variable or something like that?
Many thanks,
Elena
The text was updated successfully, but these errors were encountered: