Skip to content

feat: go module separation#5498

Merged
moolen merged 1 commit intoexternal-secrets:mainfrom
moolen:mj-go-mod
Nov 3, 2025
Merged

feat: go module separation#5498
moolen merged 1 commit intoexternal-secrets:mainfrom
moolen:mj-go-mod

Conversation

@moolen
Copy link
Copy Markdown
Member

@moolen moolen commented Oct 23, 2025

towards: #5494

@github-actions github-actions bot added kind/feature Categorizes issue or PR as related to a new feature. size/xl kind/documentation Categorizes issue or PR as related to documentation. kind/dependency dependabot and upgrades and removed size/xl labels Oct 23, 2025
@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 23, 2025

/ok-to-test sha=dffea42c08bb227e9a86165e325d7a58fbac2b4c

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@moolen moolen marked this pull request as ready for review October 23, 2025 21:43
@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 23, 2025

/ok-to-test sha=3bee5af5803fff9855f776100c74f82cefd6b3d6

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Oct 24, 2025

Huh, why is there one passed one failed return comment? :D

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 24, 2025

I re-ran the failed job, it was a flake

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Oct 24, 2025

Ah okay. That makes sense.

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Oct 24, 2025

I will take a look at this during my office hours today later on.

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Oct 24, 2025

LGTM largely honestly.

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 24, 2025

/ok-to-test sha=8a69bb58cb06618805f4056fbbb168153dd49706

@eso-service-account-app
Copy link
Copy Markdown
Contributor

1 similar comment
@eso-service-account-app
Copy link
Copy Markdown
Contributor

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 24, 2025

Download action repository 'engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108e7d49' (SHA:aa272fe2a7309878ffc2a81c56cfe3ef108e7d49)
Error: An action could not be found at the URI 'https://api.github.com/repos/engineerd/setup-kind/tarball/aa272fe2a7309878ffc2a81c56cfe3ef108e7d49' (4802:158C3E:2EDC1:3F515:68FBCCF3)

seems the workflow is no more 😕

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 24, 2025

/ok-to-test sha=69ad12ee47c56baf297560616a4d491bc4d7c08c

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 30, 2025

/ok-to-test sha=205edb9fd03724db36f5003d387fcc41890b5abe

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 30, 2025

/ok-to-test sha=9366db67dd938ddb26aa3461e675f93cde5fdb11

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 30, 2025

/ok-to-test sha=4220cd34948d625daeb99efd32c789c897173d13

@eso-service-account-app
Copy link
Copy Markdown
Contributor

2 similar comments
@eso-service-account-app
Copy link
Copy Markdown
Contributor

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 31, 2025

Jeez, integration tests are broken, need to dig that up..
Maybe the pem encoding issue is related?

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Oct 31, 2025

/ok-to-test sha=fa91a545aeb597a4ce267d1091f3d06d111934be

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Nov 1, 2025

@moolen this will help with the build tags and the separate binaries right? 🧐

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Nov 1, 2025

What I mean to ask is what's the next step?

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Nov 1, 2025

Because that means that doing overreaching changes that touch more modules will be painful now and will result in more prs. ( because you need to push and pull the library that you change like templating. ).

@moolen
Copy link
Copy Markdown
Member Author

moolen commented Nov 1, 2025

@moolen this will help with the build tags and the separate binaries right? 🧐

Yes, exactly. Though its Just a first step. I don't see much value in having build tags right now. If someone needs them they can Open a PR for that.

Because that means that doing overreaching changes that touch more modules will be painful now and will result in more prs. ( because you need to push and pull the library that you change like templating. ).

Why? It's all a singe codebase. You don't need to issue separate PRs or bump eso module versions across modules.

(With one exception: bumping dependencies. Though i have a PR in flight which consolidates that. The automation currently only deals with the root and e2e modules )

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Nov 1, 2025

Am I misunderstanding this? It's a single code base but it's separate go modules right? So you will need to push them in order to require them and have submodule tags and everything.

@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented Nov 1, 2025

Oh! I'm an idiot. You just separated the providers 🤦

Skarlso
Skarlso previously approved these changes Nov 1, 2025
@moolen moolen enabled auto-merge (squash) November 2, 2025 15:08
Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Nov 2, 2025

