Skip to content
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

proxy: move set request headers before handle allow public access #479

Merged
merged 1 commit into from Feb 2, 2020

Conversation

ohdarling
Copy link
Contributor

@ohdarling ohdarling commented Feb 2, 2020

Summary

Bring policy set_request_headers ahead of handling AllowPublicUnauthenticatedAccess to avoiding set_request_headers was bypassed when AllowPublicUnauthenticatedAccess enabled.

Related issues

Fixes #477

Checklist:

  • add related issues
  • ready for review

@claassistantio
Copy link

claassistantio commented Feb 2, 2020

CLA assistant check
All committers have signed the CLA.

@codeclimate
Copy link

codeclimate bot commented Feb 2, 2020

Code Climate has analyzed commit bc82817 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 89.4% (0.0% change).

View more on Code Climate.

@codecov
Copy link

codecov bot commented Feb 2, 2020

Codecov Report

Merging #479 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master    #479   +/-   ##
======================================
  Coverage    87.5%   87.5%           
======================================
  Files          55      55           
  Lines        2717    2717           
======================================
  Hits         2378    2378           
  Misses        257     257           
  Partials       82      82
Impacted Files Coverage Δ
proxy/proxy.go 95.6% <100%> (ø) ⬆️

Copy link
Contributor

@desimone desimone left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @ohdarling !

@desimone desimone changed the title move set request headers before handle allow public access proxy: move set request headers before handle allow public access Feb 2, 2020
@desimone desimone added the bug Something isn't working label Feb 2, 2020
@desimone desimone added this to the 0.7.0 milestone Feb 2, 2020
@desimone desimone merged commit 111aa8f into pomerium:master Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

set_request_headers does not take effect when allow_public_unauthenticated_access enabled
3 participants