Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enforce secure cookie flag for all session cookies and the REST token #1356

Merged
merged 4 commits into from
Jun 29, 2020

Conversation

jpwhite4
Copy link
Member

This also enables https:// for the CI builds.

The helper function start_session() was the cleanest way I could think
of to enforce the secure falg for the session cookie. If anyone can think
of a better way then let me know.

This also enables https:// for the CI builds.

The helper function start_session() was the cleanest way I could think
of to enforce the secure falg for the session cookie. If anyone can think
of a better way then let me know.
@@ -37,7 +37,7 @@ build:
- ./tests/ui/runtests.sh --headless --log-junit `pwd`/shippable/testresults --sso
- ./vendor/phpunit/phpunit/phpunit -c ./tests/integration/phpunit.xml.dist --testsuite sso --log-junit `pwd`/shippable/testresults/xdmod-sso-integration.xml
- mv ./configuration/portal_settings.ini.old ./configuration/portal_settings.ini
- test ! -s /var/log/xdmod/apache-error.log
- test `fgrep -v ' [ssl:warn] ' /var/log/xdmod/apache-error.log | wc -l` = 0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because the hostname of the autogenerated ssl cert is not localhost so the webserver logs a warning (but starts up anyway).

@jpwhite4 jpwhite4 merged commit 58a8718 into ubccr:xdmod9.0 Jun 29, 2020
@jtpalmer jtpalmer changed the title Enforce secure cookie flag for all session cookies and the rest token. Enforce secure cookie flag for all session cookies and the REST token Aug 10, 2020
@jtpalmer jtpalmer added this to the 9.0.0 milestone Aug 10, 2020
@jtpalmer jtpalmer added Category:General General enhancement Enhancement of the functionality of an existing feature labels Aug 10, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Category:General General enhancement Enhancement of the functionality of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants