Deprecate user building features
Requirement
As we're providing feature parity between IntegrationProfile and the old IntegrationPlatform (#6705) we should remove the following features:
- builder trait: move builder properties to camel trait instead
- integration repositories: only inherit those available in the profile.
We must introduce a deprecation notice to enable future removal. We want to only enable certain build features via an administrative role (for example, via the creation of profiles).
Beside those we should enable the following policies in the profile (and default env var):
- enable Quarkus native: to make this option available via profile only
- quarkus images to use: use only the one provided in the profile (via allowlist)
- base images: use only the one provided in the profile (via allowlist)
@squakez i am taking this up if it is okay with you!
@Thundercloud12 sure, thanks! Feel free to provide a short low level design first so we can have a discussion about the directions to take before the implementation if you prefer.
yes i would considering the back and forth we did on artemis queue, okay so the design now: Our goal is to centralise the config, allowing less access to the developers to roughly sum it up,implementation can be done as follows:
- Move the buildertrait up to the camel so that only admin would be able to define them
- for maven repository centralise it in integrationprofile
- Quarkus native build policy: Introduce a configurable policy through IntegrationProfile and QUARKUS_NATIVE_ENABLED to control whether native builds are permitted
- -Shared allowlist architecture: Reuse common configuration parsing and validation utilities for Maven repositories, Quarkus images, and build base images, while maintaining separate resource-specific policies. 5.Image validation: Validate nativeBaseImage, nativeBuilderImage, and builder.baseImage against the effective platform configuration and applicable allowlists. Reject unauthorized images
this pattern of validating against a list provided by lets say admin is common i would like to implement it common across all of them where it is useful like macen and that image build settings @squakez
Okey, thanks for the analysis effort. I realize this is requiring a bit of more internal design changes, so it needs some more experience to have a deeper internal knowledge. It's not marked as good-first-issue for this reason and it is better that any more knowledge committer takes care. I'll remove the assignment if you don't mind and feel free to pick up any other open issue.
hey@squakez! I want explore to this issue and understand the internal design involved. Would it be okay if I spend some time looking into it and thinking through a possible approach?
hey@squakez! I want explore to this issue and understand the internal design involved. Would it be okay if I spend some time looking into it and thinking through a possible approach?
Thanks for the interest. I think this need before some design change that is in scope within v3 and some development that is still ongoing. Still early to tackle at this point.