github osscontainertools/kaniko v1.29.3

one hour ago

Community Update

@Arakos made their first contribution in #1573.

A special shoutout to @gary-wall, who landed 10 changes this release. Most notably COPY --parents, COPY --exclude and remote ADD sources from the warmer cache.

Also many thanks to @bardweasel and @hanbyeol for reporting issues fixed in this release.

We maintain kaniko integrations for GitLab CI and GitHub Actions.

GitLab components:

  • build and build-multiarch, with one native runner per architecture
  • bake and bake-multiarch for several images from one bakefile
  • cosign signatures, keyless on gitlab.com, and signed SBOMs
  • SLSA provenance
  • build traces to Firn

GitHub action:

  • single and multi-arch images, emulated or with one runner per platform
  • bake for several images from one bakefile
  • cosign signatures, keyless or with a key, and signed SBOMs
  • SLSA provenance
  • build traces to Firn

Firn is our build telemetry service for kaniko. It automatically finds problems in your builds and suggests fixes. You can use it for free.

What's Changed

Bugfixes

  • FF_KANIKO_REJECT_FORWARD_STAGE_REFS=false with --target, COPY --from a later stage pulls a registry image of the same name: #1567
  • FF_KANIKO_REGISTRY_MAP_PATH_PREFIX=false a mirror like artifactory.example.com/hub.docker.com is never used: by @Arakos in #1573
  • FF_KANIKO_ADD_RESOLVE_ONCE=false ADD with a wildcard copies the wrong files when a matched name contains $ or [: #1558
  • FF_KANIKO_STRICT_WHITEOUTS=false COPY --from=<image> and RUN --mount=from=<image> see files the image deleted: #1564
  • FF_KANIKO_LITERAL_PATH_PREFIX=false the .dockerignore is ignored when the build context is / or its path contains [: #1565
  • a --build-arg value with quotes fails FROM with could not parse reference: #1542
  • COPY --chmod and ADD --chmod subtract the umask on parent directories they create: #1629
  • a RUN that leaves a symlink pointing to itself fails the build: #1628

Standardization

  • FF_KANIKO_SKIP_UNSET_BUILD_ARGS=false --build-arg NAME keeps the ARG default when NAME is not set in the environment: by @gary-wall in #1551
  • FF_KANIKO_COPY_EXCLUDE=false support COPY --exclude and ADD --exclude: by @gary-wall in #1562
  • FF_KANIKO_MAINTAINER=false support the MAINTAINER instruction: by @gary-wall in #1572
  • FF_KANIKO_GLOBAL_BUILD_ARGS=false FROM keeps empty --build-arg values and values containing =: #1561
  • FF_KANIKO_FROM_LEX_ONCE=false FROM uses a --build-arg value as is, without interpreting quotes: #1542
  • FF_KANIKO_FROM_PLATFORM=false support FROM --platform: #1559
  • FF_KANIKO_COPY_PARENTS=false support COPY --parents: by @gary-wall in #1566 #1624
  • FF_KANIKO_SNAPSHOT_VOLUMES=false keep files written below a VOLUME in the image: #1625

Caching

  • FF_KANIKO_WARMER_EXECUTOR_PARITY=false warmer also caches the images of ONBUILD and RUN --mount=from=<image>: #1545
  • FF_KANIKO_CACHE_ADD_SOURCES=false warmer caches ADD --checksum downloads for the executor: by @gary-wall in #1462
  • FF_KANIKO_IGNORE_CACHE_DIR=false a --cache-dir that is not a mount is kept between stages: #1543
  • FF_KANIKO_COPY_FROM_SKIP_DOCKERIGNORE=false COPY --from serves a stale cached layer when the .dockerignore is an allowlist: #1631

Performance

  • FF_KANIKO_FAST_SECUREJOIN=false faster SecureJoin during layer extraction: #1285
  • FF_KANIKO_NEW_RUN_DELETES=false faster first RUN of a stage with --use-new-run: #1591
  • FF_KANIKO_SHALLOW_SUBMODULES=false --git=depth also applies to submodules: #1627
  • --image-format no longer uploads base layers again on push: #1626

Usability

  • warmer --target caches only the images that target needs: by @gary-wall in #1550
  • hint when COPY writes files identical to the ones already there: #1622
  • hint that apk keeps packages only in /etc/apk/cache: #1621
  • hint when WORKDIR lies inside a mount or --ignore-path: #1621

Bake

  • bake variable blocks: #1616
  • bake functions like lower and replace: #1618
  • bake group blocks: #1620
  • bake rejects a matrix instance named like another block: #1619

Telemetry

Packaging

  • kaniko images build only from digest-pinned bases and checksummed downloads: by @gary-wall in #1540

Maintenance

  • build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.48.0 to 1.49.0: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.21 to 1.33.26: #1546 #1571 #1584 #1580
  • build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.5.11 to 0.6.2: #1546 #1571 #1580
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.116.0 to 1.117.1: #1546 #1571 #1584
  • build(deps): bump github.com/docker/cli from 29.10.0+incompatible to 29.10.1+incompatible: #1546
  • build(deps): bump cloud.google.com/go/auth from 0.24.4 to 0.24.5: #1546
  • build(deps): bump github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream from 1.7.27 to 1.7.29: #1546 #1571
  • build(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.21.3 to 1.21.7: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds from 1.20.9 to 1.20.12: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/internal/configsources from 1.5.12 to 1.5.15: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 from 2.8.12 to 2.8.15: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/internal/v4a from 1.5.12 to 1.5.15: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecr from 1.69.0 to 1.70.1: #1546 #1578
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecrpublic from 1.47.12 to 1.48.1: #1546 #1577
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding from 1.13.25 to 1.13.27: #1546 #1571
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/checksum from 1.11.13 to 1.11.16: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/presigned-url from 1.14.12 to 1.14.15: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/s3shared from 1.20.12 to 1.20.15: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/signin from 1.14.0 to 1.14.3: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/sso from 1.39.5 to 1.39.8: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/ssooidc from 1.44.5 to 1.44.8: #1546 #1571 #1584
  • build(deps): bump github.com/aws/aws-sdk-go-v2/service/sts from 1.53.0 to 1.54.0: #1546 #1571 #1584
  • build(deps): bump github.com/aws/smithy-go from 1.28.9 to 1.28.13: #1546 #1552 #1584
  • build(deps): bump github.com/moby/sys/user from 0.5.0 to 0.5.1: #1546
  • build(deps): bump google.golang.org/api from 0.316.0 to 0.317.0: #1546
  • build(deps): bump google.golang.org/genproto/googleapis/rpc from 0.0.0-20261104224025-d1e00e9f33ab to 0.0.0-20261202194610-22e8acf14972: #1546 #1590 #1599
  • build(deps): bump sigstore/cosign-installer from 4.1.3 to 4.1.4: #1536
  • build(deps): bump golang: #1534 #1553 #1574
  • build(deps): bump github.com/ulikunitz/xz from 0.5.17 to 0.5.18: #1571
  • build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/storage/azblob from 1.8.3 to 1.8.4: #1584
  • build(deps): bump github.com/go-git/go-git/v5 from 5.19.3 to 5.19.4: #1584
  • build(deps): bump github.com/googleapis/enterprise-certificate-proxy from 0.3.25 to 0.3.26: #1584
  • build(deps): bump github.com/pjbgf/sha1cd from 0.7.0 to 0.8.0: #1584
  • build(deps): bump github.com/golang-jwt/jwt/v5 from 5.3.1 to 5.4.0: #1581
  • build(deps): bump step-security/harden-runner from 2.23.0 to 2.24.0: #1588
  • build(deps): bump github.com/gobwas/glob from 0.2.3 to 1.1.0 in /tools: #1585 #1614
  • build(deps): bump github.com/OpenPeeDeeP/depguard/v2 from 2.2.1 to 2.3.0 in /tools: #1585
  • build(deps): bump github.com/ghostiam/protogetter from 1.0.1 to 1.0.2 in /tools: #1585
  • build(deps): bump github.com/manuelarte/funcorder from 0.6.0 to 0.6.1 in /tools: #1585
  • build(deps): bump github.com/moby/sys/mountinfo from 0.7.3 to 0.7.4 in /tools: #1585
  • build(deps): bump github.com/containerd/containerd/v2 from 2.4.2 to 2.4.3 in /tools: #1589
  • build(deps): bump github.com/GoogleCloudPlatform/docker-credential-gcr/v2 from 2.2.2 to 2.2.3: #1590
  • build(deps): bump github.com/googleapis/gax-go/v2 from 2.27.0 to 2.27.1: #1590
  • build(deps): bump google.golang.org/genproto/googleapis/api from 0.0.0-20261110000943-09e21b237f2c to 0.0.0-20261202194610-22e8acf14972: #1590 #1599
  • build(deps): bump go.opentelemetry.io/otel from 1.47.0 to 1.48.0: #1599 #1614
  • build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.47.0 to 1.48.0: #1599
  • build(deps): bump go.opentelemetry.io/otel/sdk from 1.47.0 to 1.48.0: #1599
  • build(deps): bump go.opentelemetry.io/otel/trace from 1.47.0 to 1.48.0: #1599
  • build(deps): bump alpine from 3.24.4 to 3.25.0: #1598
  • build(deps): bump github.com/breml/errchkjson from 0.4.2 to 0.5.0 in /tools: #1614
  • build(deps): bump github.com/charmbracelet/x/ansi from 0.11.10 to 0.12.0 in /tools: #1614
  • build(deps): bump github.com/dlclark/regexp2/v2 from 2.13.2 to 2.14.0 in /tools: #1614
  • build(deps): bump github.com/ldez/usetesting from 0.5.0 to 0.5.1 in /tools: #1614
  • build(deps): bump github.com/nishanths/exhaustive from 0.17.1 to 0.18.0 in /tools: #1614
  • build(deps): bump github.com/nishanths/predeclared from 0.3.1 to 0.4.0 in /tools: #1614
  • build(deps): bump github.com/sourcegraph/go-diff from 0.10.0 to 0.11.0 in /tools: #1614
  • build(deps): bump github.com/spf13/afero from 1.15.0 to 1.16.1 in /tools: #1614
  • build(deps): bump github.com/osscontainertools/docker-credential-acr from 1.0.2 to 1.0.3: #1633
  • build(deps): bump golang.org/x/crypto from 0.59.0 to 0.60.0: #1633
  • build(deps): bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.72.0 to 0.73.0: #1636 #1635

Fork Related

Refactorings

Don't miss a new kaniko release

NewReleases is sending notifications on new releases.