Skip to content

Commit e0c203d

Browse files
authored
Merge branch 'main' into harden-blob-test
2 parents c74abd6 + 32967c3 commit e0c203d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3344
-425
lines changed

.github/dependabot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ updates:
55
directory: "/"
66
labels: ["dependencies"]
77
schedule:
8-
interval: "daily"
8+
interval: "monthly"
99
groups:
1010
go-deps:
1111
patterns:
@@ -37,4 +37,4 @@ updates:
3737
patterns:
3838
- "*"
3939
schedule:
40-
interval: "daily"
40+
interval: "monthly"

.github/labels.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@
3434
- name: backport:release/v1.5.x
3535
description: To be backported to release/v1.5.x
3636
color: '#ffd700'
37+
- name: backport:release/v1.6.x
38+
description: To be backported to release/v1.6.x
39+
color: '#ffd700'

.github/workflows/cifuzz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
- name: Setup Go
22-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
22+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2323
with:
2424
go-version: 1.24.x
2525
cache-dependency-path: |

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- name: Setup Go
25-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
25+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2626
with:
2727
go-version: 1.24.x
2828
cache-dependency-path: |

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
buildkitd-flags: "--debug"
2626
- name: Build multi-arch container image
27-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
27+
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
2828
with:
2929
push: false
3030
builder: ${{ steps.buildx.outputs.name }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
type=raw,value=${{ steps.prep.outputs.VERSION }}
6969
- name: Publish images
7070
id: build-push
71-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
71+
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6.17.0
7272
with:
7373
sbom: true
7474
provenance: true
@@ -92,7 +92,7 @@ jobs:
9292
mkdir -p config/release
9393
kustomize build ./config/crd > ./config/release/${{ env.CONTROLLER }}.crds.yaml
9494
kustomize build ./config/manager > ./config/release/${{ env.CONTROLLER }}.deployment.yaml
95-
- uses: anchore/sbom-action/download-syft@9f7302141466aa6482940f15371237e9d9f4c34a # v0.19.0
95+
- uses: anchore/sbom-action/download-syft@e11c554f704a0b820cbf8c51673f6945e0731532 # v0.20.0
9696
- name: Create release and SBOM
9797
id: run-goreleaser
9898
if: startsWith(github.ref, 'refs/tags/v')

.github/workflows/scan.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
- name: Setup Go
36-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
36+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3737
with:
3838
go-version: 1.24.x
3939
cache-dependency-path: |
4040
**/go.sum
4141
**/go.mod
4242
- name: Initialize CodeQL
43-
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
43+
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
4444
with:
4545
languages: go
4646
# xref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
4747
# xref: https://codeql.github.com/codeql-query-help/go/
4848
queries: security-and-quality
4949
- name: Autobuild
50-
uses: github/codeql-action/autobuild@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
50+
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
52+
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- name: Setup Go
25-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
25+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2626
with:
2727
go-version: 1.24.x
2828
cache-dependency-path: |
@@ -43,7 +43,7 @@ jobs:
4343
- name: Checkout
4444
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4545
- name: Setup Go
46-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
46+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4747
with:
4848
go-version: 1.24.x
4949
cache-dependency-path: |

.github/workflows/verify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Setup Go
24-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
24+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2525
with:
2626
go-version: 1.24.x
2727
cache-dependency-path: |

CHANGELOG.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,113 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## 1.6.2
6+
7+
**Release date:** 2025-06-27
8+
9+
This patch release comes with a fix for `rsa-sha2-512` and `rsa-sha2-256` algorithms
10+
not being prioritized for `ssh-rsa` host keys.
11+
12+
Fixes:
13+
- Fix: Prioritize sha2-512 and sha2-256 for ssh-rsa host keys
14+
[#1839](https://github.com/fluxcd/source-controller/pull/1839)
15+
16+
## 1.6.1
17+
18+
**Release date:** 2025-06-13
19+
20+
This patch release comes with a fix for the `knownhosts: key mismatch`
21+
error in the `GitRepository` API when using SSH authentication, and
22+
a fix for authentication with
23+
[public ECR repositories](https://fluxcd.io/flux/integrations/aws/#for-amazon-public-elastic-container-registry)
24+
in the `OCIRepository` API.
25+
26+
Fix:
27+
- Fix authentication for public ECR
28+
[#1825](https://github.com/fluxcd/source-controller/pull/1825)
29+
- Fix `knownhosts key mismatch` regression bug
30+
[#1829](https://github.com/fluxcd/source-controller/pull/1829)
31+
32+
## 1.6.0
33+
34+
**Release date:** 2025-05-27
35+
36+
This minor release promotes the OCIRepository API to GA, and comes with new features,
37+
improvements and bug fixes.
38+
39+
### OCIRepository
40+
41+
The `OCIRepository` API has been promoted from `v1beta2` to `v1` (GA).
42+
The `v1` API is backwards compatible with `v1beta2`.
43+
44+
OCIRepository API now supports object-level workload identity by setting
45+
`.spec.provider` to one of `aws`, `azure`, or `gcp`, and setting
46+
`.spec.serviceAccountName` to the name of a service account in the same
47+
namespace that has been configured with appropriate cloud permissions.
48+
For this feature to work, the controller feature gate
49+
`ObjectLevelWorkloadIdentity` must be enabled. See a complete guide
50+
[here](https://fluxcd.io/flux/integrations/).
51+
52+
OCIRepository API now caches registry credentials for cloud providers
53+
by default. This behavior can be disabled or fine-tuned by adjusting the
54+
token cache controller flags (see [docs](https://fluxcd.io/flux/components/source/options/)).
55+
The token cache also exposes metrics that are documented
56+
[here](https://fluxcd.io/flux/monitoring/metrics/#controller-metrics).
57+
58+
### GitRepository
59+
60+
GitRepository API now supports sparse checkout by setting a list
61+
of directories in the `.spec.sparseCheckout` field. This allows
62+
for optimizing the amount of data fetched from the Git repository.
63+
64+
GitRepository API now supports mTLS authentication for HTTPS Git repositories
65+
by setting the fields `tls.crt`, `tls.key`, and `ca.crt` in the `.data` field
66+
of the referenced Secret in `.spec.secretRef`.
67+
68+
GitRepository API now caches credentials for non-`generic` providers by default.
69+
This behavior can be disabled or fine-tuned by adjusting the
70+
token cache controller flags (see [docs](https://fluxcd.io/flux/components/source/options/)).
71+
The token cache also exposes metrics that are documented
72+
[here](https://fluxcd.io/flux/monitoring/metrics/#controller-metrics).
73+
74+
### General updates
75+
76+
In addition, the Kubernetes dependencies have been updated to v1.33 and
77+
various other controller dependencies have been updated to their latest
78+
version. The controller is now built with Go 1.24.
79+
80+
Fixes:
81+
- Downgrade `Masterminds/semver` to v3.3.0
82+
[#1785](https://github.com/fluxcd/source-controller/pull/1785)
83+
84+
Improvements:
85+
- Promote OCIRepository API to v1 (GA)
86+
[#1794](https://github.com/fluxcd/source-controller/pull/1794)
87+
- [RFC-0010] Introduce object-level workload identity for container registry APIs and cache credentials
88+
[#1790](https://github.com/fluxcd/source-controller/pull/1790)
89+
[#1802](https://github.com/fluxcd/source-controller/pull/1802)
90+
[#1811](https://github.com/fluxcd/source-controller/pull/1811)
91+
- Implement Sparse Checkout for `GitRepository`
92+
[#1774](https://github.com/fluxcd/source-controller/pull/1774)
93+
- Add Mutual TLS support to `GitRepository`
94+
[#1778](https://github.com/fluxcd/source-controller/pull/1778)
95+
- Introduce token cache for `GitRepository`
96+
[#1745](https://github.com/fluxcd/source-controller/pull/1745)
97+
[#1788](https://github.com/fluxcd/source-controller/pull/1788)
98+
[#1789](https://github.com/fluxcd/source-controller/pull/1789)
99+
- Build controller without CGO
100+
[#1725](https://github.com/fluxcd/source-controller/pull/1725)
101+
- Various dependency updates
102+
[#1812](https://github.com/fluxcd/source-controller/pull/1812)
103+
[#1800](https://github.com/fluxcd/source-controller/pull/1800)
104+
[#1810](https://github.com/fluxcd/source-controller/pull/1810)
105+
[#1806](https://github.com/fluxcd/source-controller/pull/1806)
106+
[#1782](https://github.com/fluxcd/source-controller/pull/1782)
107+
[#1783](https://github.com/fluxcd/source-controller/pull/1783)
108+
[#1775](https://github.com/fluxcd/source-controller/pull/1775)
109+
[#1728](https://github.com/fluxcd/source-controller/pull/1728)
110+
[#1722](https://github.com/fluxcd/source-controller/pull/1722)
111+
5112
## 1.5.0
6113

7114
**Release date:** 2025-02-13

0 commit comments

Comments
 (0)