@moolen moolen merged commit a9b233b into external-secrets:main Nov 3, 2025
30 of 31 checks passed
alexlebens pushed a commit to alexlebens/infrastructure that referenced this pull request Nov 10, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [external-secrets](https://github.com/external-secrets/external-secrets) | major | `0.20.4` -> `1.0.0` |

---

### Release Notes

<details>
<summary>external-secrets/external-secrets (external-secrets)</summary>

### [`v1.0.0`](https://github.com/external-secrets/external-secrets/releases/tag/v1.0.0)

[Compare Source](external-secrets/external-secrets@v0.20.4...v1.0.0)

Image: `ghcr.io/external-secrets/external-secrets:v1.0.0`
Image: `ghcr.io/external-secrets/external-secrets:v1.0.0-ubi`
Image: `ghcr.io/external-secrets/external-secrets:v1.0.0-ubi-boringssl`

<!-- Release notes generated using configuration in .github/release.yml at main -->

#### What's Changed

##### General

- chore: release helm chart for v0.20.4 by [@&#8203;Skarlso](https://github.com/Skarlso) in [#&#8203;5502](external-secrets/external-secrets#5502)
- chore(actions): fix security alerts for github actions by [@&#8203;Skarlso](https://github.com/Skarlso) in [#&#8203;5504](external-secrets/external-secrets#5504)
- chore(release): fix incorrect shas from security alert pinning by [@&#8203;jakobmoellerdev](https://github.com/jakobmoellerdev) in [#&#8203;5512](external-secrets/external-secrets#5512)
- chore: update dependencies by [@&#8203;eso-service-account-app](https://github.com/eso-service-account-app)\[bot] in [#&#8203;5519](external-secrets/external-secrets#5519)
- fix: upgrade go version by [@&#8203;Skarlso](https://github.com/Skarlso) in [#&#8203;5529](external-secrets/external-secrets#5529)
- fix(charts): normalize certificate duration default value by [@&#8203;aslafy-z](https://github.com/aslafy-z) in [#&#8203;5497](external-secrets/external-secrets#5497)
- chore(revive-linter): add revive linter configuration by [@&#8203;Lumexralph](https://github.com/Lumexralph) in [#&#8203;5515](external-secrets/external-secrets#5515)
- feat: go module separation by [@&#8203;moolen](https://github.com/moolen) in [#&#8203;5498](external-secrets/external-secrets#5498)
- fix: update deps script to reflect new go mod structure by [@&#8203;moolen](https://github.com/moolen) in [#&#8203;5532](external-secrets/external-secrets#5532)
- fix: lint by [@&#8203;gusfcarvalho](https://github.com/gusfcarvalho) in [#&#8203;5536](external-secrets/external-secrets#5536)
- feat: dynamic target implementation for external secrets sources  by [@&#8203;Skarlso](https://github.com/Skarlso) in [#&#8203;5470](external-secrets/external-secrets#5470)
- fix: codeql should not rebuild the world on every run by [@&#8203;Skarlso](https://github.com/Skarlso) in [#&#8203;5540](external-secrets/external-secrets#5540)
- fix(onepassword): Reduce API usage by [@&#8203;sondrelg](https://github.com/sondrelg) in [#&#8203;5410](external-secrets/external-secrets#5410)
- feat(esoctl): adds bootstrap generator commands by [@&#8203;gusfcarvalho](https://github.com/gusfcarvalho) in [#&#8203;5539](external-secrets/external-secrets#5539)
- fix: adds missing externalsecret\_type validation on generatorRef by [@&#8203;gusfcarvalho](https://github.com/gusfcarvalho) in [#&#8203;5547](external-secrets/external-secrets#5547)
- chore(docs): fix the generic resource doc using the incorrect switch by [@&#8203;Skarlso](https://github.com/Skarlso) in [#&#8203;5548](external-secrets/external-secrets#5548)
- docs(adopters): add Topicus.Education to adopters list by [@&#8203;sboschman](https://github.com/sboschman) in [#&#8203;5551](external-secrets/external-secrets#5551)
- fix(build): use more portable bash by [@&#8203;tiagolobocastro](https://github.com/tiagolobocastro) in [#&#8203;5537](external-secrets/external-secrets#5537)

##### Dependencies

- chore(deps): bump alpine from `4bcff63` to `4b7ce07` in /hack/api-docs by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5507](external-secrets/external-secrets#5507)
- chore(deps): bump golang from 1.25.2 to 1.25.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5506](external-secrets/external-secrets#5506)
- chore(deps): bump golang from `aee43c3` to `aee43c3` by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5516](external-secrets/external-secrets#5516)
- chore(deps): bump golang from 1.25.2-bookworm to 1.25.3-bookworm in /e2e by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5505](external-secrets/external-secrets#5505)
- chore(deps): bump anchore/sbom-action from 0.20.8 to 0.20.9 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5508](external-secrets/external-secrets#5508)
- chore(deps): bump hashicorp/setup-terraform from [`c529327`](external-secrets/external-secrets@c529327) to [`982f6f0`](external-secrets/external-secrets@982f6f0) by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5510](external-secrets/external-secrets#5510)
- chore(deps): bump actions/github-script from 7.0.1 to 8.0.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5513](external-secrets/external-secrets#5513)
- chore(deps): bump github/codeql-action from 4.30.9 to 4.31.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5514](external-secrets/external-secrets#5514)
- chore(deps): bump actions/cache from 4.2.4 to 4.3.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5511](external-secrets/external-secrets#5511)
- chore(deps): bump regex from 2025.9.18 to 2025.10.23 in /hack/api-docs by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5509](external-secrets/external-secrets#5509)
- chore(deps): bump mkdocs-macros-plugin from 1.4.0 to 1.4.1 in /hack/api-docs by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5518](external-secrets/external-secrets#5518)
- chore(deps): bump termcolor from 3.1.0 to 3.2.0 in /hack/api-docs by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5517](external-secrets/external-secrets#5517)
- chore(deps): bump github/codeql-action from 4.31.0 to 4.31.2 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5531](external-secrets/external-secrets#5531)
- chore(deps): bump mkdocs-material from 9.6.22 to 9.6.23 in /hack/api-docs by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;5533](external-secrets/external-secrets#5533)

#### New Contributors

- [@&#8203;sondrelg](https://github.com/sondrelg) made their first contribution in [#&#8203;5410](external-secrets/external-secrets#5410)
- [@&#8203;tiagolobocastro](https://github.com/tiagolobocastro) made their first contribution in [#&#8203;5537](external-secrets/external-secrets#5537)

**Full Changelog**: <external-secrets/external-secrets@v0.20.4...v1.0.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4wLjEiLCJ1cGRhdGVkSW5WZXIiOiI0Mi4wLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImNoYXJ0Il19-->

Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/1985
Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net>
Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
evrardj-roche added a commit to evrardj-roche/external-secrets that referenced this pull request Feb 17, 2026
Without this, we have multiple registries for no reason.

This is a problem, as the interfaces to implement for each
provider are not consistent.

This fixes it by ensuring we have a single _runtime_ registry,
storing all information about the provider, including its
metadata. This "one stop shop" can therefore have all the
information for docs, but also API reporting.

This extends on previous patch to make it possible for
a developer to maintain only one metadata list of features,
and it will automatically self-document and report correctly
to the API, instead of having hard-coded values in multiple
places.

The centralisation in `runtime` follows the pattern described
in [1] and [2], even though it meant that we had to have hooks
to prevent circular dependencies.

[1]: external-secrets#5498
[2]: external-secrets#5494

Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard+rochepub@external.roche.com>
evrardj-roche added a commit to evrardj-roche/external-secrets that referenced this pull request Feb 17, 2026
Without this, we have multiple registries for no reason.

This is a problem, as the interfaces to implement for each
provider are not consistent.

This fixes it by ensuring we have a single _runtime_ registry,
storing all information about the provider, including its
metadata. This "one stop shop" can therefore have all the
information for docs, but also API reporting.

This extends on previous patch to make it possible for
a developer to maintain only one metadata list of features,
and it will automatically self-document and report correctly
to the API, instead of having hard-coded values in multiple
places.

The centralisation in `runtime` follows the pattern described
in [1] and [2], even though it meant that we had to have hooks
to prevent circular dependencies.

[1]: external-secrets#5498
[2]: external-secrets#5494

Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard+rochepub@external.roche.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/dependency dependabot and upgrades kind/documentation Categorizes issue or PR as related to documentation. kind/feature Categorizes issue or PR as related to a new feature. size/xl

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants