Repository navigation
Releases
v1.29.2
Update Notice
⚠️ With--image-fs-extract-retryset, kaniko downloads each base image completely into its local store before extracting it, instead of streaming its layers. Builds on large base images take longer and use more disk. To keep streaming, drop--image-fs-extract-retryand setFF_KANIKO_RESUME_BLOB_DOWNLOADS=true, which continues a dropped layer download. WithoutFF_KANIKO_SHARED_BASE_CACHE, kaniko ignores--image-fs-extract-retry.
Community Update
@ehfd made their first contribution in #1463. @ehfd builds on large images and suggested many optimizations around pulling base images or skipping the pull altogether.
If you also run non-standard workloads, please tell us or write to hello@osscontainertools.org so we can optimize kaniko for your use case too.
What's Changed
Security
- go stdlib v1.27.3: CVE-2026-97054
- golang.org/x/crypto v0.58.0: GO-2026-5932
FF_KANIKO_VERIFY_LAYER_DIGEST=trueverify layer digests on extraction: #1495
Bugfixes
USERfails on a variable modifier in the group: by @gary-wall in #1407FF_KANIKO_RUN_MOUNT_BIND_RESOLVE_SYMLINK=falseRUNbind mount of a symlink source mounts the link: by @gary-wall in #1408FF_KANIKO_PROBE_CREDENTIALS=falseDOCKER_AUTH_CONFIGshadows the gitlab job token: #1396FF_KANIKO_GLOB_CHAR_PATHS=falseCOPY --fromof a directory with glob characters in its name copies nothing: by @gary-wall in #1425FF_KANIKO_RESUME_BLOB_DOWNLOADS=falsea dropped connection during a layer download fails the build: #1478
Standardization
FF_KANIKO_FROM_PREDEFINED_ARGS=falseresolveTARGETARCHinFROM: #1400FF_KANIKO_ALIGN_HISTORY=falsealign image history with layers: #1469
Performance
FF_KANIKO_PARALLEL_GUNZIP=falsedecompress base layers ahead of extraction: #1377- warmer fetches each base once: by @gary-wall in #1432
- skip storing a base that the push mounts: by @ehfd in #1463
- a full cache hit skips downloading a shared base: #1479
FF_KANIKO_REPRODUCIBLE_SKIP_BASE_REWRITE=false--reproduciblerewrites only the layers above the base: #1470
Usability
FF_KANIKO_WARMER_FAIL_ON_ERROR=falsewarmer fails when any base fails to warm: by @gary-wall in #1433
Bake
bake --printshows the resolved targets: #1392warmer bakewarms the bases of every target: by @gary-wall in #1399executor bakerejects more than one target: #1417bakebuilds a repeated target twice: #1419- bakefile errors suggest the misspelled key: #1421
- bake per-target
build_arg: #1420 - bake resolves
contextanddockerfilefrom the working directory: #1418
Packaging
slim-fipsimage: by @gary-wall in #1402- build the kaniko images with SLSA L3: #1431 #1477 #1481
Maintenance
- build(deps): bump golang.org/x/oauth2 from 0.37.0 to 0.38.0: #1389
- build(deps): bump golang.org/x/sys from 0.49.0 to 0.50.0: #1390
- build(deps): bump golang.org/x/sync from 0.24.0 to 0.25.0: #1391
- build(deps): bump github.com/klauspost/compress from 1.20.3 to 1.20.5: #1388 #1468
- build(deps): bump golang from 1.27.3 to 1.27.4: #1397 #1403 #1434 #1447
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.16 to 1.33.21: #1398 #1442 #1461 #1468
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.5.5 to 0.5.11: #1398 #1442 #1461 #1468
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.114.9 to 1.116.0: #1398 #1442 #1461
- build(deps): bump github.com/docker/docker-credential-helpers from 0.9.12 to 0.9.13: #1398
- build(deps): bump cloud.google.com/go/auth from 0.24.3 to 0.24.4: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream from 1.7.26 to 1.7.27: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.20.16 to 1.21.3: #1398 #1442 #1461 #1468
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds from 1.20.8 to 1.20.9: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/configsources from 1.5.11 to 1.5.12: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 from 2.8.11 to 2.8.12: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/v4a from 1.5.11 to 1.5.12: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecr from 1.67.5 to 1.69.0: #1398 #1441 #1454
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecrpublic from 1.47.11 to 1.47.12: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding from 1.13.24 to 1.13.25: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/checksum from 1.11.12 to 1.11.13: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/presigned-url from 1.14.11 to 1.14.12: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/s3shared from 1.20.11 to 1.20.12: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/signin from 1.12.4 to 1.14.0: #1398 #1461
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/sso from 1.39.4 to 1.39.5: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ssooidc from 1.44.4 to 1.44.5: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/sts from 1.51.9 to 1.53.0: #1398 #1468
- build(deps): bump github.com/aws/smithy-go from 1.28.8 to 1.28.9: #1398
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.47.8 to 1.48.0: #1398
- build(deps): bump golang.org/x/text from 0.43.0 to 0.44.0: #1395
- build(deps): bump google.golang.org/api from 0.311.0 to 0.316.0: #1406 #1415 #1426 #1455
- build(deps): bump google.golang.org/genproto/googleapis/rpc from 0.0.0-20261026165753-2ffab32bce7e to 0.0.0-20261104224025-d1e00e9f33ab: #1406
- build(deps): bump github.com/moby/buildkit from 0.34.2 to 0.35.1: #1404 #1468
- build(deps): bump golang.org/x/crypto from 0.58.0 to 0.59.0: #1405
- build(deps): bump docker engine from 29.9.2 to 29.9.3: #1411
- build(deps): bump AdityaGarg8/remove-...
v1.29.1
Community Update
@mvdberge made their first contribution in #1316. They traced unreadable node_modules entries in a real image to spurious whiteouts that every release since v1.27.0 writes into later stages, and mapped the cached-layer variant fixed in #1383.
@tran4774 made their first contribution in #1251. They put substantial work into making kaniko faster, from build metrics to cached file hashes. Parallel snapshot hashing behind FF_KANIKO_PARALLEL_HASH is the first piece to land.
A special shoutout to @gary-wall, who landed 13 changes this release. Most notably cross-stage bind mounts and --cache-from/--cache-to separation.
What's Changed
Security
- golang.org/x/net v0.61.0: CVE-2026-78661 CVE-2026-97045
- 🔗
FF_KANIKO_CONFINE_HARDLINK_TARGET=trueblock hardlinks into the kaniko directory: by @stevebeattie in #1367 - skip mount relocation into ignored paths: #1370
Bugfixes
- a later stage whites out the files of an earlier stage: by @mvdberge in #1316
- cross-stage
COPYignores anENVshadowing anARG: by @Dodothereal in #1323 RUN --mountdeletes output next to the mount: #1336ADDto a relative destination withoutWORKDIRleaves the layer empty: #1339bake --dryrundeletes the filesystem between targets: #1364--reproduciblekeeps build-time mtimes of a local base stage: #1368COPY --fromignores predefined and inheritedARGs: #1376
Standardization
FF_KANIKO_LOCAL_UNPACK_REQUIRES_TAR=falseADDcopies a non-tar archive as is: by @gary-wall in #1330FF_KANIKO_ADD_CHOWN_TAR=falsehonourADD --chownon extracted archives: by @gary-wall in #1333FF_KANIKO_RUN_MOUNT_TMPFS=falsesupportRUN --mount=type=tmpfs: by @gary-wall in #1315FF_KANIKO_ADD_FOLLOW_SYMLINK=falseADD <url>follows a destination symlink: by @gary-wall in #1338 #1340FF_KANIKO_RUN_MOUNT_BIND_RELATIVE=falseresolve relative bind mounts againstWORKDIR: by @gary-wall in #1337FF_KANIKO_RUN_CROSS_STAGE_BIND_MOUNT=falsesupportRUN --mount=type=bind,from: by @gary-wall in #1280- reject variables in
COPY --from: #1378
Caching
FF_KANIKO_CACHE_COPY_FROM=falsewarmer cachesCOPY --from=<image>: by @gary-wall in #1334FF_KANIKO_SNAPSHOT_TRACK_CACHED_LAYERS=falsestop storing cached files twice: #1383
Performance
- reuse pooled copy buffers: #1313 #1314
FF_KANIKO_PARALLEL_HASH=falsehash snapshot files in parallel: by @tran4774 in #1251
Usability
--cache-fromand--cache-to: by @gary-wall in #1346- bake per-target
cache_fromandcache_to: #1350 --require-digestrejects unpinned bases: by @gary-wall in #1362- bake per-target
contextanddockerfile: by @gary-wall in #1345 --require-add-checksumrejects remoteADDwithout--checksum: by @gary-wall in #1375
Telemetry
Packaging
- list every source file in the image SBOMs: #1304
Maintenance
- build(deps): bump golang: #1307 #1317 #1325 #1355 #1380
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.10 to 1.33.16: #1308 #1310 #1335 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.20.10 to 1.20.16: #1308 #1310 #1335 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/signin from 1.10.5 to 1.12.4: #1308 #1310 #1335 #1361 #1382
- build(deps): bump google.golang.org/api from 0.308.0 to 0.311.0: #1309 #1328 #1358
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecr from 1.66.6 to 1.67.5: #1311 #1319 #1335 #1361 #1382
- build(deps): bump google.golang.org/grpc from 1.84.0 to 1.85.0: #1312
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.47.4 to 1.47.8: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream from 1.7.24 to 1.7.26: #1310 #1361
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds from 1.20.4 to 1.20.8: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.4.19 to 0.5.5: #1310 #1335 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/configsources from 1.5.7 to 1.5.11: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 from 2.8.7 to 2.8.11: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/v4a from 1.5.7 to 1.5.11: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding from 1.13.22 to 1.13.24: #1310 #1361
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/checksum from 1.11.8 to 1.11.12: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/presigned-url from 1.14.7 to 1.14.11: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/s3shared from 1.20.7 to 1.20.11: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.114.5 to 1.114.9: #1310 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/sso from 1.38.5 to 1.39.4: #1310 #1335 #1361 #1382
- build(deps): bump github.com/aws/aws-sdk...
v1.29.0
Update Notice
⚠️ Theslimimage no longer authenticates to GCR/GAR, ECR and ACR, and drops thegs://,s3://and azure build contexts, git build contexts and OpenTelemetry export. If you use any of them, switch tolatest, which is now about the same size asslimused to be.
In this Release we activated these feature-flags:
- FF_KANIKO_ADD_CHECKSUM
- FF_KANIKO_ADD_UNPACK
- FF_KANIKO_CACHE_HASH_BLAKE3
- FF_KANIKO_CACHE_LOOKAHEAD
- FF_KANIKO_COPY_SKIP_SPECIAL_FILES
- FF_KANIKO_CROSS_REPO_MOUNT
- FF_KANIKO_DEPRECATE_LAYERLESS_CACHE_ENTRIES
- FF_KANIKO_EXPAND_HEREDOC
- FF_KANIKO_HASH_DIR_FRAMING
- FF_KANIKO_IMAGE_STAGES
- FF_KANIKO_INFER_CROSS_STAGE_CACHE_KEY
- FF_KANIKO_LAYER_HINTS
- FF_KANIKO_NATIVE_COPY
- FF_KANIKO_PATH_SCOPED_REGISTRY_AUTH
- FF_KANIKO_PEEK_ARCHIVE_HEADER
- FF_KANIKO_PLATFORM_CACHE_KEY
- FF_KANIKO_POOL_REGISTRY_CONNECTIONS
- FF_KANIKO_PRECOMPILE_DOCKERIGNORE
- FF_KANIKO_PRESERVE_MOUNTED_SYMLINKS
- FF_KANIKO_REPRODUCIBLE_PRESERVE_BASE_LAYERS
- FF_KANIKO_REPRODUCIBLE_PRESERVE_FORMAT
- FF_KANIKO_RESOLVE_CACHE_KEY
- FF_KANIKO_ROLLING_CACHE_KEY
- FF_KANIKO_RUN_HONOR_GROUP
- FF_KANIKO_SHARED_BASE_CACHE
- FF_KANIKO_SKIP_CACHED_STAGES
- FF_KANIKO_SKIP_RELABEL_RECOMPRESS
- FF_KANIKO_SKIP_WRITE_WHITEOUTS
- FF_KANIKO_UNPACK_ZSTD
- FF_KANIKO_UNTAR_SKIP_ROOT
⚠️ Several of these flags change how cache keys are computed. Existing cache entries are invalidated, so the first build after upgrading is a full rebuild that repopulates the cache.
⚠️ --reproduciblenow leaves base layers untouched and keeps the requested image format, so the digest of a reproducible build changes once. A reproducible build from an OCI base is now pushed as OCI instead of docker, pass--image-format=dockerto keep the old format.
FF_KANIKO_ADD_CHECKSUM verifies ADD --checksum. A wrong checksum used to pass silently and now fails the build, so update it to the digest of the download.
FF_KANIKO_EXPAND_HEREDOC expands variables in unquoted COPY and ADD heredoc bodies. If a body needs a literal $, quote the delimiter:
COPY <<'EOF' /etc/motd
costs $5
EOFFF_KANIKO_PATH_SCOPED_REGISTRY_AUTH matches an auths entry against the repository namespace, so one entry for registry.example.com/org-a covers every repository below it and you can merge your per-repository entries. It is no longer sent to sibling namespaces like registry.example.com/org-b, which now need their own entry.
FF_KANIKO_SHARED_BASE_CACHE keeps downloaded bases in /kaniko/bases after the build, --cleanup does not remove them. If you reuse an executor for many builds, clean that directory yourself.
You can roll-back any of those changes by overriding them in the environment ie.
job:
variables:
FF_KANIKO_PLATFORM_CACHE_KEY: "0"
FF_KANIKO_CROSS_REPO_MOUNT: "0"Please also notify us by filing a new issue.
We further removed these feature-flags:
FF_KANIKO_RUN_MOUNT_BINDFF_KANIKO_NO_PROPAGATE_ANNOTATIONSFF_KANIKO_VOLUME_SKIP_MKDIRFF_KANIKO_PRESERVE_HARDLINKSFF_KANIKO_BUILDKIT_ARG_ENV_PRECEDENCEFF_KANIKO_PRESERVE_MOUNTED_PATHSFF_KANIKO_DEPRECATE_INTER_STAGE_RESTOREFF_KANIKO_SECUREJOIN_EXTRACTIONFF_KANIKO_WARMER_CACHE_LOCKFF_KANIKO_CLEAN_KANIKO_DIRFF_KANIKO_RELATIVE_LINK_TARGETSFF_KANIKO_OCI_WARMERFF_KANIKO_IGNORE_CACHED_MANIFEST
Their behavior is now unconditional, they have no effect and can be removed.
⚠️ The warmer only reads and writes the OCI layout now. Tarballs left in a warmer cache from beforev1.28.0are no longer used, re-run the warmer to populate the cache.
Community Update
@gary-wall made their first contribution in #1205. The warmer now also caches the image index, so builds from a base pinned by index digest work air-gapped.
@gary-wall also joined us as a maintainer, welcome aboard!
Also many thanks to @philou-078 and @hanbyeol for reporting issues fixed in this release.
To get an overview over our feature flags you can check the schedule on https://osscontainertools.org/kaniko/flags/
What's Changed
Security
- go stdlib v1.26.9: CVE-2026-111943 (eMudhra)
Bugfixes
- warmer pulls
scratchfrom the registry: by @gary-wall in #1205 FF_KANIKO_ISOLATE_CACHE_PUSH=falseevery cache push also writes the build outputs: #1223- warmer leaves nested
ARGdefaults unexpanded: #1209 FF_KANIKO_WARMER_BUILD_ARGS=falsewarmer lets anARGdefault win over--build-arg: #1207- warmer pulls stage references that differ in case: #1208
FF_KANIKO_WARMER_PREDEFINED_ARGS=falsewarmer leavesTARGETARCHempty inFROM: #1210
Standardization
FF_KANIKO_RUN_HEREDOC_SCRIPT=falserun a loneRUNheredoc body as the script: #1216FF_KANIKO_COPY_KEEP_DEST_OWNER=falseCOPY --chownkeeps the owner of an existing destination directory: #1257FF_KANIKO_COPY_SUBDIR_MODE=falsedirectoryCOPYapplies the source mode to existing subdirectories: #1259
Caching
FF_KANIKO_CACHE_IMAGE_INDEX=falsewarmer caches the image index of index-pinned bases: by @gary-wall in #1225FF_KANIKO_FORMAT_INDEPENDENT_CACHE_KEY=falsekeep--image-formatout of cache keys: #1276
Performance
- relabel cached layers without downloading them: #1275
Usability
- warmer
--dryrunprints which bases it would fetch: #1206 - graduate feature flags for v1.29.0 release: #870 #1235
--predefined-annotationssets the OCI source, revision, version and base image annotations: #1227--provenanceattaches a SLSA provenance attestation: #1230FF_KANIKO_NATIVE_INIT=falsekaniko acts as its own init process: #1222
Telemetry
- trace the push, planning and the
--reproduciblerewrite: #1217
Packaging
- make the kaniko images reproducible: #1231
- ship licenses in the images: #1247
- ship credential helpers as hardlinks to the executor: #1224
- add busybox and tini sources to the SBOM: #1246
- reproducible go build of executor and warmer: by @gary-wall in #1269
slimimage drops the cloud SDKs, go-git and OpenTelemetry: #1279 #1265
Maintenance
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/ecr from 1.66.3 to 1.66.6: https...
v1.28.6
Community Update
@donbowman made their first contribution in #1136 and brought linux/arm/v7 to the published images, so kaniko now runs on 32-bit ARM devices.
Also many thanks to @7schroet and @peterlustig78 for reporting issues fixed in this release.
Follow along on https://osscontainertools.org, where we post news and write about how kaniko is built, most recently on why we use feature flags: https://osscontainertools.org/blog/featureflags/
What's Changed
Security
- go stdlib v1.26.8: CVE-2026-56857 CVE-2026-56866 CVE-2026-78659 CVE-2026-78660 CVE-2026-78663 CVE-2026-78667 CVE-2026-78669 CVE-2026-94439 CVE-2026-94440 CVE-2026-94448 CVE-2026-97030 CVE-2026-97031 CVE-2026-97032
- golang.org/x/crypto v0.55.0: CVE-2026-56855 CVE-2026-78662
- golang.org/x/net v0.58.0: CVE-2026-78659 CVE-2026-78660 CVE-2026-78663 CVE-2026-78669 CVE-2026-97032
FF_KANIKO_CONFINE_COPY_SOURCE=trueblockCOPYandADDfrom the kaniko directory: #1160FF_KANIKO_SCOPED_REGISTRY_CERTIFICATES=truescope--registry-certificateCAs to their registry: #1162
Bugfixes
- add 32-bit platform support: by @donbowman in #1136 #1137 #1140
- a bind-mount over a base image symlink fails with
Resource busy: #1114 #1179 #1188 ADDfrom a URL ignoresFF_KANIKO_COPY_AS_ROOT: #1146
Standardization
FF_KANIKO_UNPACK_ZSTD=falseextract zstd archives inADD: #1150FF_KANIKO_UNPACK_XZ=falseextract xz archives inADD: #1151FF_KANIKO_ADD_UNPACK=falsehonourADD --unpack: #1148FF_KANIKO_COPY_LINK=falsehonourCOPY --link: #1134 #1202 #1203
Performance
- mount relabeled cache layers instead of uploading them: #1125
FF_KANIKO_DEFER_CACHE_PUSH=falsepush cache layers in the background: #1163FF_KANIKO_PEEK_ARCHIVE_HEADER=falseADDdetect compression from the header alone: #1171FF_KANIKO_IMAGE_STAGES=falseskip unpacking the rootfs for fully cached stages: #1144
Usability
FF_KANIKO_LAYER_HINTS=falsekaniko now hints at common mistakes: #1121
Telemetry
- report the
.dockerignore: #1117 - report
kaniko.cache.eligible: #1147 KANIKO_TELEMETRY_OMIT_DOCKERFILE=truenow also redactsRUN,ENVandARG: #1119- report layer size and digest: #1120
Maintenance
- build(deps): bump alpine in /deploy from 3.24.1 to 3.24.2: #1115
- build(deps): bump debian in /deploy: #1116 #1164
- build(deps): bump google.golang.org/api from 0.298.0 to 0.301.0: #1124 #1156 #1194
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.4.7 to 0.4.16: #1123 #1132 #1142 #1153 #1166 #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.113.1 to 1.114.3: #1123 #1132 #1153 #1166 #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.47.0 to 1.47.3: #1132 #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.5 to 1.33.9: #1132 #1166 #1190
- build(deps): bump busybox in /deploy: #1131
- build(deps): bump github.com/docker/cli from 29.8.1 to 29.9.0: #1141 #1189
- build(deps): bump go.opentelemetry.io/otel from 1.46.0 to 1.47.0: #1155
- build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/storage/azblob from 1.8.1 to 1.8.2: #1153
- build(deps): bump github.com/go-git/go-billy/v5 from 5.9.1 to 5.9.2: #1153
- build(deps): bump github.com/moby/buildkit from 0.33.0 to 0.34.0: #1153 #1199
- build(deps): bump github.com/moby/moby/api from 1.56.0 to 1.56.1: #1153
- build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.46.0 to 1.47.0: #1157
- build(deps): bump github.com/go-git/go-git/v5 from 5.19.2 to 5.19.3: #1159
- build(deps): bump step-security/harden-runner from 2.21.1 to 2.22.1: #1161 #1170
- build(deps): bump golang.org/x/sync from 0.23.0 to 0.24.0: #1165
- build(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.1: #1168
- build(deps): bump golang.org/x/sys from 0.48.0 to 0.49.0: #1167
- build(deps): bump go from 1.26.8 to 1.26.9: #1180
- build(deps): bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.30.0 to 2.31.0: #1186
- build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.23.2 to 1.23.3: #1183
- build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/internal from 1.12.0 to 1.13.0: #1183
- build(deps): bump github.com/aws/smithy-go from 1.28.1 to 1.28.5: #1183 #1190
- build(deps): bump github.com/cloudflare/circl from 1.6.3 to 1.6.5: #1183
- build(deps): bump github.com/google/s2a-go from 0.1.10 to 0.1.11: #1183
- build(deps): bump github.com/googleapis/enterprise-certificate-proxy from 0.3.22 to 0.3.23: #1183
- build(deps): bump github.com/moby/sys/userns from 0.2.0 to 0.2.1: #1183
- build(deps): bump github.com/skeema/knownhosts from 1.3.1 to 1.3.3: #1183
- build(deps): bump github.com/zeebo/assert from 1.3.0 to 1.3.1: #1183
- build(deps): bump go.opentelemetry.io/proto/otlp from 1.11.0 to 1.11.1: #1183
- build(deps): bump github.com/AzureAD/microsoft-authentication-library-for-go from 1.8.0 to 1.10.1: #1185
- build(deps): bump github.com/kevinburke/ssh_config from 1.2.0 to 1.6.0: #1187
- build(deps): bump github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream from 1.7.20 to 1.7.22: #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.20.7 to 1.20.9: #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds from 1.20.1 to 1.20.3: #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/configsources from 1.5.4 to 1.5.6: #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 from 2.8.4 to 2.8.6: #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/internal/v4a from 1.5.4 to 1.5.6: #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding from 1.13.19 to 1.13.21: #1190
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/internal/checksum from 1.11.5 to 1.11.7: #1190
- build(deps): bump github.co...
v1.28.5
Community Update
Many thanks to @WoozyMasta, @pstoeckle, @7schroet, and @MikeMoore63 for reporting issues fixed in this release.
What's Changed
Bugfixes
KANIKO_DIRrelocation deletes the directory instead of moving it: #1099--compression-levelbelow 1 is ignored: #1100FF_KANIKO_PRESERVE_MOUNTED_SYMLINKS=falsea bind-mount over a base image symlink breaks everyRUN: #1080- a base image mixing OCI and docker media types panics the build: #1079
Standardization
FF_KANIKO_REPRODUCIBLE_PRESERVE_FORMAT=false--reproduciblekeeps the requested compression and format: #1047
Performance
FF_KANIKO_CACHE_HASH_BLAKE3=falsehash cache-key inputs with blake3 instead of md5: by @BobDu in #1042FF_KANIKO_POOL_REGISTRY_CONNECTIONS=falseshare one connection pool per registry: #972CopyDirrepeats stat and utimensat calls for every file: #1049
Usability
- experimental support for bakefile via
kaniko bake: #773
Telemetry
KANIKO_TELEMETRY_TOKEN_EXCHANGE_ENDPOINTexchanges a CI identity token for a collector token: #1071- read CI attributes from github and gitlab predefined variables: #1072
kaniko.build_idderives from the CI job instead of the Dockerfile: #1072
Maintenance
- build(deps): bump step-security/harden-runner from 2.21.0 to 2.21.1: #1063
- build(deps): bump google.golang.org/api from 0.294.0 to 0.298.0: #1062 #1077 #1097
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.33.1 to 1.33.5: #1068 #1081 #1090 #1101
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.4.1 to 0.4.7: #1068 #1081 #1090 #1092 #1101
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.109.1 to 1.113.1: #1068 #1081 #1090 #1092
- build(deps): bump github.com/docker/cli from 29.7.2+incompatible to 29.8.1+incompatible: #1075 #1102
- build(deps): bump docker/setup-qemu-action from 4.2.0 to 4.4.0: #1067 #1105
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.45.1 to 1.47.0: #1081 #1089
- build(deps): bump github.com/google/go-containerregistry from 0.22.0 to 0.22.1: #1081
- build(deps): bump github.com/moby/moby/api from 1.55.0 to 1.56.0: #1076
- build(deps): bump github.com/moby/buildkit from 0.32.2 to 0.33.0: #1070
- build(deps): bump golang.org/x/sys from 0.47.0 to 0.48.0: #1085
- build(deps): bump golang.org/x/sync from 0.22.0 to 0.23.0: #1083
- build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/storage/azblob from 1.8.0 to 1.8.1: #1092
- build(deps): bump go from 1.26.7 to 1.26.8: #1095
- build(deps): bump codecov/codecov-action from 7.0.0 to 7.1.1: #1096 #1105
- build(deps): bump docker/build-push-action from 7.3.0 to 7.4.0: #1105
- build(deps): bump docker/setup-buildx-action from 4.3.0 to 4.4.1: #1105
- build(deps): bump docker/setup-docker-action from 5.4.0 to 5.5.0: #1105
- build(deps): bump github.com/osscontainertools/docker-credential-acr from 0.9.0 to 0.9.1: #1106
Fork Related
- replace the EOL bullseye fixture for 2049 with a synthetic repro: #1078
- inline the media type classification: #1082
- bump diffoci to containerd v2: #1094
- narrow azblob imports to blob and sas: #1091
- read the GCS build context over the JSON API: #1093
- compare integration images in the registry: #1087
- pin the bake golden base image by digest: #1104
v1.28.4
Community Update
@WoozyMasta made their first contribution in #1014, and drove namespace aware registry auth across three PRs this cycle. A Quay robot account scoped to one organisation is now enough, where before you needed a credential per repository.
An extraordinary thank you to @0hlov3 for reviewing 9 PRs this cycle, and for the issues fixed along the way.
What's Changed
Security
- go stdlib v1.26.5: CVE-2026-33818 CVE-2026-39821 CVE-2026-46600 CVE-2026-56853 CVE-2026-56858 CVE-2026-56859 CVE-2026-56860 CVE-2026-56862
- golang.org/x/crypto v0.54.0: CVE-2026-56854
Bugfixes
- push ignores a credential configured for the exact destination repository: by @WoozyMasta in #1014 #1046
- an unauthorized cross-repository mount fails the push instead of uploading the blob: by @WoozyMasta in #1013
COPYof a tree that spans a mount point hardlinks unrelated files together: #979COPYof a directory containing a fifo hangs the build: #948
Standardization
FF_KANIKO_COPY_SKIP_SPECIAL_FILES=falseskip sockets and device files duringCOPY: #948FF_KANIKO_ADD_CHECKSUM=falseverify the digestADD --checksumstates: #1027
Caching
FF_KANIKO_DEPRECATE_LAYERLESS_CACHE_ENTRIES=falsereject cache entries written without a layer: #1032FF_KANIKO_PLATFORM_CACHE_KEY=falseadd the target platform to the cache key: #1029
Performance
- the redo hasher formats a debug line for every file even when debug logging is off: by @BobDu in #1044
- a base read back from the shared base store uploads every layer instead of mounting it: #993
Usability
FF_KANIKO_PATH_SCOPED_REGISTRY_AUTH=falsematch anauthsentry by repository namespace: by @WoozyMasta in #1002
Telemetry
- record the rendered build plan on the trace: #1022
- associate every span with the stage and command it belongs to: #1019
KANIKO_TELEMETRY_BUILD_IDoverrides the build id kaniko derives from the Dockerfile: #1033
Maintenance
- build(deps): bump step-security/harden-runner from 2.20.1 to 2.21.0: #1012
- build(deps): bump github.com/sirupsen/logrus from 1.9.4 to 1.10.2: #1011 #1035 #1050
- build(deps): bump google.golang.org/api from 0.292.0 to 0.294.0: #1010 #1054
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.43.5 to 1.45.1: #1015 #1035 #1057
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.36 to 1.33.1: #1015 #1035 #1057
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.3.12 to 0.4.1: #1015 #1035 #1057
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.107.1 to 1.109.1: #1015 #1035 #1057
- build(deps): bump golang in /deploy: #1009 #1039
- build(deps): bump github.com/containerd/platforms from 1.0.0-rc.4 to 1.0.0-rc.5: #1017
- build(deps): bump docker/setup-buildx-action from 4.2.0 to 4.3.0: #1020
- build(deps): bump cloud.google.com/go/storage from 1.64.0 to 1.66.0: #1036 #1052
- build(deps): bump github.com/google/go-containerregistry from 0.21.9 to 0.22.0: #1040
- build(deps): bump debian in /deploy: #1045
- build(deps): bump github.com/docker/docker-credential-helpers from 0.9.8 to 0.9.9: #1050
- build(deps): bump go.opentelemetry.io/otel from 1.45.0 to 1.46.0: #1056
- build(deps): bump go.opentelemetry.io/otel/sdk from 1.45.0 to 1.46.0: #1056
- build(deps): bump go.opentelemetry.io/otel/trace from 1.45.0 to 1.46.0: #1056
- build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.45.0 to 1.46.0: #1056
- build(deps): bump github.com/osscontainertools/docker-credential-acr from 0.8.0 to 0.9.0: #1059
Fork Related
v1.28.3
What's Changed
Security
- prevent Azure token disclosure to lookalike
azurecr.iohostnames: #1004
Bugfixes
--single-snapshoton a stage ending inMAINTAINERpushes an image without its layers: #1000--dryrunpanics when a destination is set: #999
Performance
FF_KANIKO_CROSS_REPO_MOUNT=falsemount layers the destination registry already holds: #990FF_KANIKO_SHARED_BASE_CACHE=falsereadCOPY --from=<image>through the shared base store: #949
Telemetry
KANIKO_TELEMETRY_OMIT_DOCKERFILE=falsekeep the Dockerfile source out of the trace: by @babs in #913- report registry socket and request counts on the build span: #971
- nest trace spans under the command they belong to: #931
Maintenance
- build(deps): bump github.com/moby/go-archive from 0.2.1 to 0.3.3: #976 #977 #995
- build(deps): bump github.com/docker/cli from 29.6.2+incompatible to 29.7.2+incompatible: #975 #977 #995
- build(deps): bump busybox in /deploy: #974
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.43.2 to 1.43.5: #977 #995 #1003
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.33 to 1.32.36: #977 #995 #1003
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.3.7 to 0.3.12: #977 #984 #995 #1003
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.106.2 to 1.107.1: #977 #984 #995 #1003
- build(deps): bump github.com/google/go-containerregistry from 0.21.7 to 0.21.9: #977 #995
- build(deps): bump debian in /deploy: #982
- build(deps): bump github.com/moby/buildkit from 0.32.0 to 0.32.2: #981 #984
- build(deps): bump step-security/harden-runner from 2.20.0 to 2.20.1: #983
- build(deps): bump github.com/GoogleCloudPlatform/docker-credential-gcr/v2 from 2.1.32 to 2.2.1: #986 #995
- build(deps): bump go.opentelemetry.io/otel from 1.44.0 to 1.45.0: #988
- build(deps): bump go.opentelemetry.io/otel/sdk from 1.44.0 to 1.45.0: #985
- build(deps): bump golang in /deploy: #994
- build(deps): bump google.golang.org/api from 0.291.0 to 0.292.0: #997
- build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp from 1.44.0 to 1.45.0: #996 #1001
Fork Related
v1.28.2
Community Update
📢 Join our community over on #kaniko:matrix.org
It's an open space for Q&A, announcements and technical discussions.
See you there 👋
Many thanks to @ArneTR for reporting an issue fixed in this release.
What's Changed
Security
- google.golang.org/grpc v1.82.0: GHSA-hrxh-6v49-42gf
Bugfixes
FF_KANIKO_RELATIVE_LINK_TARGETS=trueabsolute hardlink targets makedocker loadfail withinvalid hardlink target: #947
Standardization
FF_KANIKO_CHOWN_ON_IMPLICIT_DIRS=falsechown the parent directoriesWORKDIRcreates implicitly to the active user: #867
Performance
FF_KANIKO_SKIP_CACHED_STAGES=falsedrop stages whose consumers all hit the cache: #871 #964FF_KANIKO_SHARED_BASE_CACHE=falsedownload a shared base image once instead of once per stage: #937
Telemetry
- opt-in OpenTelemetry tracing via
KANIKO_TELEMETRY_ENDPOINT, one trace per build: by @babs in #902 #951
Maintenance
- build(deps): bump actions/checkout from 7.0.0 to 7.0.1: #934
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.3.3 to 0.3.7: #933 #939 #953 #955
- build(deps): bump golang in /deploy: #932
- build(deps): bump cloud.google.com/go/storage from 1.63.1 to 1.64.0: #935
- build(deps): bump docker/login-action from 4.4.0 to 4.6.0: #941 #944 #950 #952
- build(deps): bump docker/setup-docker-action from 5.3.0 to 5.4.0: #941
- build(deps): bump google.golang.org/grpc from 1.82.0 to 1.82.1: #942
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.42.1 to 1.43.2: #939 #953 #955
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.30 to 1.32.33: #939 #953 #955
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.105.2 to 1.106.2: #939 #953 #955
- build(deps): bump google.golang.org/api from 0.289.0 to 0.291.0: #946 #954
- build(deps): bump github.com/go-git/go-billy/v5 from 5.9.0 to 5.9.1: #945
- build(deps): bump github.com/moby/go-archive from 0.2.0 to 0.2.1: #945
- build(deps): bump github.com/go-git/go-git/v5 from 5.19.1 to 5.19.2: #953
- build(deps): bump github.com/moby/buildkit from 0.31.2 to 0.32.0: #956
- build(deps): bump busybox in /deploy: #965
Fork Related
v1.28.1
Community Update
@JSap0914 made their first contribution in #912
@Dodothereal made their first contribution in #926
Also many thanks to @bootc, @pstoeckle, @7schroet, and @henryfoster for reporting issues fixed in this release.
We thank our sponsor Siemens for sponsoring kaniko with a generous grant, and especially the team behind Open Source @ Siemens for consistently championing open source.
We are also grateful to @bootc for joining as an individual sponsor.
What's Changed
Security
- go stdlib v1.26.4: CVE-2026-39822 CVE-2026-42505
- golang.org/x/text v0.38.0: CVE-2026-56852
- generate integration tar fixtures on the fly instead of storing opaque binaries: #844
Bugfixes
- inconsistent feature flag defaults crash a build, fixed by consolidating flags into a central registry: #853 #854 #918
- cross-stage
COPY --fromtrips the cache-key assertion when the source stage has uncached run layers under--cache-run-layers=false: #899 --reproduciblewith preserved base layers produces a manifest that mixes Docker and OCI media types, which strict readers reject: #858RUN --mount=type=bindunder--use-new-runfails the cached rebuild withlstat: no such file or directory: #900- repeatedly copying a relative symlink to the same destination corrupts the target and later fails with
too many links: by @Dodothereal in #926
Standardization
FF_KANIKO_RUN_HONOR_GROUP=falsehonor an explicit group fromUSER user:groupinRUN: #840FF_KANIKO_EXPAND_HEREDOC=falseexpand build args and env in unquotedCOPYandADDheredoc bodies: #821FF_KANIKO_COPY_CHMOD_ON_IMPLICIT_DIRS=falseapplyCOPY --chmodto implicitly created parent directories too: #866
Caching
FF_KANIKO_ROLLING_CACHE_KEY=falsefold composite cache-key parts into a rolling hash so distinct key sequences can no longer collide: #875COPY,ADD, andRUNheredoc bodies were not keyed, so changing only a heredoc body reused a stale cached layer: #823 #825FF_KANIKO_HASH_DIR_FRAMING=falselength-prefix directory paths and file hashes in the cache key so distinct directory trees can no longer collide: by @JSap0914 in #912
Performance
FF_KANIKO_PRECOMPILE_DOCKERIGNORE=falsecompile.dockerignorepatterns once per build instead of once per file: #887
Usability
--image-format=docker|ocisets the output image format explicitly instead of letting it silently follow the base image: #850
Maintenance
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.25 to 1.32.30: #857 #862 #886 #895 #907
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.2.11 to 0.3.3: #857 #862 #886 #895 #907 #924
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.104.0 to 1.105.2: #857 #862 #886 #907 #924
- build(deps): bump golang in /deploy: #856 #893 #905 #910 #914
- build(deps): bump docker/setup-qemu-action from 4.1.0 to 4.2.0: #860
- build(deps): bump docker/build-push-action from 7.2.0 to 7.3.0: #860
- build(deps): bump docker/setup-docker-action from 5.2.0 to 5.3.0: #860
- build(deps): bump google.golang.org/api from 0.286.0 to 0.289.0: #859 #889 #898 #925
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.42.0 to 1.42.1: #862
- build(deps): bump docker/setup-buildx-action from 4.1.0 to 4.2.0: #861
- build(deps): bump docker/login-action from 4.2.0 to 4.4.0: #861 #865
- build(deps): bump step-security/harden-runner from 2.19.4 to 2.20.0: #885
- build(deps): bump golang.org/x/sys from 0.46.0 to 0.47.0: #891
- build(deps): bump golang.org/x/sync from 0.21.0 to 0.22.0: #890
- build(deps): bump cloud.google.com/go/storage from 1.63.0 to 1.63.1: #903
- build(deps): bump debian in /deploy: #906
- build(deps): bump github.com/moby/buildkit from 0.31.1 to 0.31.2: #915
- build(deps): bump actions/setup-go from 6.5.0 to 7.0.0: #916
- build(deps): bump github.com/docker/cli from 29.6.1 to 29.6.2: #924
Fork Related
- doc changes: #855 #877 #909 #908 #929
- use KanikoEnv in all integration executor invocations: #808
- stop ignoring layer-length mismatch in integration tests: #847
- unpin
FF_KANIKO_NO_PROPAGATE_ANNOTATIONSin the golden suite and rotate cache keys: #874 - limit integration test parallelism to 8: #919
Refactorings
v1.28.0
Update Notice
Kaniko now officially features an Alpine variant, making it effortless customize your builder:
FROM ghcr.io/osscontainertools/kaniko:v1.28.0-alpine
RUN apk add --no-cache curl jqIn this Release we activated these feature-flags:
- FF_KANIKO_RUN_MOUNT_BIND
- FF_KANIKO_VOLUME_SKIP_MKDIR
- FF_KANIKO_BUILDKIT_ARG_ENV_PRECEDENCE
- FF_KANIKO_PRESERVE_HARDLINKS
- FF_KANIKO_DEPRECATE_INTER_STAGE_RESTORE
- FF_KANIKO_NO_PROPAGATE_ANNOTATIONS
- FF_KANIKO_PRESERVE_MOUNTED_PATHS
- FF_KANIKO_OCI_WARMER
- FF_KANIKO_WARMER_CACHE_LOCK
⚠️ Some of these flags change how cache keys are computed. In particularFF_KANIKO_NO_PROPAGATE_ANNOTATIONSshifts every base-image-derived key, andFF_KANIKO_BUILDKIT_ARG_ENV_PRECEDENCEchanges keys for builds withARG/ENV. Existing cache entries are invalidated, so the first build after upgrading is a full rebuild that repopulates the cache.
⚠️ FF_KANIKO_OCI_WARMERswitches the warmer to an OCI layout, so an existing warmer cache can no longer be used and can be deleted.
FF_KANIKO_RUN_MOUNT_BIND lets you mount a file from the build context into a RUN step instead of COPY-ing it in, so it never lands in a layer:
RUN --mount=type=bind,source=requirements.txt,target=requirements.txt \
uv pip install -r requirements.txtℹ️ Cross-stage bind mounts
from=<stage>are not yet supported.
FF_KANIKO_VOLUME_SKIP_MKDIR stops kaniko from creating the directory declared by VOLUME, matching docker. Creating it gave the directory a fresh mtime on every run, which broke cache hits in downstream stages, so until now a VOLUME was silently invalidating your cache. If a later step relies on the directory existing, create it yourself with RUN, or WORKDIR if your base image has no shell:
VOLUME /data
WORKDIR /dataFF_KANIKO_BUILDKIT_ARG_ENV_PRECEDENCE resolves an ARG and ENV of the same name by declaration order, matching BuildKit. An ARG declared after an ENV (including one inherited from a base image) now wins, where kaniko previously let the ENV win unconditionally:
FROM alpine AS base
ENV HELLO=upstream
FROM base AS child
ARG HELLO
RUN echo $HELLO # now prints the --build-arg value, not "upstream"If you relied on the old behaviour, move the ENV after the ARG so it keeps overriding.
FF_KANIKO_PRESERVE_HARDLINKS keeps hardlinks intact when you COPY --from=<image> a remote image instead of expanding each into an independent file, which can significantly shrink images that rely on hardlinks (e.g. git installs where many binaries share one inode). No migration needed, the output is smaller for the same input.
ℹ️ Hardlinks from other build stages are not yet preserved, only from remote images.
FF_KANIKO_DEPRECATE_INTER_STAGE_RESTORE disables the inter-stage restore that --preserve-context performed between stages. Its original purpose, smuggling secrets across stages, is now served by RUN --mount=type=secret:
RUN --mount=type=secret,id=netrc,target=/root/.netrc \
uv pip install -r requirements.txtFF_KANIKO_NO_PROPAGATE_ANNOTATIONS stops copying the base image's OCI manifest annotations onto your built image, matching docker. Building FROM ubuntu:24.04 previously inherited ubuntu's annotations, so your image falsely advertised itself as ubuntu:
"org.opencontainers.image.url": "https://hub.docker.com/_/ubuntu",
"org.opencontainers.image.source": "https://git.launchpad.net/cloud-images/+oci/ubuntu-base",
"org.opencontainers.image.version": "24.04"FF_KANIKO_PRESERVE_MOUNTED_PATHS lets you run kaniko on a pod that requests an NVIDIA GPU. The GPU operator bind-mounts driver artifacts read-only into the build container, and kaniko used to fail with device or resource busy when a base layer shipped a directory along one of those mount paths. It now leaves the mount in place.
FF_KANIKO_OCI_WARMER stores the warmer cache as an OCI layout, so a build from warmer cache now produces the same image as building straight from the registry. The old tarball format forced every image to the docker mediatype. The flag is passed to both the warmer and the executor. FF_KANIKO_WARMER_CACHE_LOCK lets you run several warmers against one shared cache volume without them racing or re-downloading the same image.
You can roll-back those changes by overriding them in the environment ie.
job:
variables:
FF_KANIKO_RUN_MOUNT_BIND: "0"
FF_KANIKO_NO_PROPAGATE_ANNOTATIONS: "0"
FF_KANIKO_VOLUME_SKIP_MKDIR: "0"
FF_KANIKO_PRESERVE_HARDLINKS: "0"
FF_KANIKO_BUILDKIT_ARG_ENV_PRECEDENCE: "0"
FF_KANIKO_PRESERVE_MOUNTED_PATHS: "0"
FF_KANIKO_DEPRECATE_INTER_STAGE_RESTORE: "0"
FF_KANIKO_OCI_WARMER: "0"
FF_KANIKO_WARMER_CACHE_LOCK: "0"Please also notify us by filing a new issue.
We further removed these feature-flags:
FF_KANIKO_SQUASH_STAGESFF_KANIKO_OCI_STAGESFF_KANIKO_RUN_MOUNT_SECRET
Their behavior is now unconditional, they have no effect and can be removed.
Community Update
Many thanks to @FrancisQuaisr, @bootc, and @E314c for reporting issues fixed in this release.
What's Changed
Security
- 🔗
FF_KANIKO_SECUREJOIN_EXTRACTION=truesymlink-based path traversal during tar extraction prevented with SecureJoin: by @8none1 in #828
Bugfixes
- cache lookahead trips the cache-key assertion when a stage is
FROMa base that setsENV: #783 - cache lookahead trips the cache-hit assertion when the cache changes between the precompute and build passes: #788
- cache lookahead trips the cache-key assertion when a stage includes a cross-stage
COPY --fromthat cannot be precomputed: #790 VOLUMEwith--cachetrips thewithout-fsassertion: #795
Standardization
FF_KANIKO_SKIP_WRITE_WHITEOUTS=falsecross-stageCOPY --fromon a cache hit copies whiteout markers as real files and silently deletes targets in later builds: #796FF_KANIKO_UNTAR_SKIP_ROOT=falseADDwith a tar archive overwrites the destination directory mode and ownership from the archive root entry: #842COPYandADD--chmodnow accepts symbolic notation (e.g.go=u,u=rwX,go=rX) in addition to octal: #800
Caching
FF_KANIKO_INFER_CROSS_STAGE_CACHE_KEY=falsecross-stage COPY cache key is now consumed during build, completing the inference chain: #767FF_KANIKO_RESOLVE_CACHE_KEY=falseCOPY,ADD, andWORKDIRlayer cache keys now reflect build args and env referenced in the instruction so a variable change invalidates the right entries: #792 #801 #837
Performance
FF_KANIKO_SKIP_RELABEL_RECOMPRESS=falseskip re-gzip when relabeling a cached layer to a different media type: #778
Maintenance
- build(deps): bump golang.org/x/sync from 0.20.0 to 0.21.0: #771
- build(deps): bump github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager from 0.2.7 to 0.2.11: #769 #776 #786 #803
- build(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0: #768
- build(deps): bump golang.org/x/sys from 0.45.0 to 0.46.0: #770
- build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.32.23 to 1.32.25: #776 #786
- build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.103.2 to 1.104.0: #776 #803
- build(deps): bump github.com/docker/docker-credential-helpers from 0.9.7 to 0.9.8: #776
- build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.41.12 to 1.42.0: #776 #786 #803
- build(deps): bump golang in /deploy: #779 #785 #797 #818
- build...