Skip to main content

S3Connection

Gives tables a connection to source objects in an Amazon S3 bucket and prefix.

aws.sources.prokrust.ai/v1beta1 · Namespaced · s3connections

Enable the s3 connector CRD in the cluster to use this kind.

The connection spec is immutable. To use different settings, create a new connection.

To select data through this connection, see Create a table.

Controller status​

Conditions​

Controller observations about configuration, credential binding, runtime readiness, and admission. Read the entry for the question you need to answer.

ConditionWhat it tells you
ConfigValidReports whether the controller accepted the connection configuration. Compare the condition’s observed generation with the resource generation.
CredentialsValidReports whether the controller accepted the source credential reference, when the configuration requires one. A connection probe tests access to the source.
RuntimeReadyReports whether at least one runtime pod is ready. Read status.runtime.readyReplicas for the count.
AcceptingNewScansReports whether the workspace can start a new scan on this runtime. Existing work can continue during a drain.

When the runtime is draining

The installation closes admission while two runtime pods remain ready. Existing scans can finish.

status:
observedGeneration: 1
runtime:
acceptsNewScans: false
admissionEpoch: 5
readyReplicas: 2
conditions:
- type: RuntimeReady
status: "True"
reason: RuntimeReplicasReady
observedGeneration: 1
- type: AcceptingNewScans
status: "False"
reason: AdmissionClosed
observedGeneration: 1

Check the workspace and release before starting another scan. Wait for AcceptingNewScans=True at the current generation.

S3Connection condition results and reasons

ConfigValid​

Status and reasonWhat to check
True / ConfigResolvedThe configuration passed validation. Check the runtime and admission conditions before starting a new scan.
False / InvalidConnectionSpecThe specification failed validation. Check the provider’s connection schema. Create a new connection to correct an immutable specification.

CredentialsValid​

Status and reasonWhat to check
True / CredentialBindingResolvedThe credential reference is acceptable, or the configuration needs none. Run a connection probe if you need to verify remote access.
False / CredentialBindingUnavailableThe controller rejected the source Secret reference. Check the name, including whether it is reserved for a Prokrust-managed Secret.

RuntimeReady​

Status and reasonWhat to check
True / RuntimeReplicasReadyAt least one runtime pod is ready. Check AcceptingNewScans to determine whether it can accept new work.
False / WaitingForRuntimeReplicasThe controller counted zero ready runtime pods. Inspect the runtime Deployment and pod readiness in the workspace.

AcceptingNewScans​

Status and reasonWhat to check
True / AdmissionActiveThe workspace is ready, a runtime pod is ready, and admission is open for the requested provider major version.
False / AdmissionClosedCheck workspace enrollment, runtime readiness, and whether the installation is draining, disabling, or replacing the runtime.
Condition field meanings
FieldWhat to look for
typeNames the check. Use it to select the condition you want to inspect.
statusReports whether the named condition holds. Read the reason to see why.
reasonA short identifier for this outcome. Use it when comparing observations or filtering results.
messageWhen present, gives details about this object, such as the name of a dependency.
observedGenerationCompare with metadata.generation to see which version of the spec the controller checked.
lastTransitionTimeRecords the time of the last transition for this condition.
How to read status fields
FieldWhat it tells you
status.observedGenerationThe connection generation observed on the last full reconciliation. Compare it with metadata.generation. After a validation failure, also check each condition’s generation.
status.configDigestIdentifies the resolved connection configuration. Compare the digest when checking which source configuration a runtime serves.
status.resolvedConfigRefsLists resolved configuration references. These controller versions publish an empty list. Check CredentialsValid for the outcome of credential reference validation.
status.rootUIDsRecords the Kubernetes UIDs of the connection’s NetworkPolicy, Service, and Deployment. The controller uses these identities to verify ownership before changing or deleting resources.
status.releasedEpochAdmission epoch acknowledged after the controller removes the managed runtime resources. Inspect it when a disabled connection is being released.
status.runtimeIdentifies the runtime endpoint and reports admission and readiness. Use it to distinguish a missing runtime from a pool closed to new scans.
Kubernetes schema for status

Required applies when the parent is present. A dash in the default column means the CRD declares no default.

