A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers.
This report summarizes scanner evidence for oauth2-proxy/oauth2-proxy, a Go project with 15,301 GitHub stars. SynthScan examined 104,957 lines of code across 739 source files, recording 68 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 45 finding(s).
Are imports declared and package/API names verified? 23 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 68 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 68 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | testdata/openredirects.txt | 21 | /%5cgoogle.com | COMMENT |
| LOW | testdata/openredirects.txt | 41 | //%5cwww.whitelisteddomain.tld@google.com | COMMENT |
| LOW | testdata/openredirects.txt | 61 | ////%5cexample.com | COMMENT |
| LOW | testdata/openredirects.txt | 81 | ////example.com@google.com/%2e%2e%2f | COMMENT |
| LOW | testdata/openredirects.txt | 101 | ////www.whitelisteddomain.tld@google.com/%2f.. | COMMENT |
| LOW | testdata/openredirects.txt | 121 | ///example.com// | COMMENT |
| LOW | testdata/openredirects.txt | 141 | ///localdomain.pw// | COMMENT |
| LOW | testdata/openredirects.txt | 161 | //;@google.com | COMMENT |
| LOW | testdata/openredirects.txt | 181 | //google%00.com | COMMENT |
| LOW | testdata/openredirects.txt | 201 | //https://example.com@google.com// | COMMENT |
| LOW | testdata/openredirects.txt | 221 | //localdomain.pw:80#@www.whitelisteddomain.tld/ | COMMENT |
| LOW | contrib/local-environment/docker-compose.yaml | 1 | # This docker-compose file can be used to bring up an example instance of oauth2-proxy | COMMENT |
| LOW | contrib/local-environment/docker-compose-keycloak.yaml | 1 | # This docker-compose file can be used to bring up an example instance of oauth2-proxy | COMMENT |
| LOW | contrib/local-environment/docker-compose-gitea.yaml | 1 | # This docker-compose file can be used to bring up an example instance of oauth2-proxy | COMMENT |
| LOW | contrib/local-environment/docker-compose-traefik.yaml | 1 | # This docker-compose file can be used to bring up an example instance of oauth2-proxy | COMMENT |
| LOW | contrib/local-environment/docker-compose-nginx.yaml | 1 | # This docker-compose file can be used to bring up an example instance of oauth2-proxy | COMMENT |
| LOW | …rib/local-environment/docker-compose-alpha-config.yaml | 1 | # This docker-compose file can be used to bring up an example instance of oauth2-proxy | COMMENT |
| LOW | pkg/middleware/stored_session.go | 21 | // TODO: This should probably be configurable by the end user. | COMMENT |
| LOW | pkg/apis/options/alpha_options.go | 1 | package options | COMMENT |
| LOW | pkg/apis/options/alpha_options.go | 21 | InjectRequestHeaders []Header `yaml:"injectRequestHeaders,omitempty"` | COMMENT |
| LOW | pkg/apis/options/header.go | 21 | // This option only applies to injected request headers. | COMMENT |
| LOW | pkg/apis/options/server.go | 1 | package options | COMMENT |
| LOW | pkg/apis/options/server.go | 41 | COMMENT | |
| LOW | pkg/apis/options/upstreams.go | 61 | ID string `yaml:"id,omitempty"` | COMMENT |
| LOW | pkg/apis/options/upstreams.go | 81 | // upstream server. Or if the upstream were `file:///app`, a request for | COMMENT |
| LOW | pkg/apis/options/upstreams.go | 101 | InsecureSkipTLSVerify *bool `yaml:"insecureSkipTLSVerify,omitempty"` | COMMENT |
| LOW | pkg/apis/options/app.go | 1 | package options | COMMENT |
| LOW | pkg/apis/options/providers.go | 41 | // for GoogleOptions.UseOrganizationID | COMMENT |
| LOW | pkg/apis/options/providers.go | 81 | // ADFSConfig holds all configurations for ADFS provider. | COMMENT |
| LOW | pkg/apis/options/providers.go | 101 | // must be set from the supported providers group, | COMMENT |
| LOW | pkg/apis/options/providers.go | 281 | UseOrganizationID *bool `yaml:"useOrganizationID,omitempty"` | COMMENT |
| LOW | pkg/apis/options/providers.go | 301 | InsecureSkipNonce *bool `yaml:"insecureSkipNonce,omitempty"` | COMMENT |
| LOW | pkg/apis/options/login_url_parameters.go | 1 | package options | COMMENT |
| LOW | pkg/apis/options/login_url_parameters.go | 21 | // default: | COMMENT |
| LOW | pkg/apis/options/login_url_parameters.go | 41 | // default: ["login"] | COMMENT |
| LOW | pkg/apis/options/login_url_parameters.go | 61 | // as backslash is not considered to be an escape character. Alternatively | COMMENT |
| LOW | pkg/apis/options/login_url_parameters.go | 81 | // Allow specifies rules about how the default (if any) may be | COMMENT |
| LOW | pkg/apis/sessions/interfaces.go | 21 | // Lock is an interface for controlling session locks | COMMENT |
| LOW | pkg/app/redirect/director.go | 41 | } | COMMENT |
| LOW | pkg/sessions/persistence/ticket.go | 21 | // saveFunc performs a persistent store's save functionality using | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | oauthproxy_test.go | 2051 | "name": "John Doe", | CODE |
| LOW | oauthproxy_test.go | 2304 | Email: "user@example.com", | CODE |
| LOW | oauthproxy_test.go | 3161 | User: "user", Email: "user@example.com", CreatedAt: &created, ExpiresOn: &expires, | CODE |
| LOW | oauthproxy_test.go | 3294 | User: "user", Email: "user@example.com", CreatedAt: &created, ExpiresOn: &expires, | CODE |
| LOW | main_test.go | 29 | google_admin_email="admin@example.com" | CODE |
| LOW | main_test.go | 172 | AdminEmail: "admin@example.com", | CODE |
| LOW | providers/digitalocean_test.go | 95 | b := testDigitalOceanBackend(`{"account": {"email": "user@example.com"}}`) | CODE |
| LOW | providers/digitalocean_test.go | 104 | assert.Equal(t, "user@example.com", email) | CODE |
| LOW | providers/gitlab_test.go | 43 | "email": "foo@bar.com", | CODE |
| LOW | providers/gitlab_test.go | 217 | expectedValue: "foo@bar.com", | CODE |
| LOW | contrib/local-environment/dex.yaml | 24 | - email: "admin@example.com" | CODE |
| LOW | contrib/local-environment/dex-traefik.yaml | 21 | - email: "admin@example.com" | CODE |
| LOW | contrib/local-environment/kubernetes/values.yaml | 35 | - email: "admin@example.com" | CODE |
| LOW | …b/local-environment/keycloak/oauth2-proxy-users-0.json | 7 | "username": "admin@example.com", | CODE |
| LOW | …b/local-environment/keycloak/oauth2-proxy-users-0.json | 8 | "email": "admin@example.com", | CODE |
| LOW | pkg/middleware/jwt_session_test.go | 38 | "name": "John Doe", | CODE |
| LOW | pkg/apis/sessions/session_state_test.go | 321 | Email: "user@example.com", | CODE |
| LOW | pkg/apis/sessions/session_state_test.go | 341 | {"email", []string{"user@example.com"}}, | CODE |
| LOW | pkg/header/injector_test.go | 403 | Email: "user@example.com", | CODE |
| LOW | pkg/header/injector_test.go | 409 | "X-Auth-Request-Email": []string{"user@example.com"}, | CODE |
| LOW | pkg/validation/options_test.go | 69 | o.Providers[0].GoogleConfig.AdminEmail = "admin@example.com" | CODE |
| LOW | pkg/validation/options_test.go | 92 | o.Providers[0].GoogleConfig.AdminEmail = "admin@example.com" | CODE |
| LOW | pkg/validation/options_test.go | 102 | o.Providers[0].GoogleConfig.AdminEmail = "admin@example.com" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/local-environment/docker-compose-nginx.yaml | 6 | # This file is an extension of the main compose file and must be used with it | COMMENT |
| MEDIUM | …rib/local-environment/docker-compose-alpha-config.yaml | 7 | # This file is an extension of the main compose file and must be used with it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pkg/apis/options/providers.go | 92 | // or providers utilize OIDC configurations. | COMMENT |
| MEDIUM | pkg/logger/logger.go | 404 | // These functions utilize the standard logger. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/ip/realclientip.go | 25 | // TODO: implement the more standardized but more complex `Forwarded` header. | COMMENT |