Will Norris
66c549e07b
Setup GitHub Action for code scanning ( #247 )
2020-09-16 12:39:41 -07:00
Blake Stoddard
fd43ff2198
Support proxying images with no provided intermediate cert ( #241 )
...
Replace http.DefaultTransport with aia-transport-go to properly handle missing intermediate certs
2020-09-10 01:52:43 -07:00
Blake Stoddard
52f4360543
Add option to disable following redirects ( #237 )
...
When redirects are followed, ensure that they are still allowed per AllowHosts/DenyHosts
2020-09-10 01:40:59 -07:00
Will Norris
32a8bea35f
switch to supported version of redigo package
...
fixes #244
2020-09-10 00:53:51 -07:00
Will Norris
6126c92bb5
cleanup unused module entries
2020-09-10 00:53:01 -07:00
Will Norris
067500cd7d
add more golangci-lint checks
2020-09-10 00:30:25 -07:00
Will Norris
80c7cb29a6
remove unecessary gitignore
2020-09-09 23:41:53 -07:00
Will Norris
84ae42bcde
golangci: enable additional checks
2020-09-09 23:28:59 -07:00
Will Norris
7e21abe7d1
remove ineffective break statement
2020-09-09 22:44:48 -07:00
Will Norris
9f2d0f0dbc
add github action for golangci
2020-09-09 22:44:48 -07:00
Will Norris
d6e0ad0f93
update go dependencies
2020-09-09 15:47:38 -07:00
Will Norris
0008657b77
dockerfile: change deprecated maintainer syntax
2020-09-09 15:44:09 -07:00
Will Norris
fc79b851b2
fix go lint warnings
...
- handle errors where possible
- explicitly ignore errors where it makes sense to
- fix deprecations and unused var
2020-09-09 15:44:09 -07:00
Will Norris
5600290c82
simplify shields.io URL
2020-06-23 23:52:41 +00:00
Will Norris
bfb3289bd5
update default branch to master
...
- fix URL for CI badge in README
- add actions workflow to push 'main' branch to 'latest' docker image
2020-06-21 17:50:32 +00:00
Blake Stoddard
0da684b81e
Switch to Hostname() for checking whether a host is allowed or not ( #238 )
...
Using .Host allows you to get around an allowHosts or denyHosts entry by adding a port
2020-06-20 21:44:01 -07:00
Blake Stoddard
f91e9cb508
Allow allowing/blocks hosts by IP range ( #236 )
2020-06-19 17:30:49 -07:00
Thom Wright
3c7d08f311
Fix dockerhub link
...
The current link goes to a blank page for me.
2020-05-05 07:51:15 -07:00
Will Norris
7de7100f6c
actions: set timeout for uploading to codecov
...
codecov is sometimes slow to respond, and it's not worth holding up the
test suite for.
2020-04-04 06:24:34 +00:00
Will Norris
8d8c59a928
bump go version
...
- build docker image with go1.14
- test with go1.14 and go1.13
- also run `go mod tidy` to pick up a missed go.sum record
2020-04-04 06:21:35 +00:00
Will Norris
65aeb787ac
actions: publish docker images on new git tags
2020-04-04 05:44:31 +00:00
Will Norris
72ba50b8ce
docs: update changelog in preparation for v0.10.0
2020-04-03 04:23:45 +00:00
Will Norris
3589510f2c
use gorilla/mux for routing requests
...
Thanks to @Fieldistor for the reminder that gorilla/mux allows you to
disable cleaning request URLs, which was causing problems with signature
verification for some URLs.
Fixes #215
Fixes #212
2020-04-02 22:29:10 +00:00
John Bolliger
00652fd9cb
Added signed options example into the documentation.
2020-02-24 08:31:06 -08:00
Will Norris
7f91379373
rename prometheus metrics and vars
...
Make names a little more consistent and align with naming docs at
https://prometheus.io/docs/practices/naming/
2020-02-24 08:27:30 -08:00
Will Norris
4e97a7ea8f
make 'cached' a bool
2020-02-24 08:27:30 -08:00
Ben Haan
8484518c93
add basic prometheus support
...
Fixes #121
2020-02-24 08:27:30 -08:00
Will Norris
2eb6dfcd05
remove my personal config from example systemd file
2020-02-24 00:20:43 +00:00
Will Norris
8c28dca762
include referer header in remote requests
...
this is an optional feature which is disabled by default, since it is
only needed in a few select cases and risks accidentally exposing
internal URLs.
Fixes #216
2020-02-21 08:24:23 +00:00
Will Norris
edd9dbac2d
allow space-separated list of signature keys
...
This is necessary when specifying options as environment variables.
Also add documentation for using multiple signature keys.
2020-02-02 18:45:39 +00:00
Will Norris
dec2089f0b
docker: use latest go1.13.x
2020-02-02 18:27:02 +00:00
Will Norris
403735c8e2
no need to export signatureKeyList type
2020-02-02 01:28:18 +00:00
Mauro Ciancio
ef09c1ba31
add support for multiple signature keys ( #209 )
2020-02-01 17:03:59 -08:00
Will Norris
3bdd0fe8ed
actions: always test with latest go version
2020-01-26 23:13:24 +00:00
Will Norris
c2dd079584
update github actions config
...
- combine windows and linux configs into a single matrix, now that
actions/cache handles file paths properly
- update to latest actions/checkout and codecov actions
2020-01-26 21:16:19 +00:00
Will Norris
176e818df9
use pkg.go.dev for documentation
2020-01-26 18:50:43 +00:00
Will Norris
7eeacfca7a
standardize copyright statements (Inc -> LLC)
2019-11-30 10:04:17 -08:00
Will Norris
6d25a48f48
use simple bash command for codecov
2019-11-04 06:30:42 +00:00
Will Norris
5c76261bfd
github actions: cache go modules; disable travis
...
This is mostly an experiment, but I think it will work well. GitHub
Actions provides MacOS and Windows builds (though I'm only adding in
Windows at the moment), and cleaner integration. Builds also seem to be
completing faster than Travis.
2019-11-02 11:39:05 -07:00
Will Norris
8ae8c1b2ea
run tests using GitHub Actions
2019-11-01 19:11:05 -07:00
Will Norris
d99be34251
use path package for matching content type
...
content type always uses forward slash, so path is the right package to
use.
fixes #191
2019-11-01 18:57:14 -07:00
Will Norris
c0a97f6742
simplify data.go and tests
...
remove unecessary string casting, and simplify duplicate tests. Also
don't use struct literals for test values.
2019-10-13 19:28:22 -07:00
Will Norris
3b850734af
cmd/imageproxy: use http.DefaultServeMux
...
this allows using the net/http/pprof package, and any other similar
package that registers handlers on the default ServerMux.
2019-10-13 11:16:34 -07:00
Will Norris
594376fc0f
docs: link from plugins design to relevant issues/prs
2019-10-12 15:51:58 -07:00
Shahan Khan
ea95ad93a1
Support for better content type detection with images on S3
2019-10-12 08:20:52 -07:00
Will Norris
fb937ccd1b
readme: add note about docker bind-mounts
...
when we changed the container to run as a non-root user, it broke some
imageproxy instances that were relying on the default docker user and
file permissions. Users running dockerized imageproxy with a
bind-mounted on-disk cache now need to make sure the user and file
permissions line up.
fixes #198
2019-09-13 12:40:48 +00:00
Will Norris
785c5bddd6
go.mod: group replacements into a single block
2019-09-07 21:41:14 +00:00
Will Norris
bee1a2766a
go.mod: fix module replacement to build with go1.13
...
- fix timestamp for github.com/golang/lint
- move one commit ahead of v0.12.0 for github.com/apache/thrift
2019-09-07 21:38:41 +00:00
Abdullah Saleem
57a4d4671e
Fixes #190 thrift dependency issue
2019-09-02 23:03:06 +00:00
Bastian Winkler
ec7166cc7a
modules: update goexif dependency
...
See https://github.com/rwcarlsen/goexif/issues/73 reasons
2019-08-11 07:51:15 -07:00