FieldTypeRequiredDefaultSchema constraints and descriptions
statusobjectno—Reports the configuration and runtime last observed by the provider controller. Read it when a table cannot start a scan.
status.observedGenerationintegerno—The connection generation observed on the last full reconciliation. Compare it with metadata.generation. After a validation failure, also check each condition’s generation. · format "int64"
status.configDigeststringno—Identifies the resolved connection configuration. Compare the digest when checking which source configuration a runtime serves.
status.resolvedConfigRefsarrayno—Lists resolved configuration references. These controller versions publish an empty list. Check CredentialsValid for the outcome of credential reference validation.
status.resolvedConfigRefs[]object——x-kubernetes-preserve-unknown-fields true
status.rootUIDsobjectno—Records the Kubernetes UIDs of the connection’s NetworkPolicy, Service, and Deployment. The controller uses these identities to verify ownership before changing or deleting resources.
status.rootUIDs[key]string——
status.releasedEpochintegerno—Admission epoch acknowledged after the controller removes the managed runtime resources. Inspect it when a disabled connection is being released. · format "int64"
status.runtimeobjectno—Identifies the runtime endpoint and reports admission and readiness. Use it to distinguish a missing runtime from a pool closed to new scans.
status.runtime.serviceNamestringno—Kubernetes Service name in the workspace that routes requests to the runtime pods.
status.runtime.serviceUIDstringno—UID of the runtime Service observed by the controller. Compare it when checking whether the Service was replaced.
status.runtime.deploymentUIDstringno—UID of the runtime Deployment. Compare it with the Deployment in the workspace when checking a rollout.
status.runtime.portintegerno—Service port for requests to the connector runtime. Use it with the Service name when checking endpoint routing. · minimum 1 · maximum 65535
status.runtime.providerIdstringno—Identifier of the provider serving this connection. Use it to confirm the controller selected the expected connector.
status.runtime.providerMajorintegerno—Major version of the deployed provider. Admission checks it against the requested release before accepting new scans. · minimum 0
status.runtime.protocolMajorintegerno—Connector protocol major version spoken by the runtime. Check it when diagnosing an incompatible client. · minimum 1
status.runtime.readyReplicasintegerno—Count of ready runtime pods with a release label that are not terminating. Check this when RuntimeReady is false. · minimum 0
status.runtime.releaseVersionsarrayno—Distinct release versions found on ready runtime pods. Inspect this list when a rollout still serves multiple versions.
status.runtime.releaseVersions[]string——
status.runtime.admissionEpochintegerno—Current control epoch reported by the runtime pool. Compare epochs when investigating stale scan admission during a drain. · format "int64"
status.runtime.acceptsNewScansbooleanno—Whether new scans may enter the runtime pool. Inspect this flag when pods are ready but new requests are blocked.
status.conditionsarrayno—Controller observations about configuration, credential binding, runtime readiness, and admission. Read the entry for the question you need to answer. · x-kubernetes-list-type "map" · x-kubernetes-list-map-keys ["type"]
status.conditions[]object——
status.conditions[].typestringyes—Names the observation. Use the type to find one condition regardless of list order.
status.conditions[].statusstringyes—Reports the boolean result. The shared controller writes True or False when it completes the check. · enum ["True","False","Unknown"]
status.conditions[].reasonstringyes—Machine-readable explanation for the current state. Use the reason to choose the next check.
status.conditions[].messagestringyes—Additional human-readable detail. The shared controller writes an empty message and supplies its explanation through reason.
status.conditions[].observedGenerationintegerno—Connection generation evaluated for this condition. Compare it with metadata.generation before acting on the result. · format "int64"
status.conditions[].lastTransitionTimestringyes—Time when the boolean status last changed. This can stay the same across reconciliations. · format "date-time"

Specification​

Choose these settings when you create the connection. To change them, create a new connection in the workspace.

This resource requires bucket, region, prefix, bucketOwner, expectedPrincipalArn, credentialsSecretRef.

bucket​

Names the S3 bucket that holds the source objects. Create another connection if your data moves to a different bucket.

region​

Selects the AWS Region for S3 requests. Use the Region of the source bucket.

prefix​

Limits source selection to object keys under this prefix. Use a narrower prefix for one export directory. An empty prefix allows the whole bucket within the reader’s IAM permissions.

bucketOwner​

Supplies the expected AWS account ID on bucket requests. Use the source bucket owner’s account ID for cross-account reads.

expectedPrincipalArn​

Identifies the AWS principal that the source credentials must resolve to. Use the source reader’s ARN, including when its account differs from the bucket owner.

credentialsSecretRef​

Selects the workspace Secret with AWS credentials for source reads. Use a separate Secret when the source requires a different reader.

FieldWhen to use it
spec.credentialsSecretRef.nameUse the Kubernetes name of the Secret in this connection’s workspace. The connector reads its AWS access key, secret key, and optional session token.
Kubernetes schema for spec

Required applies when the parent is present. A dash in the default column means the CRD declares no default.

FieldTypeRequiredDefaultSchema constraints and descriptions
specobjectyes—Choose these settings when you create the connection. To change them, create a new connection in the workspace. · Connection spec is immutable self == oldSelf
spec.bucketstringyes—Names the S3 bucket that holds the source objects. Create another connection if your data moves to a different bucket. · minLength 3 · maxLength 63 · pattern "^[a-z0-9][a-z0-9.-]*[a-z0-9]$"
spec.regionstringyes—Selects the AWS Region for S3 requests. Use the Region of the source bucket. · minLength 3 · maxLength 32 · pattern "^[a-z0-9-]+$"
spec.prefixstringyes—Limits source selection to object keys under this prefix. Use a narrower prefix for one export directory. An empty prefix allows the whole bucket within the reader’s IAM permissions. · maxLength 1024
spec.bucketOwnerstringyes—Supplies the expected AWS account ID on bucket requests. Use the source bucket owner’s account ID for cross-account reads. · pattern "^[0-9]{12}$"
spec.expectedPrincipalArnstringyes—Identifies the AWS principal that the source credentials must resolve to. Use the source reader’s ARN, including when its account differs from the bucket owner. · minLength 20 · maxLength 2048
spec.credentialsSecretRefobjectyes—Selects the workspace Secret with AWS credentials for source reads. Use a separate Secret when the source requires a different reader.
spec.credentialsSecretRef.namestringyes—Use the Kubernetes name of the Secret in this connection’s workspace. The connector reads its AWS access key, secret key, and optional session token. · minLength 1 · maxLength 253 · pattern "^[a-z0-9][a-z0-9.-]*[a-z0-9]$|^[a-z0-9]$"

The validation schema matches prokrust-crds 0.23.0-rc.1.