feat: 1047 typed credentials - full migration path#2519
Closed
matthiasbruns wants to merge 32 commits into
Closed
Conversation
❌ Deploy Preview for ocm-website failed. Why did it fail? →
|
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2b31d10 to
5f3c60f
Compare
178160d to
5dfaeb8
Compare
fabianburth
reviewed
May 19, 2026
4 tasks
jakobmoellerdev
pushed a commit
that referenced
this pull request
May 20, 2026
#### What this PR does / why we need it This PR migrates the following bindings to runtime.Typed credentials - blob - rsa - signing Since we touch central interfaces, this is a breaking change. The migration path can be observed here: #2519 #### Which issue(s) this PR fixes Contributes: - open-component-model/ocm-project#1055 #### Testing Fully tested locally with `go.work` enabled in open-component-model/ocm-project#1047 --------- Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
ocmbot2 Bot
pushed a commit
to morri-son/open-component-model
that referenced
this pull request
May 20, 2026
…ent-model#2580) #### What this PR does / why we need it This PR migrates the following bindings to runtime.Typed credentials - blob - rsa - signing Since we touch central interfaces, this is a breaking change. The migration path can be observed here: open-component-model#2519 #### Which issue(s) this PR fixes Contributes: - open-component-model/ocm-project#1055 #### Testing Fully tested locally with `go.work` enabled in open-component-model/ocm-project#1047 --------- Signed-off-by: Matthias Bruns <git@matthiasbruns.com> c7e5118
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com> # Conflicts: # bindings/go/oci/go.sum # Conflicts: # bindings/go/credentials/doc.go # bindings/go/credentials/graph.go # bindings/go/credentials/graph_test.go # bindings/go/credentials/interface.go # bindings/go/credentials/plugins.go # bindings/go/credentials/resolve_direct.go # bindings/go/credentials/resolve_direct_test.go # bindings/go/credentials/resolve_static.go # bindings/go/credentials/resolve_static_test.go
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com> # Conflicts: # bindings/go/oci/repository/resource/resource_repository.go
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
c8aaf22 to
0c05929
Compare
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
matthiasbruns
added a commit
that referenced
this pull request
May 21, 2026
#### What this PR does / why we need it This PR migrates the following bindings to runtime.Typed credentials - repository - sigstore Since we touch central interfaces, this is a breaking change. For `sigstore`, this PR already introduces typed credentials and identities and updates all code paths where possible. (identity is mostly there for documentation, since we delayed the migration to typed identities) The migration path can be observed here: #2519 #### Which issue(s) this PR fixes Contributes: - open-component-model/ocm-project#1055 #### Testing - breaking change only tested with binding tests - go.work disabled, task test is green --------- Signed-off-by: Matthias Bruns <git@matthiasbruns.com> Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> Co-authored-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
On-behalf-of: SAP <matthias.bruns@sap.com> Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
skarlso-release-bot Bot
pushed a commit
to Skarlso/open-component-model
that referenced
this pull request
May 21, 2026
…nent-model#2586) #### What this PR does / why we need it This PR migrates the following bindings to runtime.Typed credentials - repository - sigstore Since we touch central interfaces, this is a breaking change. For `sigstore`, this PR already introduces typed credentials and identities and updates all code paths where possible. (identity is mostly there for documentation, since we delayed the migration to typed identities) The migration path can be observed here: open-component-model#2519 #### Which issue(s) this PR fixes Contributes: - open-component-model/ocm-project#1055 #### Testing - breaking change only tested with binding tests - go.work disabled, task test is green --------- Signed-off-by: Matthias Bruns <git@matthiasbruns.com> Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> Co-authored-by: Gerald Morrison (SAP) <gerald.morrison@sap.com> 6c9693c
matthiasbruns
added a commit
that referenced
this pull request
May 21, 2026
#### What this PR does / why we need it This PR migrates the following bindings to runtime.Typed credentials - oci Since we cascade the repository breaking changes, set public consts to private and change the spec, this is a breaking change. The migration path can be observed here: #2519 #### Which issue(s) this PR fixes Contributes: - open-component-model/ocm-project#1055 #### Testing - breaking change only tested with binding tests - go.work disabled, task test is green --------- Signed-off-by: Matthias Bruns <git@matthiasbruns.com>
Member
|
superceded by #2599 as tracker |
jakobmoellerdev
added a commit
that referenced
this pull request
May 21, 2026
#### What this PR does / why we need it Migrates the `constructor` binding to use `runtime.Typed` credentials, following the established pattern from: - #2580 (blob, rsa, signing) - #2594 (oci) Updates the following interfaces from `map[string]string` → `runtime.Typed`: - `ResourceInputMethod.ProcessResource` - `SourceInputMethod.ProcessSource` - `ResourceDigestProcessor.ProcessResourceDigest` - `ResourceRepository.DownloadResource` Also migrates `resolveCredentials` to call `ResolveTyped` and bumps the `credentials` dependency from `v0.0.10` → `v0.0.11`. #### Which issue(s) this PR fixes Contributes: - open-component-model/ocm-project#1055 Part of the migration path: #2519 #### Dependencies This PR depends on #2594 (oci) being merged first. #### Testing - All existing constructor binding tests pass (`go test ./...`) - Breaking change — callers must update mock implementations to accept `runtime.Typed` --------- Signed-off-by: Jakob Möller <contact@jakob-moeller.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it
This PR basically migrates the whole code-base to the final state of credentials including cli and controllers.
runtime.Typedinto typed credentials in the bindings where neededWhich issue(s) this PR fixes
Contributes:
Binding release order
Dependency graph (changed → changed only):
blob → (none)
signing → (none)
rsa → (none)
sigstore → signing
repository → blob, credentials
oci → blob, credentials, repository
constructor → blob, credentials, oci, repository
plugin → blob, constructor, credentials, repository, signing
input/dir → blob, constructor, credentials, repository
input/file → blob, constructor, credentials, repository
input/utf8 → blob, constructor, credentials, repository
helm → blob, constructor, credentials, oci, plugin, repository
transfer → blob, credentials, helm, oci, repository, signing
PR plan: