-
Notifications
You must be signed in to change notification settings - Fork 7
add BIRDHOUSE_PROXY_CORS_ALLOW_ORIGIN setting
#611
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
base: master
Are you sure you want to change the base?
Conversation
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/3837/Result ❌ FAILUREBIRDHOUSE_DEPLOY_BRANCH : add-cors-origin DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-216.rdext.crim.ca PAVICS-e2e-workflow-tests Pipeline ResultsTests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/546/NOTEBOOK TEST RESULTS |
tlvu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor changes requested but looks good otherwise.
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/3846/Result ❌ FAILUREBIRDHOUSE_DEPLOY_BRANCH : add-cors-origin DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-216.rdext.crim.ca PAVICS-e2e-workflow-tests Pipeline ResultsTests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/551/NOTEBOOK TEST RESULTS |
tlvu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate BIRDHOUSE_SSL_CERTIFICATE
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/3855/Result 🆘 ABORTEDBIRDHOUSE_DEPLOY_BRANCH : add-cors-origin DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-91.rdext.crim.ca
|
E2E Test ResultsDACCS-iac Pipeline ResultsBuild URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/3854/Result 🆘 ABORTEDBIRDHOUSE_DEPLOY_BRANCH : add-cors-origin DACCS_IAC_BRANCH : master DACCS_CONFIGS_BRANCH : master PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master PAVICS_SDI_BRANCH : master DESTROY_INFRA_ON_EXIT : true PAVICS_HOST : https://host-140-91.rdext.crim.ca
|
| if ( $access_control_allow_origin ~ "^$" ) { | ||
| set $access_control_allow_origin '*'; | ||
| } | ||
| # assumes that the server default is configured or overriden by a specific locaiton block as needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this if block needed anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so because the value could still be set explicitly (or resolved from variable expansions) to ''.
Overview
Add
BIRDHOUSE_PROXY_CORS_ALLOW_ORIGINsetting.Note
The
cors.include.templatediff looks massive, but the actual concrete change is only adding:Changes
Non-breaking changes
Access-Control-Allow-Originheader to be configured usingBIRDHOUSE_PROXY_CORS_ALLOW_ORIGINvariable.cors.includefile is converted to acors.include.templatefile to allow variable expansion.BIRDHOUSE_PROXY_CORS_ALLOW_ORIGIN="*"is used to retain the previous behaviour.BIRDHOUSE_PROXY_CORS_ALLOW_ORIGINvariable can reference other variables to allow dynamic configuration(notably, to reference
BIRDHOUSE_FQDN_PUBLICfor same-origin allowance).STAC_CORS_ORIGINSheader implications.access_control_allow_originvariable.Breaking changes
Related Issue / Discussion
CI Operations
birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false