Open rashedkvm opened 2 years ago
PR vmware-tanzu/source-controller#307 has the initial implementation for this feature.
It enables source controller to use either HTTP
or HTTPS
. the default is HTTP
, unless server private key
and certificate
is provided which enables HTTPS
.
PR vmware-tanzu/source-controller#307 has the initial implementation for this feature.
It enables source controller to use either
HTTP
orHTTPS
. the default isHTTP
, unless server privatekey
andcertificate
is provided which enablesHTTPS
.
@kvmw is this still the design/approach to enable HTTPS
?
cert-manager
managing certificates?cert-manager
managing certs, how is HTTPS
disabled? cert-manager
to generate the self-signed certificate. enable_tls=true
) to enable HTTPS. to disable HTTPS we can pass enable_tls=false
or leave this value out. the default value is false
. @rashedkvm using cert-manager we have met the following two requirements:
Able to consume certificate updates
We need to deal with backward compatibility and the client trust now.
Enable TLS for source artifact download URL
The current implementation of source controller API
ImageRepository
andMavenArtifact
expose the resulting source artifact at aHTTP
URL defined in.status.artifact.url
. The source artifact URL is not exposed externally and is only available to in-cluster consumers. This feature request requires TLS for the source artifact download endpoint.Additional context An accepted solution for this Proposal must include the requirements listed below.
HTTP
URL and support existing clients during the deprecated period)Proposal
cert-manager
to issue a certificate and rotate expired certificatesSecureArtifact
that has all the existing fields available in the existingArtifact
type plus a new field calledCABundle
. TheCABundle
is a string field that contains the client certificate key/value pairURL
field forSecureArtifact
will contain theHTTPS
download URLStatus
will includeSecureArtifact
as well as existingArtifact
and maintain backward compatibilityHere is a mock shape of the fixed name
secret
Here is a mock of the proposed API status
Testing
HTTPS
featureImageRespository
resourceHTTPS
endpointMavenArtifact
resourceHTTPS
endpoint