Skip to content

[v13] Add full IP pinning enforcement#25053

Merged
AntonAM merged 1 commit intobranch/v13from
anton/backport-24743-branch/v13
Apr 24, 2023
Merged

[v13] Add full IP pinning enforcement#25053
AntonAM merged 1 commit intobranch/v13from
anton/backport-24743-branch/v13

Conversation

@AntonAM
Copy link
Copy Markdown
Contributor

@AntonAM AntonAM commented Apr 23, 2023

Backport #24743 to branch/v13

@AntonAM AntonAM force-pushed the anton/backport-24743-branch/v13 branch from 077ed0c to d67acc3 Compare April 24, 2023 16:43
* Add full IP pinning enforcement

We're adding IP pinning check to `authorizer.Authorize` which is used for every call,
so now all communications with teleport should enforce IP pinning.
Also making sure we always provide login IP for user certificate creation
and correct client IP propagation everywhere.

* Add integration test for App IP pinning.

* Fix wording

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Wrap error

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Add godocs

* Clone TLS config

* Improve proxyHeaderSigner usage

* Wider use proxyHeaderDialer and remove adhoc writing of singed header

* Add helper function TLSDial

* Use proxyHeader dialer in authConnect

* Simplify tlsConfig manipulation

Co-authored-by: Przemko Robakowski <przemko.robakowski@goteleport.com>

* Remove redundant channels processing in TLSDial

* Reduce nesting

* Update generated protobufs

* Remove ignoring of bad IP on signed PROXY header generation

* Provide logger to CheckIPPinning function

---------

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: Przemko Robakowski <przemko.robakowski@goteleport.com>
@AntonAM AntonAM force-pushed the anton/backport-24743-branch/v13 branch from d67acc3 to f795b83 Compare April 24, 2023 16:52
@AntonAM AntonAM enabled auto-merge April 24, 2023 16:59
@AntonAM AntonAM added this pull request to the merge queue Apr 24, 2023
Merged via the queue into branch/v13 with commit e73ddf1 Apr 24, 2023
@AntonAM AntonAM deleted the anton/backport-24743-branch/v13 branch April 24, 2023 18:17
@r0mant r0mant mentioned this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants