Skip to content

[Task] Refactor CloudSmith OIDC credential keys to remove oidc- prefix#99

Merged
kbukum1 merged 1 commit intomainfrom
kbukum1/cloudsmith_oidc_support_private_regisitiries_org_level
Apr 15, 2026
Merged

[Task] Refactor CloudSmith OIDC credential keys to remove oidc- prefix#99
kbukum1 merged 1 commit intomainfrom
kbukum1/cloudsmith_oidc_support_private_regisitiries_org_level

Conversation

@kbukum1
Copy link
Copy Markdown
Contributor

@kbukum1 kbukum1 commented Apr 14, 2026

What are you trying to accomplish?

Refactor CloudSmith OIDC credential field names to remove the oidc- prefix for consistency with other OIDC providers (Azure, AWS, JFrog).

Changes:

  • oidc-namespacenamespace
  • oidc-service-slugservice-slug
  • oidc-audienceaudience

This also adds a PR template modeled after dependabot-core to standardize PR descriptions.

Anything you want to highlight for special attention from reviewers?

The credential key names (namespace, service-slug, audience) are now consistent with how other providers define their OIDC parameters — without a provider-specific prefix. This is a breaking change for any configuration currently using the oidc- prefixed keys, so companion PRs in github/github and github-ui must land together.

How will you know you have accomplished your goal?

All existing tests pass with the updated key names, confirming functional equivalence. The companion PRs in github/github and github-ui will update the configuration layer to emit the new key names.

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@kbukum1 kbukum1 force-pushed the kbukum1/cloudsmith_oidc_support_private_regisitiries_org_level branch from b5ad09d to 1ec131a Compare April 14, 2026 23:46
@kbukum1 kbukum1 requested a review from Copilot April 14, 2026 23:46
Copy link
Copy Markdown

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

Refactors Cloudsmith OIDC credential field names to remove the oidc- prefix (aligning with other OIDC providers), and updates tests/config scaffolding accordingly.

Changes:

  • Update Cloudsmith OIDC credential parsing to use namespace, service-slug, and audience.
  • Update OIDC-related tests to use the new Cloudsmith key names.
  • Add a standardized PR template and ignore /tmp at repo root.
Show a summary per file
File Description
internal/oidc/oidc_credential.go Switch Cloudsmith OIDC parameter extraction from oidc-* keys to unprefixed keys.
internal/oidc/oidc_credential_test.go Update Cloudsmith credential test fixtures to use the new key names.
internal/oidc/oidc_registry_test.go Update Cloudsmith registry test credential helper to use the new key names.
internal/handlers/oidc_handling_test.go Update end-to-end handler tests to supply Cloudsmith credentials via the new key names.
.gitignore Ignore a root-level /tmp directory.
.github/pull_request_template.md Add a PR template to standardize PR descriptions.

Copilot's findings

  • Files reviewed: 5/6 changed files
  • Comments generated: 1

Comment thread internal/oidc/oidc_credential.go
@kbukum1 kbukum1 force-pushed the kbukum1/cloudsmith_oidc_support_private_regisitiries_org_level branch from 1ec131a to e91eeb0 Compare April 15, 2026 00:00
@kbukum1 kbukum1 marked this pull request as ready for review April 15, 2026 00:20
@kbukum1 kbukum1 requested a review from a team as a code owner April 15, 2026 00:20
@kbukum1 kbukum1 force-pushed the kbukum1/cloudsmith_oidc_support_private_regisitiries_org_level branch from e91eeb0 to 151e245 Compare April 15, 2026 00:30
Comment thread internal/oidc/oidc_credential.go
- Rename oidc-namespace to namespace
- Rename oidc-service-slug to service-slug
- Rename oidc-audience to audience
- Add pull request template

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kbukum1 kbukum1 force-pushed the kbukum1/cloudsmith_oidc_support_private_regisitiries_org_level branch from 151e245 to 0c93db5 Compare April 15, 2026 22:26
@kbukum1 kbukum1 merged commit 1be058c into main Apr 15, 2026
95 of 98 checks passed
@kbukum1 kbukum1 deleted the kbukum1/cloudsmith_oidc_support_private_regisitiries_org_level branch April 15, 2026 22:38
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