Commit graph

92 commits

Author SHA1 Message Date
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
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
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 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 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
Jess Frazelle e3777763fb
cleanup staticcheck errors
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 13:39:02 -05:00
Patrick Uiterwijk 78e58d7811 Add flag to only generate registry overview once (#29)
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-06-27 16:43:05 -04:00
Jess Frazelle 2648f96229
update screenshot
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-06-05 17:09:16 -04:00
Jess Frazelle e00bf73cdf Add files via upload 2017-06-05 17:08:41 -04:00
Jess Frazelle 882e590595
fix
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-06-05 14:07:30 -04:00
Jess Frazelle e9dc83b69c
add back in last updated
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-06-05 13:26:51 -04:00
Stefan Majer e98fd4918c Fix repo with slashes, no vulnerability scan on tags page (#25)
* Fix for slashes in repo names

* Make routing work with repos which have slashes

* Do not calculate vulnerabilities on tags
2017-04-25 09:45:02 -04:00
Jess Frazelle e1d409fefd
fix javascript
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 15:03:03 -04:00
Jess Frazelle 1d006c17ef
fix static;
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 14:49:48 -04:00
Jess Frazelle 113b145d26
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 14:40:21 -04:00
Jess Frazelle abc0d51801
index with interval
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 14:39:00 -04:00
Jess Frazelle 183c0d5ba3
remove unused
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 14:23:28 -04:00
Jess Frazelle e7825db8a0
fix static
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 14:14:22 -04:00
Jess Frazelle f11b64bf0e
remove unneeded vars
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 14:09:56 -04:00
Jess Frazelle 32fc8ddc1c
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 14:08:43 -04:00
Jess Frazelle a6ba091b4a
cleanup and remove echo dependency
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-24 13:52:31 -04:00
Stefan Majer b8cc50b46a Remove code duplicates 2017-04-24 18:20:58 +02:00
Markus Fensterer 02503f91d9 load BadVulns count with AJAX calls 2017-04-19 15:17:33 +02:00
Stefan Majer 616d466f64 Satisfy golint 2017-04-07 19:26:53 +02:00
Stefan Majer 860b60c624 Always point to the vulnerabilities 2017-04-07 11:00:56 +02:00
Stefan Majer c0bb9b026c cleanup and reusage of error messages 2017-04-06 14:45:04 +02:00
Stefan Majer 156d266736 Remove now unneeded templates 2017-04-06 13:34:37 +02:00
Stefan Majer eae3f5ee67 Show vulnerabilities 2017-04-06 13:33:06 +02:00
Stefan Majer 5c7c3f1ed7 Fix searching for new dynamic frontend 2017-04-06 13:32:33 +02: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
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
Stefan Majer d91bf05217 Add flag to trust ssl certificates signed by unknown authority (#16) 2017-03-31 03:11:18 -06:00
Yves Brissaud e8a0e8958a Do not panic if vulns/layout not found (#14) 2017-03-24 16:04:51 -07:00
Jess Frazelle e4c5813dff
new page theme for vulnerability reports
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-22 11:34:50 -07:00
Jess Frazelle 6d8d8821dd
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-21 17:01:10 -07:00
Jess Frazelle 4d4e79fde5
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-21 16:51:56 -07:00
Jess Frazelle c665c06785
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-21 16:41:43 -07:00
Jess Frazelle f504f1306f
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-21 16:33:58 -07:00
Jess Frazelle 0c96eab540
new template
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-21 15:47:47 -07:00
Jess Frazelle 8850850631
cleanup
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-21 15:02:31 -07:00
Jess Frazelle 42a15c0ee9
do not hard fail on manifest fail
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-21 14:59:22 -07:00
Joonas Bergius 20f9149191 fix typo provate => private (#13) 2017-03-17 09:37:24 -07:00
Jess Frazelle ec0de5f029
fix moveFile
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-15 09:26:19 -07:00
Patrick Uiterwijk c082ae5104
Implement moveFile to move the generated index
os.Rename only works across the same mountpoint, since it creates a new hardlink and
unlinks the old one.
Since we generated the index in /tmp, which is most likely not the final endpoint, this
often does not work.

Fixes: #8
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-03-13 14:24:30 +00:00
Patrick Uiterwijk 399112fe36
Actually report errors with moving of creating static index
Turns out that cli only exits when the error is created with cli.NewExitError.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-03-09 23:51:03 +00:00
Jess Frazelle 94d0af58c1
wait group wait clair
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-03-09 10:20:17 -08:00