Commit Graph

2448 Commits

Author SHA1 Message Date
Anderson Valério 67b8fd0061
bump golanci-lint 2024-12-09 22:00:53 -03:00
Anderson Valério c0c59bdcbc
The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar 2024-12-09 21:30:51 -03:00
Anderson Valério c41b56e1f4
fix go mod 2024-12-09 21:25:15 -03:00
Anderson Valério d8e977c923
fix alpha_config doc 2024-12-09 21:16:55 -03:00
Anderson Valério 262f01e313
Merge remote-tracking branch 'upstream/release/v7.7.1' into merge_7.7.1 2024-12-09 21:03:44 -03:00
Anderson Valério fb0723e5bb
Isolating some PICS custom changes (#57)
## Description

Isolating PICS custom changes

## Motivation and Context

It's hard to understand what are our custom changes and what is from
OAuth2-Proxy main repo

## How Has This Been Tested?

Created a local container image of the oauth-proxy from this PR and
integrated it with Reporting locally.
- run in the root of this repo
  - docker buildx build -t oauth-local .
- Updated FROM statement in pics/src/services/Oauth2Proxy/Dockerfile to 
  - FROM oauth-local

The following flows were checked:
- Login
- Audit logs
- Logout 


## Checklist:

- [x] Isolating some dunction in separated files
- [x] Creating a folder for Pics packages
2024-12-09 09:15:36 -03:00
Anderson Valério 519a415ad1
revert test change 2024-12-06 12:06:04 -03:00
Anderson Valério 0961bc3fda
revert test change 2024-12-06 12:04:44 -03:00
Anderson Valério 6f656ad5c6
revert test change 2024-12-06 12:02:32 -03:00
Anderson Valério 76fb7074f1
comment unused function 2024-12-05 15:36:06 -03:00
Anderson Valério 4f04b856e5
pics legacy options 2024-12-05 14:51:24 -03:00
Anderson Valério 125e2f0ab6
pics cookie refresh 2024-12-05 14:51:06 -03:00
Anderson Valério 6e288ec2b6
moving audit to pics folder 2024-12-04 09:02:21 -03:00
Anderson Valério b71c2f8857
pics_oidc 2024-12-04 09:01:16 -03:00
Anderson Valério 2a34c871d4
Minimizing changes with upstream (#56)
Removing blank lines/spaces/tabs differences with upstream

## Motivation and Context

Minimize conflicts when merging a new version

## How Has This Been Tested?


## Checklist:

- [x] Reverted formatting changes to minimize conflicts
2024-12-04 08:57:31 -03:00
Anderson Valério 8053bfe399
Revert "isolating changes on oidc provider"
This reverts commit c053cb8d0a.
2024-12-04 08:38:46 -03:00
Anderson Valério b5ebcb2a13
Revert "moving audit to pics folder"
This reverts commit 59f46e6c9f.
2024-12-04 08:32:15 -03:00
Anderson Valério e6e7c91352
reverting formatting changes 2024-12-02 14:54:27 -03:00
Anderson Valério 8600d79ff5
reverting formatting changes 2024-12-02 14:39:15 -03:00
Anderson Valério 8b5b97c399
reverting formatting changes 2024-12-02 12:00:49 -03:00
Anderson Valério fd6f9c0c63
reverting formatting changes 2024-12-02 10:51:28 -03:00
Anderson Valério 9db036e422
revert html formatting 2024-12-02 10:36:58 -03:00
Anderson Valério f0c2b53784
reverting changes that only cause conflicts 2024-11-29 15:15:55 -03:00
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
github-actions[bot] 055a63432c
update to release version v7.7.1 2024-10-08 14:41:41 +02:00
Nuno Miguel Micaelo Borges ff761d2523
fix: runtime error: index out of range (0) with length 0 (#2328)
* Issue 2311: runtime error: index out of range [0] with length 0 while extracting state of of the csrf

---------

Co-authored-by: tuunit <jan@larwig.com>
2024-10-08 14:40:41 +02:00
rd-danny-fleer 642ba174d4
fix: unable to use hyphen in JSON path for oidc-groups-claim option (#2619) 2024-10-07 20:08:44 +02:00
Joel Speed d68336dcf4
Merge pull request #2803 from tuunit/bugfix/self-signed-certificate-handling
fix: self signed certificate handling in v7.7.0
2024-10-07 11:54:22 +01:00
tuunit 4bd920b208
add changelog entry 2024-10-06 21:55:45 +02:00
tuunit bae168f06a
better handling of default transport modification 2024-10-06 21:43:38 +02:00
tuunit 8fd7312a90
fix: self signed certificate handling 2024-10-05 17:29:37 +02:00
Joel Speed cda641473f
Merge pull request #2798 from oauth2-proxy/release/v7.7.0
fix(ci): testing full release cycle before release branches can be merged
2024-10-02 15:17:25 +01:00
tuunit 07230ead91
fix(ci): testing full release cycle before release branches can be merged 2024-10-02 16:03:13 +02:00
Joel Speed f5d36705fa
Merge pull request #2792 from oauth2-proxy/release/v7.7.0
release v7.7.0
2024-10-02 13:52:47 +01:00
tuunit 1dd4a412b0
add new loop var linter for go1.22 and remove unnecessary exportloopref linter 2024-10-01 11:15:48 +02:00
tuunit 3c7dadcbd2
add v7.7.0 release highlights 2024-10-01 11:15:48 +02:00
tuunit 6e32bd6e38
fix missing 'changes since' section logic 2024-10-01 11:15:47 +02:00
tuunit f0fe33e032
enforce go 1.22.7 2024-10-01 11:15:47 +02:00
tuunit 715995843c
fix golangci-lint version in pipelines 2024-10-01 11:15:47 +02:00
github-actions[bot] f432cf79e2
update to release version v7.7.0 2024-10-01 11:15:46 +02:00
github-actions[bot] f978388e28
add new docs version 7.7.x 2024-10-01 11:15:41 +02:00
Johann 65e83fc3cc
fix(csrf): possible infinite loop (#2607) 2024-09-30 18:20:43 +02:00
Joel Speed 021d940dcd
Merge pull request #2790 from oauth2-proxy/chore/update-all-dependencies
chore(deps): update all golang dependencies
2024-09-25 09:52:27 +01:00
tuunit ad3ee0f66c
update relase pipeline 2024-09-25 10:34:28 +02: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
tuunit 41c8d5bfce chore(deps): update all golang dependencies 2024-09-23 16:38:40 +02:00
dabde fff5dd358f
doc: add example for caddy v2 forward_auth (#2759)
---------

Co-authored-by: Denis Dabischa <34655672+dabde@users.noreply.github.com>
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2024-09-23 16:34:08 +02:00
Bastian Oppermann bc034454f6
fix go version in DevContainer and contibution guide (#2768)
* Remove trailing whitespaces in contribution.md

They make the pre-commit hook "trailing-whitespace" fail.

* Correct Go version in DevContainer and Contibution guide
2024-09-23 16:23:27 +02:00