Commit graph

60 commits

Author SHA1 Message Date
Jess Frazelle d959057b30
fix staticcheck
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2019-01-02 11:55:23 -05:00
Jess Frazelle 067711f90e
fix getting official registry manifest
closes #164

Signed-off-by: Jess Frazelle <acidburn@github.com>
2019-01-02 11:19:56 -05:00
Jessica Tracy 32589e90be Passing context (#163)
* passing context in layer calls

* more contexting

* clair folder and context in handlers

* fixed token transport to reuse request context

* tests

* taking out context pass in server handlers
2018-12-29 12:09:10 -05:00
Jess Frazelle 4a4d0e5d10
fix api;
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-11-14 10:18:18 -05:00
Jess Frazelle 3b848ce686
updates and fixes
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-11-14 10:09:47 -05:00
alexander zillion db513b737e add --auth-url parameter (#90) (#105)
Signed-off-by: Alex Zillion <alex@alexzillion.com>
2018-11-14 10:06:30 -05:00
Julien 383e4f7d48 Add force-non-ssl to registry operations (#102) 2018-11-14 10:02:41 -05:00
Jess Frazelle 695602b303
start of generating assets
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-09-17 15:08:48 -04:00
Jess Frazelle bd1c391295
cleanup and bindata
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-07-16 04:28:44 -04:00
Jess Frazelle 298ecf1510
move server under main command closes #106
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-07-15 19:05:12 -04:00
Jess Frazelle 58cebbaa58
switch to new cli package and update generated files and deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-07-15 17:48:35 -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 9534afc84a
Merge branch 'pr-93'
* pr-93:
  Add option to fetch Docker-Content-Digest
  Fix typo
2018-06-06 14:18:54 -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 3198679b1e
Merge branch 'pr-46'
* pr-46:
  Add configurable timout for HTTP requests
2018-06-06 12:52:47 -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
Manuel Rüger 80cac4cc4b Add option to fetch Docker-Content-Digest
Code reused from manifest.go; this one is helpful to figure out if tags
have changed
2018-06-04 23:27:26 +02:00
Matt Vinall dd16b5bfef add EnvVar to --registry switch (#81) (#82)
allows people to setup default registry in .bashrc and avoid typing it every time
2018-03-19 18:18:01 +03:00
Jess Frazelle 1c31bc4260
move repo from jessfraz to genuinetools and update paths
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-11 11:48:04 -04:00
Jess Frazelle 747cc152ca
simplify code;
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 11:31:34 -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
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 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 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
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
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 758d45bea2
update api
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 17:33:26 -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 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
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
Petter Hassberg 2802ba9eb9 Add configurable timout for HTTP requests
So that requests taking more than one minute does not timeout.
2017-10-20 15:26:54 +02: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 bd56ba0eff
actually return errors
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-06-05 14:20:42 -04:00
Stefan Majer 51f221a4d5 Merge branch 'master' of https://github.com/jessfraz/reg into dynamic-frontend 2017-04-24 16:16:12 +02:00
Jimmy Zelinskie ba12ae6e91 clair: add the additional legacy empty layer (#24)
This layer was used in docker prior to being able to support truly empty
layers. It is a 1k tarball of 0s.
2017-04-21 15:38:05 -04:00
Stefan Majer 369b50e95c Refactor NewClairLayer to a single place 2017-04-06 12:57:22 +02:00
Stefan Majer fd7fe220e0 First draft of a dynamic frontend, display of vulnerabilities is still not implemented. 2017-04-06 12:41:43 +02: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
Joonas Bergius 20f9149191 fix typo provate => private (#13) 2017-03-17 09:37:24 -07:00
Jess Frazelle 3a9d1e74ad
add v1 flag
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-04 23:39:09 -08:00
Jess Frazelle 46640512e7
update deps
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-04 22:10:04 -08:00
Jess Frazelle c32b972ee4
fix insecure flag
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-02-13 11:42:33 -08:00
Stefan Majer 89031c4ab0 Make tls verification optional 2017-02-13 10:32:36 +01:00
Jess Frazelle f25057024f
add vulns command
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-02-12 19:31:34 -08: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 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