DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
crossplane-function-aws-query-fips logoFIPS

crossplane-function-aws-query-fips

packaged by Chainguard

Last changed
Available on Enterprise

Starter and Team plans don't include this image. Enterprise does.

Compare plans
Chainguard HarnessHack your app with frontier AI

Chainguard Harness uses frontier models from Anthropic, OpenAI, and Google to attack a copy of your app built on crossplane-function-aws-query-fips. It finds exploitable, validated issues that SAST and DAST tools aren't built to find.

Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for crossplane-function-aws-query-fips

Crossplane composition function that runs read-only queries against AWS APIs and exposes the results to later pipeline steps, built with FIPS-validated cryptography.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/crossplane-function-aws-query-fips:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

The Chainguard crossplane-function-aws-query-fips container image is a drop-in replacement for the upstream function-aws-query Crossplane package published at xpkg.upbound.io/upbound/function-aws-query. The image ships the function binary together with the Crossplane package metadata and the Input CRD in /package.yaml, so you can reference it directly in a Function resource. Like the upstream image, it uses /function as the entrypoint, runs as the nonroot user with UID 65532, and serves gRPC on port 9443.

The image is built on Chainguard OS instead of the distroless Debian base used upstream, and the function is compiled from source.

In addition, this FIPS variant is built with a Go toolchain that routes the standard library cryptography through the OpenSSL FIPS provider:

  • The function's mTLS gRPC server only negotiates FIPS-approved TLS cipher suites.
  • AWS Signature Version 4 request signing and the HTTPS connections to AWS API endpoints use FIPS-validated cryptography.

Prerequisites

You need a Kubernetes cluster with Crossplane installed. If Crossplane is not installed yet, install it with Helm:

helm repo add crossplane-stable https://charts.crossplane.io/stable
helm repo update
helm install crossplane --namespace crossplane-system --create-namespace crossplane-stable/crossplane

Getting Started

Crossplane's package manager pulls the package itself, so it needs credentials for your private repository in the namespace Crossplane runs in. Create a pull token, export its username and password as CGR_USERNAME and CGR_PASSWORD, then run:

kubectl create secret docker-registry cgr-pull-secret \
  --namespace crossplane-system \
  --docker-server=cgr.dev \
  --docker-username="$CGR_USERNAME" \
  --docker-password="$CGR_PASSWORD"

Create a Function resource that points at the Chainguard image:

cat > function.yaml <<EOF
apiVersion: pkg.crossplane.io/v1
kind: Function
metadata:
  name: function-aws-query
spec:
  package: cgr.dev/ORGANIZATION/crossplane-function-aws-query-fips:latest
  packagePullSecrets:
    - name: cgr-pull-secret
EOF
kubectl apply -f function.yaml

Wait for Crossplane to install the function and report it as healthy:

kubectl wait --for=condition=Healthy function.pkg.crossplane.io/function-aws-query --timeout=300s

Configuration

The function authenticates the same way as the official AWS provider. The simplest source is a Secret holding an AWS shared-credentials file under the credentials key, the same format provider-upjet-aws uses:

cat > credentials.ini <<EOF
[default]
aws_access_key_id = <access-key-id>
aws_secret_access_key = <secret-access-key>
EOF
kubectl create secret generic aws-creds -n crossplane-system --from-file=credentials=credentials.ini

Each composition step sets a queryType, and a target field path where the function writes the query result. The following Composition writes the caller identity and the availability zones of the region named in the composite resource (XR) spec to its status:

cat > composition.yaml <<EOF
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
  name: function-aws-query
spec:
  compositeTypeRef:
    apiVersion: example.io/v1alpha1
    kind: XAccount
  mode: Pipeline
  pipeline:
    - step: caller-identity
      functionRef:
        name: function-aws-query
      input:
        apiVersion: aws.fn.crossplane.io/v1beta1
        kind: Input
        queryType: GetCallerIdentity
        target: status.callerIdentity
      credentials:
        - name: aws-creds
          source: Secret
          secretRef:
            namespace: crossplane-system
            name: aws-creds
    - step: availability-zones
      functionRef:
        name: function-aws-query
      input:
        apiVersion: aws.fn.crossplane.io/v1beta1
        kind: Input
        queryType: DescribeAvailabilityZones
        regionRef: spec.region
        target: status.availabilityZones
      credentials:
        - name: aws-creds
          source: Secret
          secretRef:
            namespace: crossplane-system
            name: aws-creds
EOF
kubectl apply -f composition.yaml

Declare each status target in the XR's CompositeResourceDefinition, because Crossplane rejects status fields that are not in the schema. Later pipeline steps, such as function-go-templating or function-patch-and-transform, can read the query results from the XR.

Other query types cover regions, AMI lookups, service quotas, AWS Cloud Control and Resource Groups Tagging API resource discovery, and EC2 route table, subnet, and security group describes. IRSA, web identity, and Pod Identity credentials, as well as STS assume-role chains, are also supported. Refer to the upstream examples for each query type.

To point the AWS SDK at a different endpoint, for example a VPC endpoint or an AWS-compatible emulator, set the AWS_ENDPOINT_URL environment variable on the function's package-runtime container with a DeploymentRuntimeConfig.

Documentation and Resources

What are Chainguard Containers?

Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.

All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.

In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.

Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.

Need additional packages?

To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.

To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • NIST-PD

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Compliance

Chainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.

SLSA compliance at Chainguard

This image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.

PCI DSS at Chainguard

This is a FIPS validated image for FedRAMP compliance.

This image is STIG hardened and scanned against the DISA General Purpose Operating System SRG with reports available.

Learn more about STIGsGet started with STIGs

Related images
crossplane-function-aws-query logo

crossplane-function-aws-query


Category
FIPS
STIG

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.