Граф коммитов

163 Коммитов

Автор SHA1 Сообщение Дата
Will Daly 55e9b801de
Add 1.1.14 to CHANGELOG (#75) 2024-10-15 12:45:39 -07:00
Will Daly c0b8f5c589
Bump distroless-iptables v0.6.3 and Go image to 1.23.2 (#74)
* Bump distroless-iptables to v0.6.3

* Bump Go build image to 1.23.2-bookworm
2024-10-15 12:43:52 -07:00
Will Daly 384ce2e76e
Add 0.1.13 to CHANGELOG (#73) 2024-08-12 09:36:25 -07:00
Will Daly 89d01e8d4b Bump k8s.io/kubernetes to v1.27.16 2024-08-06 12:50:23 -07:00
Will Daly 1923bfff71
Use Microsoft image for Go toolchain (#72)
Use mcr.microsoft.com/oss/go/microsoft/golang:1.22.5-bookworm as the Go build image.
This avoids rate limiting pulling the alpine-based image from Docker Hub.

In Microsoft golang image, /bin/sh is not bash, so `-o pipefail` isn't available.
Fix it by setting build.sh to use /bin/bash explicitly.
2024-08-06 12:46:04 -07:00
Will Daly c03143357f
Update ip-masq-agent go version to 1.22 (#71)
* Update Go to 1.22

* Add 0.0.12 to CHANGELOG
2024-08-02 12:36:05 -07:00
Will Daly cec774f05b
Add 0.1.11 to CHANGELOG (#70) 2024-06-05 10:09:37 -07:00
Will Daly 0b76f048b2
Bump k8s.io/kubernetes to v1.27.13 (#69) 2024-06-05 10:06:31 -07:00
Will Daly 1e40ee8096
Bump distroless-iptables to v0.4.8 (#67) 2024-06-05 07:38:34 -07:00
Will Daly 1f940d2537
Remove deprecated lint jobs (#68)
golangci-lint v1.59.0 exits with error code 7 if there are any
errors logged:
4ba2155996

There were some errors in the lint job due to use of deprecated linters:
  level=error msg="[linters_context] deadcode: This linter is fully inactivated: it will not produce any reports."
  level=error msg="[linters_context] structcheck: This linter is fully inactivated: it will not produce any reports."
  level=error msg="[linters_context] varcheck: This linter is fully inactivated: it will not produce any reports."

Fix it by removing the deprecated linters.
2024-06-05 07:36:53 -07:00
dependabot[bot] 72f357664f
Bump golang.org/x/net from 0.17.0 to 0.23.0 (#65)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 09:25:18 -07:00
Will Daly e95eb7b898
Add 0.1.10 to CHANGELOG (#64) 2024-02-27 15:53:56 -08:00
Will Daly 17a5872d23
Use 1ES runner to build and publish images (#63)
Run workflow only on tag "v*" push, not workflow_dispatch.
Remove references to changelog GH action.
Run build and publish steps on 1ES GitHub runners.
2024-02-26 16:36:05 -08:00
Will Daly ec4639298c
Bump distroless-iptables to v0.4.5 (#62) 2024-02-08 11:55:28 -08:00
Will Daly c0df8b0f92
Add 0.1.9 to CHANGELOG (#61) 2023-12-05 14:30:00 -08:00
Will Daly 6521e0bee2
Bump distroless-iptables to v0.4.2 (#60) 2023-11-28 09:07:23 -08:00
Will Daly 4d5c6bb354
Bump k8s.io/kubernetes to v1.27.8, update tests (#59)
Previously we were on K8s v1.24 which is no longer supported in AKS.
Update to v1.27.8 so we're on an LTS version.
This also resolves some CVEs that were picked up by trivy,
although none of them affect ip-masq-agent.

Unfortunately, the test utilities we were using from k8s 1.24
changed significantly in k8s 1.25
913f4bc0ba

Update the tests to use the new test utilities. This is a port of the work from
upstream ip-masq-agent:
8f9743a45c
2023-11-27 11:08:07 -08:00
Will Daly 63631eb7ab
use go 1.20 in go.mod (#58)
Match the version of Go used in the build image.

This also prunes some dependencies, see
"Pruned module graphs in go 1.17 modules" in the Go 1.17 release
notes for details: https://go.dev/doc/go1.17
2023-11-21 09:38:48 -08:00
dependabot[bot] 25f6241447
Bump golang.org/x/net from 0.8.0 to 0.17.0 (#57)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 16:44:00 -07:00
Will Daly a07f92f6e5
Use base image distroless-iptables v0.3.2 (#56) 2023-09-11 16:05:30 -07:00
dependabot[bot] 8b3bb566af
Bump k8s.io/kubernetes from 1.23.17 to 1.24.15 (#53)
Bumps [k8s.io/kubernetes](https://github.com/kubernetes/kubernetes) from 1.23.17 to 1.24.15.
- [Release notes](https://github.com/kubernetes/kubernetes/releases)
- [Commits](https://github.com/kubernetes/kubernetes/compare/v1.23.17...v1.24.15)

---
updated-dependencies:
- dependency-name: k8s.io/kubernetes
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 15:58:33 -07:00
Will Daly 0b14e967f8
Set DOCKER_BUILDKIT in Makefile (#50)
Buildkit is required for multi-platform builds.
Docker version 23.0 enables buildkit by default,
but GitHub runner instances currently use version 20.10.24.
Set the DOCKER_BUILDKIT flag to enable it.
2023-06-05 10:25:07 -07:00
Will Daly 5a96906ac7
Update base and builder images (#49)
Use builder image with go 1.20 to match upstream.

Use base image registry.k8s.io/build-image/distroless-iptables:v0.2.4

Since distroless-iptables is a multi-arch image, configure the
Dockerfile and Makefile to specify --platform for each target
platform. This allows us to use the upstream base image from
registry.k8s.io directly without building manually and pushing
to a separate ACR.

This commit also removes the Windows target. Git commit history
says this got added in commit b9e714d4ef
"Update to the current thockin/go-build-template"
However, upstream ip-masq-agent never added the windows target,
and distroless-iptables doesn't support it. We don't use
ip-masq-agent on Windows, so I think it's safe to remove.

Tested the new images on both AMD64 and ARM64 nodes in an
AKS overlay cluster. Verified that the cluster created successfully,
ip-masq-agent was running on both AMD64 and ARM64 nodes,
and the ip-masq-agent iptables rules were installed.
2023-06-05 07:37:20 -07:00
Will Daly ef4c3320fc
Add 0.1.6 to CHANGELOG (#48) 2023-05-25 07:15:42 -07:00
Will Daly 50bcf26a54
Update k8s.io/kubernetes to v1.23.17 (#47)
Fix for CVE-2022-3294 is in v1.23.14 or later. Bump to the latest
stable patch release.
2023-05-24 10:10:29 -07:00
dependabot[bot] 5fcde49881
Bump golang.org/x/net from 0.0.0-20220225172249-27dd8689420f to 0.7.0 (#46)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220225172249-27dd8689420f to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 07:22:52 -07:00
dependabot[bot] aba3394ba7
Bump golang.org/x/text from 0.3.7 to 0.3.8 (#44)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-24 07:17:58 -07:00
Matt Stam ab96677999
Dynamically update base image to specific architecture (#43) 2022-09-27 13:15:17 -07:00
Matt Stam 39121904e8
Switch base image to distroless-iptables (#42) 2022-09-12 13:06:19 -07:00
Matt Stam 61edb2de01
Initialize logging flags (#38) 2022-04-08 09:48:48 -07:00
Matt Stam bbcd780d47
Remove /vendor from VCS (#37) 2022-03-25 11:08:53 -07:00
Matt Stam 33e2999b2b
Add CI for multi-arch builds (#36) 2022-03-21 14:30:14 -07:00
Matt Stam f7f987e0a4
Update usage examples, README, and CHANGELOG formatting (#35) 2022-03-15 15:01:08 -07:00
Matt Stam 7f95124669
Remove version prefix in CHANGELOG (#34) 2022-03-14 16:02:23 -07:00
Matt Stam 1df73c4f0e
Update publish action to support semantic versioning (#33) 2022-03-14 13:42:48 -07:00
Matt Stam 484f6d642a
Migrate to semantic versioning (#32) 2022-03-11 15:07:40 -08:00
Matt Stam 968e606144
Update Kubernetes to v1.23.0 from v1.13.0-alpha (#31)
* update Kubernetes packages for security fixes

* update CHANGELOG

* k8s.io/component-base/logs to replace old log pkg

* k8s.io/component-base/version/verflag to replace old verflag pkg
2022-03-11 10:36:01 -08:00
Matt Stam e1b3ac82d7
Update kubernetes dependancy and fix modules.txt for CI lint (#26) 2022-03-04 13:39:36 -08:00
Matt Stam d0dccd61ff
Add workflow for ACR/MCR image build and publish. (#24)
Co-authored-by: Tatsinnit <tamishra@microsoft.com>
2022-03-05 07:23:48 +13:00
Matt Stam d48698c0ca
Attempt security fixes with updated dependencies 2022-03-04 09:34:48 -08:00
Matt Stam 2638126dbb
Add CHANGELOG.md for CI reference (#23) 2022-03-03 14:25:56 -08:00
Matt Stam 22b1fab4e9
Update README with new usage instructions (#21) 2022-02-14 10:34:22 -08:00
Tyler Lloyd d02693159c
masq daemon crashes on bad config (#20)
* run loop should return error and crash the daemon on errors

* error tests for bad configs

* go fmt test file

* validate each config to provide the error containing file

validating at the end makes it harder to debug and figure out which
config is the bad file. will also short circuit on a bad config rather than
processing all

* go fmt test file

* Sticking with %q convention for file names

the quotes add some specificity (but mainly just concerned about sticking with what we have in other error messages).

* update tests for previous commit

* missed a quote

Co-authored-by: Matt Stam <mattstam@live.com>
2022-02-02 09:57:24 -08:00
Tatsinnit 50e405f0af
Add go reference to the repo (#19) 2022-01-12 16:11:18 -08:00
Tatsinnit 86ac532639
Add quality visibility to the repo. (#18) 2022-01-11 16:13:58 -08:00
Tatsinnit eea34aab95
Enable Code QL analysis (#17) 2022-01-11 16:03:50 -08:00
Matt Stam 518b1a90ce
Merge CI actions, use Makefile to build/test (#16) 2022-01-11 09:33:34 -08:00
Tatsinnit 13c88d0e8b
Add ci-pipeline for this repo (#15) 2022-01-11 08:52:47 -08:00
Matt Stam 7dd5ebc174
Setup github actions (#12) 2022-01-11 08:45:44 -08:00
Matt Stam 93c011f8b9
Update to the latest OSS guidelines (#13) 2022-01-10 11:24:18 -08:00