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

fixed: oxy not forwarding IP info to ws backend #129

Merged
merged 1 commit into from
May 11, 2021
Merged

Conversation

primalmotion
Copy link
Contributor

This patch adds a header marker in the incoming request that are planned to be upgraded to websockets. This marker will be used to decide to set X-Forwarded-For header on the internal request rewriter.

This will make sure the ws backend receives a correct X-Forwarded-For header

@t00f t00f merged commit 19dd548 into master May 11, 2021
@t00f t00f deleted the fix-ws-ip-forward branch May 11, 2021 20:26
itsai220 added a commit that referenced this pull request Jun 16, 2021
* remod: update aporeto dependencies

* remod: update aporeto dependencies

* Skip codecov uploads (#121)

* remod: update aporeto dependencies

* fixed: security audit findings (#127)

* doc: added comment on how to implement CRL check using the MTLS authorizer

* new: differentiate * and mirror for CORSOrigin.

* new: option to control Allow Credential header

* travis: added new go version

* fixed: workaround oxy not forwarding IP info to ws backend (#129)

* fixed: always strip the internal ws marker header

* fix/race: Fix a data race access to the moving average pointer (#131)

* fix/race: Fix a data race access to the moving average pointer

* Fix the race in the array by passing a proper copy

* fix/test: Forgot a commit in previous PR

* Set up a GitHub action and start uploading coverage to Codacy (#132)

* Add Codacy badges (#134)

* chore/codacy: Ignore test assets

* remod up

Co-authored-by: Antoine Mercadal <antoine@inframonde.me>
Co-authored-by: Kevin Cantú <kcantu@paloaltonetworks.com>
Co-authored-by: primalmotion <208711+primalmotion@users.noreply.github.com>
Co-authored-by: Cyril Peponnet <cyril@peponnet.fr>
itsai220 added a commit that referenced this pull request Jul 13, 2021
* remod: update aporeto dependencies

* remod: update aporeto dependencies

* Skip codecov uploads (#121)

* remod: update aporeto dependencies

* fixed: security audit findings (#127)

* doc: added comment on how to implement CRL check using the MTLS authorizer

* new: differentiate * and mirror for CORSOrigin.

* new: option to control Allow Credential header

* travis: added new go version

* fixed: workaround oxy not forwarding IP info to ws backend (#129)

* fixed: always strip the internal ws marker header

* fix/race: Fix a data race access to the moving average pointer (#131)

* fix/race: Fix a data race access to the moving average pointer

* Fix the race in the array by passing a proper copy

* fix/test: Forgot a commit in previous PR

* Set up a GitHub action and start uploading coverage to Codacy (#132)

* Add Codacy badges (#134)

* chore/codacy: Ignore test assets

* remod: update aporeto dependencies

Co-authored-by: Antoine Mercadal <antoine@inframonde.me>
Co-authored-by: Kevin Cantú <kcantu@paloaltonetworks.com>
Co-authored-by: primalmotion <208711+primalmotion@users.noreply.github.com>
Co-authored-by: Cyril Peponnet <cyril@peponnet.fr>
Co-authored-by: Primalmotion <primalmotion@pm.me>
itsai220 added a commit that referenced this pull request Aug 4, 2021
* remod: update aporeto dependencies

* remod: update aporeto dependencies

* Skip codecov uploads (#121)

* remod: update aporeto dependencies

* fixed: security audit findings (#127)

* doc: added comment on how to implement CRL check using the MTLS authorizer

* new: differentiate * and mirror for CORSOrigin.

* new: option to control Allow Credential header

* travis: added new go version

* fixed: workaround oxy not forwarding IP info to ws backend (#129)

* fixed: always strip the internal ws marker header

* fix/race: Fix a data race access to the moving average pointer (#131)

* fix/race: Fix a data race access to the moving average pointer

* Fix the race in the array by passing a proper copy

* fix/test: Forgot a commit in previous PR

* Set up a GitHub action and start uploading coverage to Codacy (#132)

* Add Codacy badges (#134)

* chore/codacy: Ignore test assets

* remod: update aporeto dependencies

* fixed: always reset secret before pushing (#139)

* fixed: always reset secret before pushing

* test: validate no secret leak

Co-authored-by: Antoine Mercadal <antoine@inframonde.me>
Co-authored-by: Kevin Cantú <kcantu@paloaltonetworks.com>
Co-authored-by: primalmotion <208711+primalmotion@users.noreply.github.com>
Co-authored-by: Cyril Peponnet <cyril@peponnet.fr>
Co-authored-by: Primalmotion <primalmotion@pm.me>
itsai220 added a commit that referenced this pull request Sep 1, 2021
* remod: update aporeto dependencies

* remod: update aporeto dependencies

* Skip codecov uploads (#121)

* remod: update aporeto dependencies

* fixed: security audit findings (#127)

* doc: added comment on how to implement CRL check using the MTLS authorizer

* new: differentiate * and mirror for CORSOrigin.

* new: option to control Allow Credential header

* travis: added new go version

* fixed: workaround oxy not forwarding IP info to ws backend (#129)

* fixed: always strip the internal ws marker header

* fix/race: Fix a data race access to the moving average pointer (#131)

* fix/race: Fix a data race access to the moving average pointer

* Fix the race in the array by passing a proper copy

* fix/test: Forgot a commit in previous PR

* Set up a GitHub action and start uploading coverage to Codacy (#132)

* Add Codacy badges (#134)

* chore/codacy: Ignore test assets

* remod: update aporeto dependencies

* fixed: always reset secret before pushing (#139)

* fixed: always reset secret before pushing

* test: validate no secret leak

* fixed: single mock package (#143)

This is causing trouble with the mathematicality of go module...
Also bump zap

* fixed: bump nats-server version (#144)

* * fixed/gateway: rate limiting not active on websocket (#142)

This patch fixes a bug where the per-client rate limiter was not
used by the ws forwarding

* new: added metric manager for global tcp and source limiters

The OptionGlobalTCPLimiterMetricManager and
OptionSourceRateLimiterMetricManager can be used to set an
implementer of LimiterMatricManager to report metrics on total, accepted
and limited connections.

Co-authored-by: Antoine Mercadal <antoine@inframonde.me>
Co-authored-by: Kevin Cantú <kcantu@paloaltonetworks.com>
Co-authored-by: primalmotion <208711+primalmotion@users.noreply.github.com>
Co-authored-by: Cyril Peponnet <cyril@peponnet.fr>
Co-authored-by: Primalmotion <primalmotion@pm.me>
CyrilPeponnet added a commit that referenced this pull request Oct 11, 2021
* remod: update aporeto dependencies

* remod: update aporeto dependencies

* Skip codecov uploads (#121)

* remod: update aporeto dependencies

* fixed: security audit findings (#127)

* doc: added comment on how to implement CRL check using the MTLS authorizer

* new: differentiate * and mirror for CORSOrigin.

* new: option to control Allow Credential header

* travis: added new go version

* fixed: workaround oxy not forwarding IP info to ws backend (#129)

* fixed: always strip the internal ws marker header

* fix/race: Fix a data race access to the moving average pointer (#131)

* fix/race: Fix a data race access to the moving average pointer

* Fix the race in the array by passing a proper copy

* fix/test: Forgot a commit in previous PR

* Set up a GitHub action and start uploading coverage to Codacy (#132)

* Add Codacy badges (#134)

* chore/codacy: Ignore test assets

* remod: update aporeto dependencies

* fixed: always reset secret before pushing (#139)

* fixed: always reset secret before pushing

* test: validate no secret leak

* fixed: single mock package (#143)

This is causing trouble with the mathematicality of go module...
Also bump zap

* fixed: bump nats-server version (#144)

* * fixed/gateway: rate limiting not active on websocket (#142)

This patch fixes a bug where the per-client rate limiter was not
used by the ws forwarding

* new: added metric manager for global tcp and source limiters

The OptionGlobalTCPLimiterMetricManager and
OptionSourceRateLimiterMetricManager can be used to set an
implementer of LimiterMatricManager to report metrics on total, accepted
and limited connections.

* remod: update aporeto dependencies

* remod: update aporeto dependencies

Co-authored-by: Antoine Mercadal <antoine@inframonde.me>
Co-authored-by: Kevin Cantú <kcantu@paloaltonetworks.com>
Co-authored-by: primalmotion <208711+primalmotion@users.noreply.github.com>
Co-authored-by: Cyril Peponnet <cyril@peponnet.fr>
Co-authored-by: Primalmotion <primalmotion@pm.me>
Co-authored-by: Antoine Mercadal <antoine@aporeto.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants