Commit graph

49 commits

Author SHA1 Message Date
Jan-Otto Kröpke 74603b6d47 Add custom http header (#104) 2018-07-08 09:43:09 -04:00
Jan-Otto Kröpke a8549a2c40 when uploading layers reuse token so reader isn't closed premature. (#103) 2018-07-08 09:42:04 -04:00
Jess Frazelle f14de4c039
two small cleanups
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-17 15:55:31 -04:00
Jess Frazelle f3a9b00ec8
refactor how the domain for the images is used
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-17 15:50:30 -04:00
Jess Frazelle 246604b921
make naming consistent
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-17 13:36:52 -04:00
Jess Frazelle 285085cc56
fix gofmt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-17 13:34:19 -04:00
Vadim Bauer 720e7deac5 put manifest
Signed-off-by: Vadim Bauer <bauer.vadim@gmail.com>
2018-06-14 13:47:05 +02:00
Jess Frazelle 73712bf067
add clair integration tests
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-12 10:04:35 -04:00
Jess Frazelle 5f1abe4779
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-11 13:33:09 -04:00
Jess Frazelle 294bae7b50
fix token
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-06 15:47:08 -04:00
Jess Frazelle 6dbec6401b
clean up client opt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-06 13:00:42 -04:00
Jess Frazelle 48a99e9644
Merge branch 'pr-56'
* pr-56:
  Add option to skip ping on creating registry client
2018-06-06 12:49:29 -04:00
Knut Ahlers f7bf33b7a6 Re-visit basic auth protected registry (#53)
Using a registry having basic auth enabled the authentication was not
submitted to Clair. This newly introduced error fixes the missing auth
but needs testing with non-basic auth protected registries.

Also maybe the test for the "malformed auth..." string can now be
removed as it does not trigger on registries with basic auth enabled?

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-06-06 12:38:23 -04:00
Jess Frazelle eaf071b3ef
run gofmt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-06-06 12:04:28 -04:00
Vadim Bauer 22f6936237 don't fail if scope container more the one grand. (#92) 2018-06-04 16:42:58 -04:00
Michal Gebauer dfb6ef23f5 Do not resolve digest on delete (#79) 2018-03-12 14:34:13 -04:00
Casey Lee 17625873c8 use the http transport on the registry to support -k (#77) 2018-03-06 11:53:19 -05:00
Jess Frazelle 0cb8777fb1
lint and cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 09:19:55 -05:00
Jess Frazelle a3b459b1a5
refactor client
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 09:12:29 -05:00
Daniel Garcia 5088b3b142 fixes #72, suppose challege headers that don not quote fields (#73) 2018-03-01 12:50:59 -05:00
Paweł Prażak f29941a2ba add more debugging information (#65)
- makes debugging configuration issues easier by adding more context
  instead of misleading "missing signature key" and similar
2018-02-18 11:17:29 -05:00
Simon Ferquel 1efaa929fc Add option to skip ping on creating registry client
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
2018-01-17 17:52:39 +01:00
Jess Frazelle d57e019b47
update delete
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-18 15:17:27 -05:00
Jess Frazelle 758d45bea2
update api
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 17:33:26 -05:00
Jess Frazelle e3777763fb
cleanup staticcheck errors
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:39:02 -05:00
Chris Smith 0ff43808ca Add more useful error for bad credentials. (#51)
* Add more useful error for bad credentials.

The www-authenticate: basic response currently gets caught by
the token transport, which fails to parse it and spits out
a rather oblique "malformed auth challenge header" error.

Make the token transport ignore basic auth types, and make
the error transport handle a 401 response.

* Format authchallenge.go correctly.
2017-12-11 10:42:19 -05:00
mrfly 3bc47ed926 fix registry remove image (#50) 2017-12-09 11:36:02 -05:00
Jess Frazelle 83ba4b225a
add versions and binaries
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-06-05 17:46:12 -04:00
Jess Frazelle 0dbc9338a6
auth service fix for token
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-06-05 15:08:35 -04:00
Hynek Schlawack 11a291f744 Fix http basic auth if protocol is missing (#22)
Basic auth only worked if a full url was supplied.  The reason is that
BasicTransport.RoundTrip checked if the resulting request URL has a the
transport's URL as a prefix.

This is fixed by setting the transport's URL to the canonical URL that is
computed a few lines earlier.
2017-04-18 13:32:28 -04:00
Chris Murphy a02ddc8cd4 Allow for non-SSL access (#15)
* Allow for non-SSL access

* Reuqire --insecure option to use http protocol

* Fixed lint error

* Added --force-non-ssl option. Also moved check to allow handling of docker config
2017-04-04 10:12:36 -04:00
Stefan Majer 827d869f0c RFC: some enhancements for registries with lots of images (#17)
* Add flag to trust ssl certificates signed by unknown authority

* Use registry http client instead of pure http client

* Add Bearer token only if required

* Create clair client instance with configurable debug option

* Limit number of parallel vuln scann´s to 20 to reduce load

* No need to throttle anymore because parallism is limited

* Make number of workers configurable

* During first run do not create clair vulns report details
2017-04-04 10:11:24 -04:00
Jess Frazelle 46640512e7
update deps
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-04 22:10:04 -08:00
Jess Frazelle 7c408e403d
travis
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-01 15:44:49 -08:00
Jess Frazelle cd61a71fad
fix v2 manifest fetch
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-01 15:39:18 -08:00
Jess Frazelle c32b972ee4
fix insecure flag
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-02-13 11:42:33 -08:00
Jess Frazelle 0df8f5288b
Merge branch 'make-tls-verify-optional' of https://github.com/majst01/reg into majst01-make-tls-verify-optional
* 'make-tls-verify-optional' of https://github.com/majst01/reg:
  Fix method signature
  Make tls verification optional
2017-02-13 11:38:10 -08:00
Jess Frazelle 417456fd7c
fix import paths
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-02-13 11:36:09 -08:00
Stefan Majer 89031c4ab0 Make tls verification optional 2017-02-13 10:32:36 +01:00
Stefan Majer 73fb466d8c Paging link can contain format characters, unescape them first 2017-02-13 10:31:53 +01:00
Jess Frazelle 3075c58bc1
add vulns command
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-02-12 18:45:47 -08:00
Jess Frazelle f30057f2db
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-19 22:38:36 -08:00
Jess Frazelle e451b94f87
update
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-19 22:36:05 -08:00
Jess Frazelle e33d3e5526
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-19 21:13:34 -08:00
Jess Frazelle 4a8d8107ef
domain fixes 2016-12-19 19:34:37 -08:00
Jess Frazelle 162757c7b7
fix delete
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-09-20 18:49:25 -07:00
Jess Frazelle 5bb5c33bdf
cleanup
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-09-20 18:16:34 -07:00
Jess Frazelle 1af74c42c2
fixes
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-09-05 19:44:19 -07:00
Jess Frazelle b5406104f2
prepare reg for junk
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-08-12 22:23:13 -07:00