Path: .spec.auth.hmac
Description: Allows you to connect to s3 buckets using an HMAC key/id pair.
Note: .spec.backendService
must be set to s3
for auth to take effect.
Schema:
hmac:
type: object
allOf:
- oneOf:
- required: [accessKeyId]
- required: [accessKeyIdRef]
- oneOf:
- required: [secretAccessKey]
- required: [secretAccessKeyRef]
properties:
accessKeyId:
type: string
accessKeyIdRef:
type: object
required: [valueFrom]
properties:
valueFrom:
type: object
required: [secretKeyRef]
properties:
secretKeyRef:
type: object
required: [name, key]
properties:
name:
type: string
namespace:
type: string
key:
type: string
secretAccessKey:
type: string
secretAccessKeyRef:
type: object
required: [valueFrom]
properties:
valueFrom:
type: object
required: [secretKeyRef]
properties:
secretKeyRef:
type: object
required: [name, key]
properties:
name:
type: string
namespace:
type: string
key:
type: string
Path: .spec.auth.iam
Description: Allows you to connect to s3 buckets using an IAM provider and api key.
Note: .spec.backendService
must be set to s3
for auth to take effect.
- Sample values for IBM Cloud Object Storage
- grant_type: "urn:ibm:params:oauth:grant-type:apikey"
- url: "https://iam.cloud.ibm.com/identity/token"
Schema:
iam:
type: object
allOf:
- required: [url, grantType]
- oneOf:
- required: [apiKey]
- required: [apiKeyRef]
properties:
grantType:
type: string
url:
type: string
format: uri
apiKey:
type: string
apiKeyRef:
type: object
required: [valueFrom]
properties:
valueFrom:
type: object
required: [secretKeyRef]
properties:
secretKeyRef:
type: object
required: [name, key]
properties:
name:
type: string
namespace:
type: string
key:
type: string
- If
.spec.backendService
is set tos3
and url ends with/
, we will assume this is an S3 directory and will attempt to download all resources in the directory. - Every resource within the directory will be downloaded using the
.spec.requests[].options
provided with the directory url. - Path must follow one of:
http://s3.endpoint.com/bucket/path/to/your/resources/
http://bucket.s3.endpoint.com/path/to/your/resources/