Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audit metric #55

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Add audit metric #55

merged 1 commit into from
Sep 24, 2024

Conversation

andersonvcv
Copy link

@andersonvcv andersonvcv commented Sep 23, 2024

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

@andersonvcv andersonvcv self-assigned this Sep 23, 2024
@andersonvcv andersonvcv requested a review from a team as a code owner September 23, 2024 18:56
@andersonvcv andersonvcv merged commit b3a8631 into philips-forks:pics Sep 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants