From d4d73a561001348f2ed577f0a02b09289cf24a3c Mon Sep 17 00:00:00 2001 From: Nasir Rabbani Date: Mon, 3 Apr 2023 15:51:37 +0530 Subject: [PATCH 1/2] deprecate k8s admission log UI --- pkg/http-server/assets/webhook-scan-logs.css | 18 ++++++ pkg/http-server/templates/index.html | 59 ++++++++++-------- pkg/http-server/templates/show.html | 65 +++++++++++--------- 3 files changed, 86 insertions(+), 56 deletions(-) diff --git a/pkg/http-server/assets/webhook-scan-logs.css b/pkg/http-server/assets/webhook-scan-logs.css index 5e701fb4c..dfdd0ec87 100644 --- a/pkg/http-server/assets/webhook-scan-logs.css +++ b/pkg/http-server/assets/webhook-scan-logs.css @@ -31,3 +31,21 @@ ul { color: #43e268; font-weight: bold; } + +div.message { + position: relative; + padding: 10px; + padding-left: 35px; + margin: 30px 10px; + box-shadow:0 2px 5px rgba(0,0,0,.3); + background: #BBB; + color: #FFF; + + -webkit-transition: all .5s ease; + -moz-transition: all .5s ease; + -ms-transition: all .5s ease; + -o-transition: all .5s ease; + transition: all .5s ease; +} + +div.message.warning{background: #E74;} \ No newline at end of file diff --git a/pkg/http-server/templates/index.html b/pkg/http-server/templates/index.html index ce20559d0..453dd82eb 100644 --- a/pkg/http-server/templates/index.html +++ b/pkg/http-server/templates/index.html @@ -1,34 +1,39 @@ - - K8s Admission Review Logs + + K8s Admission Review Logs - - - - - + + +
+ + - - - - - - - {{range .}} - - - - - - - {{end}} - -
TimeStatusRequestReasoning
{{.CreatedAt}}{{.Status}}{{.Request}}{{.Reasoning}}
- - - - + Status + Request + Reasoning + + + + {{range .}} + + {{.CreatedAt}} + {{.Status}} + {{.Request}} + {{.Reasoning}} + + {{end}} + + +
+

Deprecation Warning

+

We're sorry to inform that K8s Admission Review Logs UI is deprecated and will be deleted in the upcoming + release.

+
+ + + + diff --git a/pkg/http-server/templates/show.html b/pkg/http-server/templates/show.html index a340b98e2..f1a8a0e65 100644 --- a/pkg/http-server/templates/show.html +++ b/pkg/http-server/templates/show.html @@ -7,34 +7,41 @@ -
- - - - - - - - - - - - - - - - - - - - - - - -
UID{{.UID}}
Status{{.Status}}
Request{{.Request}}
Violations Summary{{.Violations}}
Deniable Violations{{.DeniableViolations}}
-
- - - +
+ + + + + + + + + + + + + + + + + + + + + + + +
UID{{.UID}}
Status{{.Status}}
Request{{.Request}}
Violations Summary{{.Violations}}
Deniable Violations{{.DeniableViolations}}
+
+
+
+

Deprecation Warning

+

We're sorry to inform that K8s Admission Review Logs UI is deprecated and will be deleted in the upcoming + release.

+
+
+ + + From 4714dddfe960584bb851f298a279c5cf22d734dd Mon Sep 17 00:00:00 2001 From: Nasir Rabbani Date: Tue, 4 Apr 2023 09:10:47 +0530 Subject: [PATCH 2/2] whitespace change to re trigger checks --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index a39eb0988..49c32d0dc 100644 --- a/README.md +++ b/README.md @@ -233,4 +233,3 @@ Terrascan is licensed under the [Apache 2.0 License](LICENSE). [![Forkers @tenable/terrascan](https://reporoster.com/forks/tenable/terrascan)](https://github.com/tenable/terrascan/network/members) -