Commit graph

213 commits

Author SHA1 Message Date
Jess Frazelle ab6c553e6b
update deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:41:43 -05:00
Jess Frazelle 3834c605e5
update deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:32:47 -05:00
Jess Frazelle 72cd07cf34
add more tests
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:14:23 -05:00
Jess Frazelle e55cbf0fa3
add test cases
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 09:50:01 -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 5208643fa8 main/vulns: add fixable group (#67)
- add a new group of "Fixable" vulns
- exit with error on any fixable vulns
- add fixable-threshold parameter
2018-02-21 19:53:27 -05:00
Paweł Prażak 0ba6cefd07 clair: increase HTTP client timeout to 5 minutes (#69)
- allow for big layers (e.g. 500MB) to upload before timing out
2018-02-21 19:53:01 -05:00
Paweł Prażak bd81e2bbf6 utils/auth: support registry URLs with protocol (#68)
- adds the option to pass --reqistry with http:// or https://
  and still benefit from .docker/config.json credentials
2018-02-21 19:52:28 -05:00
soedar 9f7b235849 Use credential store auth if it exists (#23) 2018-02-18 13:18:38 -05:00
Jess Frazelle 3475db4ba4
add coverage to travis
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-02-18 13:02:52 -05:00
Jess Frazelle ac2e616697
fix fmt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-02-18 11:30:38 -05:00
Jess Frazelle 533d292bfb
fix travis
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-02-18 11:24:05 -05:00
Charlie Drage c219ebd48a Fail on missing tags (#60)
If someone we're to go to https://r.j3ss.co/repo/foobar/tags it wouldn't
error out.

This fixes it (by erroring out if no tags are found)
2018-02-18 11:17:53 -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
Paweł Prażak 706e96ba44 clair/vulns: use basic auth whe token is empty (#64)
- solves issue with Clair/AWS ECR combo
2018-02-18 11:16:24 -05:00
Paweł Prażak 44f18c0104 main: add missing preconditions to commands (#63)
- fixed panic when a repository was not provided to:
  delete, manifest, download, vulns
2018-02-18 11:15:56 -05:00
Matt Vinall 22cbb0f2a0 Locking around ls writes to tabwriter (#55)
Fixes #54

Signed-off-by: Matt Vinall <boyvinall@gmail.com>
2018-01-08 20:17:21 -05:00
Jess Frazelle cde5e3cc1f
Bump version to v0.9.0
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-02 03:30:47 -05:00
Jess Frazelle 5fba47839a
make reg-server Dockerfile multi-part build
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-01 18:34:00 -05:00
Jess Frazelle 6ac1119737
fix tests
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-01 18:11:47 -05:00
Jess Frazelle e318917a7f
fix tests
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-01 18:11:17 -05:00
Jess Frazelle 37ba2471c9
update dockerfile to build static properly
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-01 14:45:09 -05:00
Jess Frazelle 10deec9bf7
update generated project files
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-01 13:50:02 -05:00
Jess Frazelle 99efe6c3c9
fix makefile
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-01 13:42:30 -05:00
Jess Frazelle ad6b4d161b
add last updated to tags page as well
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-01-01 12:25:52 -05:00
Jess Frazelle d57e019b47
update delete
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-18 15:17:27 -05:00
Jess Frazelle c1c2894c74
Bump version to v0.8.0
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-14 16:25:33 -05:00
Jess Frazelle 8f413722ca
remove 1.7 from travis
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-14 16:01:36 -05:00
Jess Frazelle fc0e13f689
api version
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-14 15:51:23 -05:00
Jess Frazelle 58c64bf92d
run dep prune
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-14 15:05:19 -05:00
Jess Frazelle 28970ba35f
remove freebsd and solaris
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-14 15:03:10 -05:00
Jess Frazelle d69fce34a7
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-14 14:41:31 -05:00
Jess Frazelle 74ab433f76
update test
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-14 13:21:01 -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 8e5eba8735
switch to dep
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 14:50:55 -05:00
Jess Frazelle 59ee462713
change to dep
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 14:47:45 -05:00
Jess Frazelle 1cff9720a0
Bump version to v0.7.0
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 14:05:42 -05:00
Jess Frazelle 19570a99b3
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 14:05:24 -05:00
Jess Frazelle 54adaea027
update getauthconfig to be more reusable
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:58:05 -05:00
Jess Frazelle 9bb4c0ee3e
Bump version to v0.6.0
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:39:16 -05:00
Jess Frazelle e3777763fb
cleanup staticcheck errors
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:39:02 -05:00
Jess Frazelle 76c9404739
Bump version to v0.5.0
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:34:37 -05:00
Jess Frazelle f69579d5f5
fix
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:34:34 -05:00
Jess Frazelle a1d0f6f9c0
staticcheck
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:33:54 -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
mrfly cb41c7a396 fix a potential tabwriter panic (#49)
use tabwriter's native write for:
- sometimes tabwriter panic with goroutine
- goroutine with fmt.Fprintf cause dirty data
2017-12-08 15:28:06 -05:00
mrfly 29f6d2fab9 make ls faster (#48) 2017-12-07 09:38:49 -06:00