Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from upstream #6

Merged
merged 137 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
235772d
make the makefile a bit more dynamic
dropwhile Jul 17, 2023
d86f658
update CI go version
dropwhile Jul 17, 2023
2fbe6ee
remove mention of the now seeminly unmaintained fork
dropwhile Jul 19, 2023
58ad54e
migrate to new SECURITY.md file
dropwhile Jul 19, 2023
de4a29b
update docker contaier build action
dropwhile Jul 19, 2023
ed41556
update dependencies
dropwhile Jul 20, 2023
e93fbcd
update github CI actions workflow uses versions
dropwhile Jul 20, 2023
e466255
update workflow
dropwhile Jul 20, 2023
fdeed79
update workflow
dropwhile Jul 20, 2023
1a1ca04
update workflow
dropwhile Jul 20, 2023
2df7679
more minor workflow updates
dropwhile Jul 20, 2023
ff943fb
bump version in go.mod to v2
dropwhile Jul 25, 2023
7328312
fix other module related urls
dropwhile Jul 25, 2023
9eda7a0
missed a couple
dropwhile Jul 25, 2023
d0fd835
update changelog
dropwhile Jul 25, 2023
713546c
fix changelog syntax issue
dropwhile Jul 25, 2023
4c82dc0
update changelog
dropwhile Jul 25, 2023
1c26d11
update to go 1.21.x
dropwhile Aug 13, 2023
18ae608
update readme make targets exampe in docs
dropwhile Aug 13, 2023
e0823e8
update dependencies
dropwhile Aug 16, 2023
66450d5
fix htrie matching of non punycode (eg. unicode) idna hostnames
dropwhile Aug 19, 2023
f78960e
update dep
dropwhile Aug 20, 2023
d2fc69d
update makefile list target
dropwhile Aug 20, 2023
cd940a9
logging refactor
dropwhile Aug 24, 2023
44507d1
improve performance of hostname check processing
dropwhile Aug 27, 2023
d5243bb
remove requirement for gox for makefile automated cross-compilation
dropwhile Aug 30, 2023
51fc263
update readme
dropwhile Aug 30, 2023
4d65728
readme formatting
dropwhile Aug 30, 2023
83ce19d
Bump golang.org/x/net from 0.12.0 to 0.17.0
dependabot[bot] Oct 11, 2023
3e2a664
Merge pull request #64 from cactus/dependabot/go_modules/golang.org/x…
dropwhile Oct 12, 2023
cc9cc6f
update go deps
dropwhile Oct 12, 2023
9d4831e
fix #65
dropwhile Oct 23, 2023
a48538a
fix unstable test (would fail due to dns result sorting
dropwhile Oct 23, 2023
2cd1ffd
update github workflows
dropwhile Oct 23, 2023
eba4439
Add --no-debug-vars switch
dee-see Oct 25, 2023
2c7840d
Update README.adoc
dee-see Oct 25, 2023
6ff454a
Merge pull request #67 from dee-see/patch-1
dropwhile Oct 25, 2023
5f6e3fb
minor readme formatting and update man page
dropwhile Oct 25, 2023
db5575e
update changelog
dropwhile Oct 25, 2023
5ce9efb
update prometheus dep
dropwhile Oct 29, 2023
97a0cad
looks like mockbin is dead. change to httpbin
dropwhile Oct 29, 2023
b2f7c54
doc(README): remove typo
Vinay0508 Oct 29, 2023
7eec13a
Merge pull request #68 from Vinay0508/patch-1
dropwhile Oct 29, 2023
45fcda4
Update README.adoc
vaibhav-009 Oct 29, 2023
743ecbc
Update README.adoc
vaibhav-009 Oct 29, 2023
ebfb31d
Merge pull request #69 from vaibhav-009/master
dropwhile Oct 29, 2023
91b438a
Merge branch 'cactus:master' into delta1
vaibhav-009 Oct 30, 2023
0142bcc
Merge pull request #70 from vaibhav-009/delta1
dropwhile Oct 30, 2023
0d5a8f6
update deps
dropwhile Nov 4, 2023
d3b0ad9
Create dependabot.yml
dropwhile Nov 4, 2023
59a4227
add support for http/3+quic
dropwhile Nov 8, 2023
cf3e33b
make sure each server gets closeWait time to gracefully close
dropwhile Nov 8, 2023
0652b83
ignore error here
dropwhile Nov 8, 2023
31c8e0c
silence nosec instead of `_=`
dropwhile Nov 8, 2023
d9a1563
add ghcr.io as a docker image repo as well
dropwhile Nov 12, 2023
c37ef92
rename
dropwhile Nov 12, 2023
df8e405
fetch tags in workflow checkout
dropwhile Nov 12, 2023
b8ae6c2
switch to kong for url-tool argument parsing
dropwhile Nov 12, 2023
0f6050d
switch to kong for go-camo cli argument parsing
dropwhile Nov 12, 2023
86c7789
minor refactor
dropwhile Nov 12, 2023
ef2ab00
update copyright dates and minor formatting
dropwhile Nov 12, 2023
9ab4f25
update documentation
dropwhile Nov 12, 2023
4838a51
update changelog
dropwhile Nov 13, 2023
e1c9c68
fix github ci workflow
dropwhile Nov 13, 2023
3143768
update readme to point to github container registry as well
dropwhile Nov 13, 2023
d59fada
fieldalignment optimizations
dropwhile Nov 15, 2023
4e9a6a3
add automaxprocs flag
dropwhile Nov 26, 2023
c641492
silence check error
dropwhile Nov 26, 2023
f1cc28a
Bump golang.org/x/net from 0.18.0 to 0.19.0
dependabot[bot] Dec 4, 2023
2a57a6b
Merge pull request #72 from cactus/dependabot/go_modules/golang.org/x…
dropwhile Dec 4, 2023
31cdfd4
bump deps
dropwhile Dec 7, 2023
a0abbc3
add VERSION and GITHASH metadata to docker image
dropwhile Dec 12, 2023
7132c2d
add prof flag to enable http/pprof
dropwhile Dec 14, 2023
ac2655f
Bump github.com/quic-go/quic-go from 0.40.0 to 0.40.1
dependabot[bot] Dec 18, 2023
0cf9a6a
Merge pull request #74 from cactus/dependabot/go_modules/github.com/q…
dropwhile Dec 18, 2023
85bc6f3
fix codeql
dropwhile Dec 18, 2023
c3dd1d6
bump other deps
dropwhile Dec 18, 2023
ba49ab1
update golang.org/x/crypto
dropwhile Dec 19, 2023
5ae193f
update changelog
dropwhile Dec 19, 2023
af7e920
update 2nd order dep
dropwhile Dec 21, 2023
ab60a9a
update 2nd order dep
dropwhile Dec 24, 2023
1c33631
bump deps
dropwhile Dec 31, 2023
ed9087b
bump deps
dropwhile Jan 6, 2024
8d57112
update deps
dropwhile Jan 10, 2024
11a57d9
update deps
dropwhile Jan 12, 2024
057a990
update deps, bump min go version
dropwhile Jan 22, 2024
5de2f81
update reamde, changelog
dropwhile Jan 22, 2024
d170c29
update makefile
dropwhile Jan 23, 2024
2c75cab
bump dep
dropwhile Jan 27, 2024
ea8986e
bump indirect dep
dropwhile Jan 30, 2024
7d1affb
update deps
dropwhile Feb 7, 2024
de54ac7
bump deps
dropwhile Feb 10, 2024
f428330
dep updates
dropwhile Feb 13, 2024
de39bc0
update deps
dropwhile Feb 17, 2024
14d663c
update changelog
dropwhile Feb 17, 2024
35f8335
update deps
dropwhile Feb 23, 2024
66c407e
update dep
dropwhile Feb 26, 2024
6f06d42
dep update
dropwhile Feb 27, 2024
33eebcc
update dep
dropwhile Mar 3, 2024
aed262a
update deps
dropwhile Mar 6, 2024
51a9609
update deps
dropwhile Mar 8, 2024
c180b7c
update
dropwhile Mar 17, 2024
967c927
fix prometheus build issue
dropwhile Mar 17, 2024
632af00
update changelog
dropwhile Mar 17, 2024
a2cdb19
update deps
dropwhile Mar 18, 2024
254b01f
bump dep
dropwhile Mar 19, 2024
567528a
bump deps
dropwhile Mar 24, 2024
778e1e6
update deps
dropwhile Apr 3, 2024
fc2b7bf
update changelog
dropwhile Apr 4, 2024
30ac8b8
update deps
dropwhile Apr 5, 2024
21bf1a0
update dep
dropwhile Apr 13, 2024
1a9ab90
update deps
dropwhile Apr 20, 2024
bf64f78
refactor docker publish CI
dropwhile Apr 20, 2024
d169b17
update other GH-CI action versions
dropwhile Apr 20, 2024
8359fe4
refactor github publish CI
dropwhile Apr 20, 2024
e77beec
fixes for tests
dropwhile Apr 20, 2024
83d95c3
update changelog
dropwhile Apr 20, 2024
bc843c3
try multi-arch build, update CI workflows
dropwhile Apr 22, 2024
f33c2dc
update changelog
dropwhile Apr 22, 2024
406e2f2
update dependencies
dropwhile Apr 27, 2024
23a29fa
address dependency method change/deprecation
dropwhile Apr 27, 2024
c7df2bd
update deps
dropwhile May 2, 2024
dbc50d9
update deps
dropwhile May 4, 2024
7a26e02
update deps
dropwhile May 7, 2024
cb0a0f6
run CI for arm64 via qemu
dropwhile May 9, 2024
65ce43c
drop darwin/amd64 from default build targets
dropwhile May 9, 2024
144a25b
update deps
dropwhile May 14, 2024
881cf98
move Dockerfile and add missing GITHASH
dropwhile May 14, 2024
f65fdf0
bump dep
dropwhile May 20, 2024
ee78337
update deps
dropwhile May 21, 2024
4ebceb0
bump deps
dropwhile May 25, 2024
0836cdc
dump deps
dropwhile May 31, 2024
8dc0c34
bump deps
dropwhile Jun 4, 2024
b8b144b
bump deps
dropwhile Jun 6, 2024
8eb86a2
bump deps
dropwhile Jun 12, 2024
926368d
bump deps
dropwhile Jun 15, 2024
d5e82b1
Merge remote-tracking branch 'upstream/master'
ewdurbin Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Security Policy

## Supported Versions

The most recent version "release" version to appear on the
[releases][1] page is currently supported.

## Reporting a Vulnerability

To report a vulnerability, please use the
[Privately reporting a security vulnerability][2]
facility.

[1]: https://github.com/cactus/go-camo/releases
[2]: https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
labels:
- dependencies
schedule:
interval: "weekly"
day: "monday"
26 changes: 19 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CodeQL"

on:
push:
branches: ['**']
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
Expand All @@ -13,23 +13,35 @@ jobs:
analyse:
name: Analyse
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
check-latest: true
id: go

- name: Build
env:
GOPROXY: "https://proxy.golang.org"
run: make build

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: go

- name: build
run: make build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
78 changes: 78 additions & 0 deletions .github/workflows/publish-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: publish-docker-images
on:
workflow_dispatch:
push:
tags:
- "v*"

jobs:
build:
name: docker-publish
runs-on: ubuntu-latest

steps:
- name: Src Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: write tags env vars
run: |
TAG=$(git describe --tags)
LATEST_TAG=$(git tag -l | grep -viE '(alpha|beta)' | sort -V | tail -n 1)
GITHASH="$(git rev-parse HEAD)"
echo "TAG=$TAG"
echo "TAG=${TAG}" >> "$GITHUB_ENV"
echo "LATEST_TAG=${LATEST_TAG}"
echo "LATEST_TAG=${LATEST_TAG}" >> "$GITHUB_ENV"
echo "GITHASH=${GITHASH}"
echo "GITHASH=${GITHASH}" >> "$GITHUB_ENV"

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
cactus4docker/go-camo
ghcr.io/cactus/go-camo
tags: |
# set latest tag for master branch
type=raw,value=${{ env.TAG }}
type=raw,value=latest,enable=${{ env.TAG == env.LATEST_TAG }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ secrets.DOCKER_USERNAME }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
provenance: false
sbom: false
file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: |
GITHASH=${{env.GITHASH}}
APP_VER=${{env.TAG}}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
57 changes: 0 additions & 57 deletions .github/workflows/publish-docker.yml

This file was deleted.

71 changes: 50 additions & 21 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
name: unit-tests
on:
workflow_dispatch:
push:
branches: ['**']
branches: ["**"]
pull_request:
branches: [main]

jobs:
build:
name: Build
strategy:
matrix:
go: ['1.19.x']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go
test:
runs-on: ubuntu-latest

steps:
- name: Src Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ">=1.22.0"
check-latest: true
id: go

- name: Build
env:
GOPROXY: "https://proxy.golang.org"
Expand All @@ -34,15 +32,46 @@ jobs:
env:
GOPROXY: "https://proxy.golang.org"
run: |
go install honnef.co/go/tools/cmd/staticcheck@2023.1.1
go install github.com/securego/gosec/v2/cmd/gosec@latest
hash -r
make check

- name: Tests
env:
GOPROXY: "https://proxy.golang.org"
CI: true
run:
echo "skip"
# run: make test
run: make test

test-qemu:
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
arch: [arm64]

steps:
- name: Src Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ">=1.22.0"
check-latest: true
id: go

- name: Install QEMU
uses: docker/setup-qemu-action@v3

- name: Build
env:
GOPROXY: "https://proxy.golang.org"
GOARCH: ${{ matrix.arch }}
run: make build

- name: Tests
env:
GOPROXY: "https://proxy.golang.org"
GOARCH: ${{ matrix.arch }}
CI: true
run: make test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.vscode
/build
/config.json
/diagrams
Expand All @@ -7,6 +8,7 @@
/server.crt
/server.csr
*.py[co]
/test.py
/test-ruleset.conf
/man/*.html
/man/*.[1-9]
48 changes: 48 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,54 @@ toc::[]

== HEAD

== v2.4.13 2024-04-22
* Release tagged for arm64 docker building only.

== v2.4.12 2024-04-20
* Update library dependencies.
* Fix docker and github packages publishing issue.

== v2.4.11 2024-04-03
* Update library dependencies.
* Build with Go-1.22.2

== v2.4.10 2024-03-17
* Update library dependencies.

== v2.4.9 2024-02-16
* Minimum Go version now 1.21 due to quic-go dependency, due to better
cryto/tls support for QUIC in Go-1.21.
* Update library dependencies.

== v2.4.8 2023-12-19
* Add `--automaxprocs` flag to set GOMAXPROCS automatically to match Linux
container CPU quota/limits.
* Update library dependencies.

== v2.4.7 - 2023-11-13
* Add http3/quic server support. New flag `--quic`. Requires `--ssl-listen`.

== v2.4.6 - 2023-10-25
* Add `--no-debug-vars` flag to disable /debug/vars when `--metrics` is
enabled. (#66, #67)

== v2.4.5 - 2023-10-23
* fix htrie matching of non punycode (eg. unicode) idna hostnames
* slightly faster logging (update to mlog dependency)
* address a logging issue with missing url path output in
`"built outgoing request"` debug log
* moderate improve performance of hostname rule processing
(approx 12-30% in microbenchmarks)
* slight improvement in request path url processing
(approx 2-4% in microbenchmarks)
* fix /debug/vars being enabled by default (#65) due to expvars import
side effect

== v2.4.4 - 2023-07-25
* update dependencies
* bump version in go.mod (and fix all internal module references) +
ref: discussion link:https://github.com/cactus/go-camo/discussions/62[#62]

== v2.4.3 - 2023-02-18
* update library dependency golang.org/x/net. +
refs:
Expand Down
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

Loading