teleport/lib/httplib
Gavin Frazar eccfd9342e
Refactor app access (#19387)
* Move logic out of RoundTrip and into ServeHTTP as a middleware before handing off to oxy forwarder
* Move AWS signing service code into lib/utils/aws/signing.go
* use app server close context for audit event emitting
* add go doc comments.
* refactor request rewriting to make the copy in a more robust way.
* pass status code as uint32 rather than casting in audit emitter
* clone request instead of making a new request, and rewrite url to force https
* update header handling
* Set oxy forwarder to PassHostHeader=false to ensure the host header is
  the URL being sought.
* Remove code that deleted forwarding headers previously, we should keep
  those (X-Forwarded-*).
* Audit log the AWS Host sought rather than the incoming request Host
  header (prior behavior maintained, we just rewrite the request
  differently using Clone).
* Remove obsolete header copying helper func
2022-12-23 00:56:27 +00:00
..
csrf set cluster connector name on signin for first cloud user (#17834) 2022-11-14 14:52:42 +00:00
grpccreds.go Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
httpheaders.go Update Referrer-Policy response header to strict-origin (#19114) 2022-12-06 22:07:02 +00:00
httplib.go Refactor app access (#19387) 2022-12-23 00:56:27 +00:00
httplib_test.go Forward traces from the web UI (#18519) 2022-11-18 13:46:41 +00:00