* pkg/storage/chunk/aws: Fix insecure-skip-verify documentation
The documentation claimed that the `s3.http.insecure-skip-verify` option needed
to be set to `false` in order to skip verifying certificates, but it needs to
be set to `true`.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
* pkg/storage/chunk/aws: Add s3.http.ca-file option
This option lets users set a custom CA file for connections to S3, in case they
use a local S3 instance with an internal PKI.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
f.DurationVar(&cfg.HTTPConfig.IdleConnTimeout,prefix+"s3.http.idle-conn-timeout",90*time.Second,"The maximum amount of time an idle connection will be held open.")
f.DurationVar(&cfg.HTTPConfig.IdleConnTimeout,prefix+"s3.http.idle-conn-timeout",90*time.Second,"The maximum amount of time an idle connection will be held open.")
f.DurationVar(&cfg.HTTPConfig.ResponseHeaderTimeout,prefix+"s3.http.response-header-timeout",0,"If non-zero, specifies the amount of time to wait for a server's response headers after fully writing the request.")
f.DurationVar(&cfg.HTTPConfig.ResponseHeaderTimeout,prefix+"s3.http.response-header-timeout",0,"If non-zero, specifies the amount of time to wait for a server's response headers after fully writing the request.")
f.BoolVar(&cfg.HTTPConfig.InsecureSkipVerify,prefix+"s3.http.insecure-skip-verify",false,"Set to false to skip verifying the certificate chain and hostname.")
f.BoolVar(&cfg.HTTPConfig.InsecureSkipVerify,prefix+"s3.http.insecure-skip-verify",false,"Set to true to skip verifying the certificate chain and hostname.")
f.StringVar(&cfg.HTTPConfig.CAFile,prefix+"s3.http.ca-file","","Path to the trusted CA file that signed the SSL certificate of the S3 endpoint.")
f.StringVar(&cfg.SignatureVersion,prefix+"s3.signature-version",SignatureVersionV4,fmt.Sprintf("The signature version to use for authenticating against S3. Supported values are: %s.",strings.Join(supportedSignatureVersions,", ")))
f.StringVar(&cfg.SignatureVersion,prefix+"s3.signature-version",SignatureVersionV4,fmt.Sprintf("The signature version to use for authenticating against S3. Supported values are: %s.",strings.Join(supportedSignatureVersions,", ")))