-
Notifications
You must be signed in to change notification settings - Fork 23
[SECURESIGN-3399] make services URLs configurable in TUF repository #1484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
014f867 to
e0443d2
Compare
PR Type
Enhancement
Description
Add configurable service URLs for Ctlog, Fulcio, Rekor, and TSA in TUF repository
Introduce service configuration structs with address and port fields
Implement URL resolution logic supporting both custom and default service endpoints
Update TUF initialization job to pass resolved service URIs as arguments
Add helper method to retrieve trusted CA from annotations
Diagram Walkthrough
File Walkthrough
common.go
Add service configuration structsapi/v1alpha1/common.go
FulcioService,RekorService, andTsaServiceAddressandPortfields with validation(port range 1-65535)
CtlogServiceforconsistency
tuf_types.go
Add service configs to TufSpecapi/v1alpha1/tuf_types.go
TufSpec:Ctlog,Fulcio,Rekor, andTsaGetTrustedCA()method to retrieve trusted CA from annotationsCtlogfield with default prefix valuetuf_init_job.go
Implement service URL resolution logicinternal/controller/tuf/utils/tuf_init_job.go
ServicesURIsstruct to hold resolved service URLsresolveServicesUrls()function to resolve service endpointsfrom spec or defaults
protocol selection
EnsureTufInitJobto resolve and pass service URIs as CLIarguments to TUF init job
zz_generated.deepcopy.go
Generate deepcopy methods for servicesapi/v1alpha1/zz_generated.deepcopy.go
DeepCopyIntoandDeepCopymethods forFulcioService,RekorService, andTsaServiceTufSpec.DeepCopyIntoto handle new service configuration fieldsRekorSpec.DeepCopyIntoto properly deep copyMonitoringfieldMonitoringWithTLogConfig.DeepCopyIntoto deep copyTuffieldrhtas.redhat.com_securesigns.yaml
Update SecureSign CRD schemaconfig/crd/bases/rhtas.redhat.com_securesigns.yaml
ctlog,fulcio,rekor, andtsaserviceconfigurations
addressandportfields withvalidation
prefixfield with default and pattern validationrhtas.redhat.com_tufs.yaml
Update Tuf CRD schemaconfig/crd/bases/rhtas.redhat.com_tufs.yaml
ctlog,fulcio,rekor, andtsaserviceconfigurations
addressandportfields withvalidation
prefixfield with default and pattern validationimages.env
Update TUF image referenceconfig/default/images.env
RELATED_IMAGE_TUFto new image SHA256 digest