Commit Graph

157 Commits

Author SHA1 Message Date
alihasan070707 230d1dc20a fix Incorrect Group Handling in RequestContextHandler logger.go (#4082)
Wrap the grouped handler in requestContextHandler to preserve context attribute injection.
fixes #4081

Signed-off-by: alihasan070707 <52155098+alihasan070707@users.noreply.github.com>
2025-05-13 08:51:25 +02:00
Tuomo Tanskanen 749bbd5d98 fix unmarshaling of expanded environment variables with special characters (#3770)
If we expand environment values directly with os.ExpandEnv() over whole
config, we might end up in a situation where the environment variable
has escape characters that break the resulting JSON, and unmarshalling
fails. Instead of expanding the entire config with single call, we
recurse through the config and expand the values in leaves one by one.

Signed-off-by: Tuomo Tanskanen <tuomo.tanskanen@est.tech>
2024-10-14 15:15:05 +02:00
Koen de Laat d0f1777c41 Added Discovery to grpc (#3598)
Signed-off-by: Koen de Laat <koen.de.laat@philips.com>
2024-08-29 17:12:25 +02:00
Maksim Nabokikh 5c66c71864 Change workdir for gomplate (#3684)
Workaround to run gomplate from a non-root directory in distroless images, because gomplate tries to access CWD on start.
See: https://github.com/hairyhenderson/gomplate/pull/2202

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-08-07 19:31:01 +02:00
Maksim Nabokikh 81af48862b Remove additional features and add a feature flag instead (#3663)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-08-01 21:38:09 +02:00
Maksim Nabokikh 225660785c Enrich Dex logs with real IP and request ID (#3661)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
Signed-off-by: Maksim Nabokikh <max.nabokih@gmail.com>
Co-authored-by: Márk Sági-Kazár <sagikazarmark@users.noreply.github.com>
2024-08-01 21:37:35 +02:00
Giovanni Campeol b07e1bc9f1 gRPC Connectors API (#3245)
Signed-off-by: Giovanni Campeol <giovanni.campeol.95@gmail.com>
Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
Co-authored-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
2024-07-16 12:05:23 +02:00
Nicolas Lamirault bd73825eda new Prometheus metrics build_info (#3558)
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
2024-07-15 20:09:03 +02:00
Richard Gomez 6fca251dc1 Gracefully handle no args being passed to entrypoint (#3589)
Signed-off-by: Richard Gomez <rmgomez368@gmail.com>
2024-07-15 20:07:38 +02:00
Maksim Nabokikh 203b084e17 Fix slog nil pointer error (#3563)
The problem caused by the mistake in the newLogger function. The nil value is returned even with the valid log format.

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-06-03 21:23:14 +02:00
Sean Liao 0b6a78397e use slog for structured logging (#3502)
Signed-off-by: Sean Liao <sean+git@liao.dev>
2024-06-01 20:15:58 +04:00
Maksim Nabokikh 088339fc28 Add headers control to dex web server (#3339)
Customization of headers in the authentication server is crucial for enforcing stringent security measures by allowing the inclusion of specific headers required for authentication protocols and compliance standards. This customization ensures that authentication requests are processed securely, mitigating potential vulnerabilities and ensuring adherence to security policies.

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-03-11 22:48:20 +01:00
Tuomo Tanskanen 5bbdb44202 feat: add TLS versions configuration
Add configuration options for TLSMinVersion and TLSMaxVersion.
This enables setting TLS 1.3 as minimum version for example for both
GRPC and Web, or enforcing TLS 1.2 only for easier debugging of
secure connections.

Signed-off-by: Tuomo Tanskanen <tuomo.tanskanen@est.tech>
2024-01-25 13:55:55 +02:00
Márk Sági-Kazár 2fa0676a5e Merge pull request from GHSA-gr79-9v6v-gc9r
bug: return initialConfig instead of empty tlsConfig
2024-01-25 08:40:48 +01:00
m.nabokikh 08348242a7 Introduce a dedicated pkg for featureflags
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-01-16 22:48:22 +01:00
Tuomo Tanskanen 8cf9094871 bug: return initialConfig instead of empty tlsConfig
When TLS certificate reloading functionality was implemented and
released in Dex 2.37.0, added newTLSReloader() returns empty tlsConfig
and discards the provided, already configured tlsConfig. Server's with
empty tlsConfig override Go's sensible defaults, and starts serving Dex
over TLS 1.0 and TLS 1.1 in addition to Go's defaults TLS 1.2+.

TLS 1.0 and 1.1 are long deprecated and vulnerable, making this a
security risk. Server and its secrets are vulnerable to attackers.
2024-01-12 07:53:15 +02:00
Maksim Nabokikh 4f307d70c6 Fix lint errors after merging AllowedHeaders feature (#3247)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2023-12-28 11:41:57 +01:00
Josiah Evans dce31d82ea feat: Add configurable CORS Headers (#3114)
Signed-off-by: Josiah Evans <josiah.evans@lunit.io>
2023-12-28 11:10:30 +01:00
Sean Liao dcf7b18510 OAuth 2.0 Token Exchange (#2806)
Signed-off-by: Sean Liao <sean+git@liao.dev>
Co-authored-by: Maksim Nabokikh <max.nabokih@gmail.com>
2023-07-01 09:03:08 +02:00
Sean Liao 074ee4f964 TLS certs reloader (#2964)
Signed-off-by: Sean Liao <sean+git@liao.dev>
2023-06-13 14:57:54 +04:00
m.nabokikh 6822ad950f feat: enable profiling endpoints
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2022-04-12 12:12:37 +04:00
Andrew Keesler 764ce711b6 distroless: rewrite docker-entrypoint.sh in go
See go doc ./cmd/docker-entrypoint for why.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2022-01-18 19:18:43 -05:00
iam-veeramalla 528ef18c2f feat: print dex version in the logs
Signed-off-by: iam-veeramalla <abhishek.veeramalla@gmail.com>
2021-11-25 17:58:09 +05:30
Maksim Nabokikh f92a6f4457 Merge pull request #2272 from flant/mysql-ent
feat: Add MySQL ent-based storage driver
2021-09-21 08:24:36 +04:00
Eng Zer Jun f0186ff265 refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-09-17 14:12:39 +08:00