Skip to content

Use common approach to secrets#437

Open
keegoid-nr wants to merge 3 commits intonewrelic:mainfrom
keegoid-nr:kmullaney/standard-secrets
Open

Use common approach to secrets#437
keegoid-nr wants to merge 3 commits intonewrelic:mainfrom
keegoid-nr:kmullaney/standard-secrets

Conversation

@keegoid-nr
Copy link

Description

enhancement

  1. Include customAPIKeySecret... fields in values.yaml.
  2. Update deployment.yaml with new logic to prioritize customAPIKeySecret... fields, and if not set, fall back to personalAPIKey.
  3. Disable secret.yaml to eliminate the old secret-creation logic.

Aligns with how other charts (nri-bundle) approach secrets.
Improves compatibility with GitOps tools like ArgoCD.

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • New feature / enhancement (non-breaking change which adds functionality)
  • Security fix
  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • Add changelog entry following the contributing guide
  • Documentation has been updated
  • This change requires changes in testing:
    • unit tests
    • E2E tests

@keegoid-nr keegoid-nr requested a review from a team as a code owner October 25, 2025 14:27
@codecov
Copy link

codecov bot commented Oct 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 1.11%. Comparing base (86b6ecd) to head (59d904d).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #437   +/-   ##
=====================================
  Coverage   1.11%   1.11%           
=====================================
  Files         12      12           
  Lines      30791   30791           
=====================================
  Hits         342     342           
  Misses     30444   30444           
  Partials       5       5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

1. Include `customAPIKeySecret...` fields in `values.yaml`.
2. Update `deployment.yaml` with new logic to prioritize `customAPIKeySecret...` fields, and if not set, fall back to `personalAPIKey`.
3. Disable `secret.yaml` to eliminate the old secret-creation logic.

Aligns with how other charts, like nri-bundle, approach secrets.
Improves compatibility with GitOps tools like ArgoCD.
@keegoid-nr keegoid-nr force-pushed the kmullaney/standard-secrets branch from 954ab15 to 59d904d Compare October 28, 2025 17:41
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.

1 participant