Commit Graph

1875 Commits

Author SHA1 Message Date
Anderson Valério c053cb8d0a
isolating changes on oidc provider 2024-11-29 15:14:58 -03:00
Anderson Valério 59f46e6c9f
moving audit to pics folder 2024-11-29 15:14:10 -03:00
Anderson Valério b3a86319ab
Add audit metric (#55)
## Description

Adding custom audit metric for audit errors.

## Motivation and Context

This is needed to track audit errors and create alerts when they happen.

## How Has This Been Tested?

Built a local copy from this PR and integrated it with Reporting locally
by running the binary. Used invalid audit environment variables to make
the audit request fail.

Commands:
- make build
- set envs (grab from Pics containers) and include invalid audit envs
- ./oauth2-proxy --http-address=127.0.0.1:9876
--https-address=127.0.0.1:9877 --metrics-address=127.0.0.1:9090
- change evs in .env.local.worklist-gateway file in pics repo (worklist
Oauth) to OAUTH_PROXY_ENDPOINT=host.docker.internal and
OAUTH_PROXY_PORT=9876
- run pics


![image](https://github.com/user-attachments/assets/248f2865-4bf3-47dd-83f4-7799931eeb77)
2024-09-24 08:43:12 -03:00
Anderson Valério cb1ecf8886
add audit metric 2024-09-23 15:48:29 -03:00
Leandro Lafin 7eec31f837
Update source code to origin v7.6.0 (#54)
## Description

We are updating the fork source code from origin `v7.4.0` to `v7.6.0`
while keeping the customizations.

## How was it tested?

Created a local container image of the oauth-proxy from this PR and
integrated it with Reporting locally. The following flows were checked:
- Login
- User introspect
- Audit logs
- Logout 
- Auto logout
2024-07-16 16:08:32 -03:00
Leandro Lafin b8ba647fb2
Fixing unit tests 2024-07-15 12:06:42 -03:00
Leandro Lafin 4ddb75c0e3
Update alpha config 2024-07-15 11:07:50 -03:00
Leandro Lafin 4ea0183a5a
release v7.6.0 2024-07-15 10:22:27 -03:00
Leandro Lafin 1b4c3d756e
Session aware logout, backend logout url approach 2024-07-15 10:14:25 -03:00
Leandro Lafin 99bafcff95
chore(deps): update mcr.microsoft.com/vscode/devcontainers/go docker tag to v1 2024-07-15 10:01:45 -03:00
Leandro Lafin b6842a91e8
docs: add code of conduct 2024-07-15 10:00:26 -03:00
Leandro Lafin 2d7a6b984b
chore(deps): update module google.golang.org/api to v0.157.0 2024-07-15 09:59:14 -03:00
Leandro Lafin 7a32e57d89
chore(deps): update actions/setup-go action to v5 2024-07-15 09:58:33 -03:00
Leandro Lafin 6502eb24be
chore(deps): update actions/checkout action to v4 2024-07-15 09:57:56 -03:00
Leandro Lafin 94dec38cfc
chore(deps): update module k8s.io/apimachinery to v0.29.1 2024-07-15 09:56:22 -03:00
Leandro Lafin f072a89304
chore(deps): update github.com/ghodss/yaml digest to d8423dc 2024-07-15 09:55:54 -03:00
Leandro Lafin e684125ca7
upgrading to go 1.21 2024-07-15 09:54:57 -03:00
Leandro Lafin 20624f140c
chore(deps): update alpine docker tag to v3.19.0 2024-07-15 09:09:38 -03:00
Leandro Lafin 8b869116b2
chore(deps): update module github.com/bsm/redislock to v0.9.4 2024-07-15 09:02:15 -03:00
Leandro Lafin f1c58097d3
Improved dev environment 2024-07-15 09:00:36 -03:00
Leandro Lafin c156c9f732
Add ability to configure username for Redis cluster connections 2024-07-15 08:43:15 -03:00
Leandro Lafin 822cfad994
Feature/add option to skip loading claims from profile url 2024-07-12 15:57:12 -03:00
Leandro Lafin 0fb3937d46
Remove nsswitch DNS resolution workaround 2024-07-12 15:30:38 -03:00
Leandro Lafin 634fbe6dc6
Feature - Add env variable support for alpha struct 2024-07-12 15:29:38 -03:00
Leandro Lafin a63b535946
Log error details when failed loading CSRF cookie 2024-07-12 15:26:35 -03:00
Leandro Lafin 3d28f6a888
chore: Create sha256sum for tar instead of binary 2024-07-12 15:25:30 -03:00
Leandro Lafin c6858c006b
NGINX return 403 for sign_in (#2322) 2024-07-12 15:22:28 -03:00
Leandro Lafin 2434369974
Add possibility to encode the state param as UrlEncodedBase64 2024-07-12 15:20:57 -03:00
Leandro Lafin 9473f3182a
enhancement: Change base image from alpine to distroless 2024-07-12 15:14:14 -03:00
Leandro Lafin 1fc5b5cf15
Update go-jose dependency as requested in #2350 2024-07-12 15:07:29 -03:00
Leandro Lafin 02f26d66b2
Update ojg to latest release 2024-07-12 15:04:30 -03:00
Leandro Lafin a16786a160
fix: fix nginx setup 2024-07-12 15:03:40 -03:00
Leandro Lafin 7d977cc761
add breaking change notice for the new auth route regex matching behaviour introduced by #2193 2024-07-12 15:03:11 -03:00
Leandro Lafin 88b469bedd
Feature: Add GitHub groups (orgs/teams) support 2024-07-12 15:02:19 -03:00
Leandro Lafin bcd665c9a3
bugfix: OIDCConfig based providers are not respecting flags and configs 2024-07-12 14:44:22 -03:00
Leandro Lafin eff95e31b8
Don't run the nightly build and push job in forked repositories 2024-07-12 14:36:56 -03:00
Leandro Lafin b5a40ce6a5
Support http.AllowQuerySemicolons 2024-07-12 14:36:15 -03:00
Leandro Lafin 6b19c7d616
bugfix: fix nightly date tagging 2024-07-12 14:33:37 -03:00
Leandro Lafin 91be581fd2
Issue 978: Fix Custom cookie name breaks redis for session 2024-07-12 14:32:57 -03:00
Leandro Lafin bcdb575721
add nightly build and push 2024-07-12 14:29:45 -03:00
Leandro Lafin d0bbe7f713
add nightly build and push 2024-07-12 14:29:33 -03:00
Leandro Lafin fc4f7a0cc8
add contribution guide to documentation 2024-07-12 11:52:19 -03:00
Leandro Lafin cecc63bf29
Improve the Nginx auth_request example 2024-07-12 11:42:11 -03:00
Leandro Lafin 1396a26221
add azure china support 2024-07-12 11:37:14 -03:00
Leandro Lafin d654f103de
Updated oauth2-proxy tags to 7.5.1 2024-07-12 11:34:35 -03:00
Leandro Lafin 580d231de1
Use updated key names in oauth2-proxy-alpha-config.yaml 2024-07-12 11:33:33 -03:00
Leandro Lafin 8fdec4fd9e
Refactored docs 2024-07-12 11:32:20 -03:00
Leandro Lafin ba306ce9cd
Add support for unix socket as upstream 2024-07-12 11:30:17 -03:00
Leandro Lafin 6aa359ae83
Issue: 2236 - adds an option to append CA certificates 2024-07-12 11:11:24 -03:00
Leandro Lafin 7ca3ec6357
Feature: Allowing relative redirect url though an option 2024-07-12 11:04:23 -03:00