Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

agent/backend: use *_PROXY environment variables proxy settings #14

Merged
merged 4 commits into from Jan 23, 2019

Conversation

Julio-Guerra
Copy link
Collaborator

Take into account {HTTPS,HTTP,NO}_PROXY environment variables (and their lowercase alternatives) when SQREEN_PROXY is not set. This way, the system's configuration is taken into account when defined.

Users not yet using proxies and not willing to impact their normal http requests can just use SQREEN_PROXY to explicitly tell the agent to use a given proxy.

Closes SQR-5316

@codecov
Copy link

codecov bot commented Jan 23, 2019

Codecov Report

Merging #14 into dev will decrease coverage by 0.24%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev      #14      +/-   ##
==========================================
- Coverage   11.26%   11.02%   -0.25%     
==========================================
  Files           7        7              
  Lines        1961     1960       -1     
==========================================
- Hits          221      216       -5     
- Misses       1727     1728       +1     
- Partials       13       16       +3
Impacted Files Coverage Δ
agent/backend/client.go 56.98% <33.33%> (-4.38%) ⬇️
sdk/context.go 54.54% <0%> (-36.37%) ⬇️
agent/backend/api/api.pb.go 1.77% <0%> (ø) ⬆️

Take into account `{HTTPS,HTTP,NO}_PROXY` environment variables (and their
lowercase alternatives) when `SQREEN_PROXY` is not set. This way, the system's
configuration is taken into account when defined.

Users not yet using proxies and not willing to impact their normal http requests
can just use `SQREEN_PROXY` to explicitly tell the agent to use a given proxy.
Replace ginkgo by testify for easier testing (scopes are clearer, parallelism is
easier to control, using Go's helpers is easier, etc.).
To debug jenkins fail.
@Julio-Guerra Julio-Guerra force-pushed the feature/standard-proxy-settings branch from 93a6ec8 to 440c677 Compare January 23, 2019 10:14
@Julio-Guerra Julio-Guerra merged commit d94a387 into dev Jan 23, 2019
@Julio-Guerra Julio-Guerra deleted the feature/standard-proxy-settings branch January 23, 2019 10:24
@Julio-Guerra Julio-Guerra added this to the v0.1.0-alpha.5 milestone Jan 24, 2019
@Julio-Guerra Julio-Guerra self-assigned this Jan 24, 2019
Julio-Guerra added a commit that referenced this pull request Jan 24, 2019
- sdk: user-related security events:
  - ability to associate a user to an event using `WithUserIdentifier()` (#13).
  - track user creation using `TrackSignup()` (#15).
  - track user authentication using `TrackAuth()` (#15).

- agent/backend: take into account `{HTTPS,HTTP,NO}_PROXY` environment variables
  (and their lowercase alternatives) (#14).

- agent/backend: organization token (#12).

- agent/config: avoid conflicts with global viper configs (#16).
- sdk: better documentation with examples.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant