oauth2-proxy/pkg/apis/options
Josef Johansson 6743a9cc89 Add support for systemd.socket
When using sockets to pass data between e.g. nginx and oauth2-proxy it's
simpler to use sockets. Systemd can even facilitate this and pass the
actual socket directly.

This also means that only the socket runs with the same group as nginx
while the service runs with DynamicUser.

Does not support TLS yet.

nginx
```
server {
    location /oauth2/ {
      proxy_pass http://unix:/run/oauth2-proxy/oauth2.sock;
}
```

oauth2-proxy.socket
```
[Socket]
ListenStream=%t/oauth2.sock
SocketGroup=www-data
SocketMode=0660
```

Start oauth2-proxy with the parameter `--http-address=fd:3`.

Signed-off-by: Josef Johansson <josef@oderland.se>
2024-10-23 09:35:47 +02:00
..
testutil chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
util chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
alpha_options.go rename Upstreams to UpstreamConfig and its Configs member to Upstreams then 2021-09-17 12:37:57 +00:00
app.go Allow specifying URL as input for custom sign in logo (#1330) 2021-09-05 09:23:22 -07:00
common.go Generate reference page in configuration 2021-01-18 09:57:44 +00:00
common_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
cookie.go Add flags to define CSRF cookie expiration time and to allow CSRF cookies per request (#1708) 2022-08-31 23:27:56 +01:00
doc.go Generate reference page in configuration 2021-01-18 09:57:44 +00:00
header.go docs: additional notes about available claims for HeaderValue (#2674) 2024-07-18 22:31:19 +02:00
legacy_options.go Add support for systemd.socket 2024-10-23 09:35:47 +02:00
legacy_options_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
load.go Feature - Add env variable support for alpha struct (#2375) 2024-01-20 19:37:24 +00:00
load_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
logging.go feat: readiness check (#1839) 2022-12-23 09:08:12 +00:00
login_url_parameters.go Fix Linting Errors (#1835) 2022-10-21 11:57:51 +01:00
options.go feat: add X-Envoy-External-Address as supported header (#2755) 2024-10-13 19:55:47 +02:00
options_suite_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
providers.go Session aware logout, backend logout url approach (#1876) 2024-01-26 12:48:09 +00:00
server.go Added ability to specify allowed TLS cipher suites. 2022-08-31 17:55:06 -07:00
sessions.go Add ability to configure username for Redis cluster connections (#2381) 2024-01-20 20:00:02 +00:00
upstreams.go Clarify what rewriteTarget means for a file: upstream 2024-09-02 11:27:28 +01:00