API --- Allow the user to pass the CA public certification or skip the verification AWSCloud -------- Restore the old version of newAwsFromCreds for access to AWS Create a new method newAwsFromCredsWithEndpoint for Generic S3 which sets the endpoint and optionally overrides the CA Bundle or skips the SSL certificate verification jobimpl-osbuild --------------- Update with the new parameters osbuild-upload-generic-s3 ------------------------- Add ca-bunlde and skip-ssl-verification flags tests ----- Split the tests into http, https with certificate and https skip certificate check Create a new base test for S3 over HTTPS for secure and insecure Move the generic S3 test to tools to reuse for secure and insecure connections All S3 tests now use the aws cli tool Update the libvirt test to be able to download over HTTPS Update the RPM spec Kill container with sudo
22 lines
673 B
Go
22 lines
673 B
Go
package target
|
|
|
|
type GenericS3TargetOptions struct {
|
|
AWSS3TargetOptions
|
|
Endpoint string `json:"endpoint"`
|
|
CABundle string `json:"ca_bundle"`
|
|
SkipSSLVerification bool `json:"skip_ssl_verification"`
|
|
}
|
|
|
|
func (GenericS3TargetOptions) isTargetOptions() {}
|
|
|
|
func NewGenericS3Target(options *GenericS3TargetOptions) *Target {
|
|
return newTarget("org.osbuild.generic.s3", options)
|
|
}
|
|
|
|
type GenericS3TargetResultOptions AWSS3TargetResultOptions
|
|
|
|
func (GenericS3TargetResultOptions) isTargetResultOptions() {}
|
|
|
|
func NewGenericS3TargetResult(options *GenericS3TargetResultOptions) *TargetResult {
|
|
return newTargetResult("org.osbuild.generic.s3", options)
|
|
}
|