Skip to content

Conversation

@inteon
Copy link
Contributor

@inteon inteon commented Jan 26, 2026

This PR adds OIDC discovery data upload functionality to the disco-agent.

The data gatherer itself was added in #758.

@inteon inteon force-pushed the oidc_upload branch 5 times, most recently from c5cffaf to c140a0e Compare January 26, 2026 11:43
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds OIDC discovery data collection and upload functionality to the disco-agent. The agent now gathers OpenID Connect configuration and JWKS (JSON Web Key Set) information from the Kubernetes API server's well-known OIDC endpoints and uploads this data to the CyberArk backend.

Changes:

  • Introduced a new OIDC data gatherer that fetches OIDC configuration from /.well-known/openid-configuration and JWKS from /openid/v1/jwks endpoints
  • Modified the OIDC data gatherer to return a pointer to OIDCDiscoveryData instead of a value, consistent with other data gatherers
  • Added OIDC fields to the CyberArk snapshot structure for data upload
  • Configured the OIDC gatherer in the default agent deployment templates

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/datagatherer/oidc/oidc.go Changed return type from value to pointer for consistency with other data gatherers
pkg/datagatherer/oidc/oidc_test.go Updated type assertions to handle pointer type
api/datareading.go Added OIDCDiscoveryData type to the unmarshal priority list
pkg/client/client_cyberark.go Added extractOIDCFromReading function and registered it in defaultExtractorFunctions
pkg/client/client_cyberark_test.go Added OIDC test data with error scenarios
internal/cyberark/dataupload/dataupload.go Added OIDC-related fields to the Snapshot struct
examples/machinehub.yaml Added OIDC gatherer configuration example
examples/machinehub/input.json Added example OIDC data with configuration and JWKS
deploy/charts/disco-agent/templates/configmap.yaml Enabled OIDC gatherer in default configuration
deploy/charts/disco-agent/tests/snapshot/configmap_test.yaml.snap Updated test snapshots to include OIDC gatherer

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
@inteon inteon added the test-e2e To signal e2e test job to be run label Jan 26, 2026
@inteon inteon closed this Jan 26, 2026
@inteon inteon reopened this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-e2e To signal e2e test job to be run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants