renovate[bot] and Jan Larwig
854a74793b
chore(deps): update dependency golangci/golangci-lint to v2.7.2 ( #3254 )
...
* chore(deps): update dependency golangci/golangci-lint to v2.7.2
* chore(linter): fix gocritic deprecation message issue
Signed-off-by: Jan Larwig <jan@larwig.com >
* chore(lint): fix var-naming: avoid package names that conflict with Go standard library package names (revive)
Signed-off-by: Jan Larwig <jan@larwig.com >
---------
Signed-off-by: Jan Larwig <jan@larwig.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jan Larwig <jan@larwig.com >
2026-01-04 10:23:26 +01:00
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
Koen van Zuijlen and Jan Larwig
343bd61ebb
chore(deps): Updated to ginkgo v2 ( #2459 )
...
* chore(deps): Updated to ginkgo v2
* fix basic auth test suite cleanup
* fix redis store tests
* add changelog entry
---------
Co-authored-by: Jan Larwig <jan@larwig.com >
2024-07-18 22:41:02 +02:00
Josef Johansson
8f7209ba1a
pkg/http: Fix leaking goroutines in tests
...
By using the context created by the test, the goroutines produced in
http.Client is actually closed when cancelled and such, not leaked.
Signed-off-by: Josef Johansson <josef86@gmail.com >
2024-03-26 12:31:26 +01:00
Josef Johansson
bb6aba4a00
pkg/http/server_test.go: Add gleak to find goroutine leaks
...
Signed-off-by: Josef Johansson <josef86@gmail.com >
2024-03-26 12:30:41 +01:00
Koen van Zuijlen and Jan Larwig
f88f09f962
Improved dev environment ( #2211 )
...
* Improved dev env setup
* Cleanup duplicate checks
* Applied PR feedback
* Updated go.mod/go.sum
* go mod tidy
* Update .devcontainer/devcontainer.json
* Update pkg/http/server_test.go
Co-authored-by: Jan Larwig <jan@larwig.com >
* Create launch.json
* Update .devcontainer/Dockerfile
* Apply suggestions from code review
---------
Co-authored-by: Jan Larwig <jan@larwig.com >
2024-01-20 20:10:37 +00:00
Andrew Hamade
7fe6384f38
Fix Linting Errors ( #1835 )
...
* initial commit: add groups to azure
Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com >
* fix deprecations and linting errors
Signed-off-by: Andrew Hamade <andrewphamade@gmail.com >
* remove groups testing from azure provider
Signed-off-by: Andrew Hamade <andrewphamade@gmail.com >
* fix test error
Signed-off-by: Andrew Hamade <andrewphamade@gmail.com >
* verify-generate
Signed-off-by: Andrew Hamade <andrewphamade@gmail.com >
Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com >
Signed-off-by: Andrew Hamade <andrewphamade@gmail.com >
2022-10-21 11:57:51 +01:00
Chris Bednarz
ebacc2d7e4
Added ability to specify allowed TLS cipher suites.
2022-08-31 17:55:06 -07:00
t-katsumura
c6a98369a0
Add description on ipv6 address ( #1635 )
...
* add docs on ipv6
* add tests for ipv6 address
* add tests for ipv6 address
* remove Print function for debugging
* Updated changelog
2022-05-23 10:17:29 +01:00
polarctos
e03cf87dd8
Add option to specify the tls-min-version for the server
2022-02-09 20:19:01 +01:00
wyewata and Joel Speed
a35db2ae8a
Fix expected error messages ( #1269 )
...
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk >
2021-07-28 19:56:23 +01:00
Joel Speed
d8aca8ac30
Add new http server implementation
2021-03-07 11:49:09 +00:00