diff --git a/static/css/directives/ui/vulnerability-priority-view.css b/static/css/directives/ui/vulnerability-priority-view.css index 88dd4d27c..2fc15d203 100644 --- a/static/css/directives/ui/vulnerability-priority-view.css +++ b/static/css/directives/ui/vulnerability-priority-view.css @@ -13,7 +13,11 @@ } .vulnerability-priority-view-element.High, -.vulnerability-priority-view-element.Critical, -.vulnerability-priority-view-element.Defcon1 { +.vulnerability-priority-view-element.Critical { color: #D64456; } + +.vulnerability-priority-view-element.Defcon1 { + color: black; + font-weight: bold; +} diff --git a/static/directives/repo-view/repo-panel-tags.html b/static/directives/repo-view/repo-panel-tags.html index c257f2c07..1b7c04726 100644 --- a/static/directives/repo-view/repo-panel-tags.html +++ b/static/directives/repo-view/repo-panel-tags.html @@ -18,6 +18,13 @@
+
+ One or more of your tags has an extremely critical vulnerability which should be addressed immediately: + + {{ vuln.ID }} + +
+
diff --git a/static/js/directives/repo-view/repo-panel-tags.js b/static/js/directives/repo-view/repo-panel-tags.js index 582ed3cdc..38615b831 100644 --- a/static/js/directives/repo-view/repo-panel-tags.js +++ b/static/js/directives/repo-view/repo-panel-tags.js @@ -36,6 +36,8 @@ angular.module('quay').directive('repoPanelTags', function () { $scope.showingHistory = false; $scope.tagsPerPage = 25; $scope.imageVulnerabilities = {}; + $scope.defcon1 = {}; + $scope.hasDefcon1 = false; var setTagState = function() { if (!$scope.repository || !$scope.selectedTags) { return; } @@ -173,6 +175,11 @@ angular.module('quay').directive('repoPanelTags', function () { }; resp.data.Vulnerabilities.forEach(function(v) { + if (VulnerabilityService.LEVELS[v.Priority].index == 0) { + $scope.defcon1[v.ID] = v; + $scope.hasDefcon1 = true; + } + if (VulnerabilityService.LEVELS[v.Priority].index < highest.index) { highest = { 'Priority': v.Priority,