feat: add root component for plugin registry#1229
Conversation
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com>
f35c000 to
1bc2925
Compare
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
What major updates are you thinking about? What about deletions of plugins from a registry - How would that work? |
I think this should be the way. If a new plugin is introduced, it should also be added to the template. Otherwise it feels like an exploitable vulnerability. |
frewilhelm
left a comment
There was a problem hiding this comment.
great work! just some questions :)
|
Going to make a decision here, and generate the plugins list dynamically. |
Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
|
So... flow is as follows:
Done. Much simpler flow. |
|
This is how it looks like when a new plugin is released and then another plugin is released with a new version: - component:
componentReferences:
- componentName: ocm.software/plugins/helminput
digest:
hashAlgorithm: SHA-256
normalisationAlgorithm: jsonNormalisation/v4alpha1
value: 4a3c1303bfbbc01090375e3ffc73bc8b7bbfcf6e3d4f682eaa8634df3462375b
name: helminput
version: 3.0.8
- componentName: ocm.software/plugins/helminput
digest:
hashAlgorithm: SHA-256
normalisationAlgorithm: jsonNormalisation/v4alpha1
value: bfc01fc6eccf571864ef6ebe24ff476ae3019d42178ab5e7998a22bd848139a6
name: helminput
version: 3.1.0
name: ocm.software/plugin-registry
provider: ocm.software
repositoryContexts: null
resources: null
sources: null
version: v0.1.1
meta:
schemaVersion: v2
- component:
componentReferences:
- componentName: ocm.software/plugins/helminput
digest:
hashAlgorithm: SHA-256
normalisationAlgorithm: jsonNormalisation/v4alpha1
value: 4a3c1303bfbbc01090375e3ffc73bc8b7bbfcf6e3d4f682eaa8634df3462375b
name: helminput
version: 3.0.8
name: ocm.software/plugin-registry
provider: ocm.software
repositoryContexts: null
resources: null
sources: null
version: v0.1.0
meta:
schemaVersion: v2 |
Puh, this will be endlessly redundant. Not sure if this is maintainable after v0.123.0. But I don't have any idea how to do that better right now :D |
|
Yeah. 🤔 I don't know. We don't want to overwrite versions... So... I don't know. :D |
|
The plugin registry file will be large. very large in fact. but thats okay :) |
maybe in a later iteration we find a way to split it more - like nexus handles dependencies (folder structure, etc) |
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
2e72104 to
bfcc1c8
Compare
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
bfcc1c8 to
dd58335
Compare
|
I'm simplifying this even further. |
a87c864 to
7c57e17
Compare
…the version and put it into the prepare script On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
7c57e17 to
249cd19
Compare
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
plugin exists check is working 🎉 |
Do we have a follow up for this already? |
this is very hard to understand for me, could you try to rephrase the problem in different wording so I understand what you are looking to solve? |
Yep. I have an issue for that #1227. It's in needs refinement for sprint 52 and doesn't belong to an EPIC yet.
Nevermind, I already decided on what to do. :) You can ignore it. |
|
Yay, successful run after fixes ( I'll push them in a sec ):
Whoops, previous is empty. :D |
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
jakobmoellerdev
left a comment
There was a problem hiding this comment.
huge PR so no guarantee that I didnt catch some stuff but generally ok for me (I think) :D
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
On-behalf-of: Gergely Brautigam <gergely.brautigam@sap.com> Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
|
Finally! Behold: Error scenario: It's working <3. I hand wrote the |
|
I removed a bunch of permissions and set some others to read. I'm running a test now. Edit: Crap. It's required for the trigger and the attestation. |
matthiasbruns
left a comment
There was a problem hiding this comment.
too much js for one day
but lgtm - a lot of testing and verification <3

What this PR does / why we need it
Fixes open-component-model/ocm-project#598.
This is the current flow:
Right now, there is no hashing of the component reference or the plugin registry. This will be added in a follow-up.
Flow:
Release new Go Submodule for Helm -> Triggers a publish on the plugin -> Triggers an update of the root component update.
TODO/Questions:
Which issue(s) this PR fixes