Frank Jogeleit
09bd74d534
use scope resource if result resources are not defined
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-02-18 11:32:22 +01:00
Frank Jogeleit
99c390a24f
configure worker count
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-02-13 17:17:06 +01:00
Charles-Edouard Brétéché
8ed04abe48
fix: simplify cache management ( #261 )
...
* fix: simplify cache management
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-02-09 11:32:43 +01:00
Frank Jogeleit
580fca1ac6
use the in memory cache instance
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-02-08 16:25:30 +01:00
Frank Jogeleit
e10085b510
Merge pull request #259 from eddycharly/defer-unlock
...
chore: use defer to unlock when possible
2023-02-08 15:55:16 +01:00
Frank Jogeleit
f3b980bfd3
Implement MetadataClient ( #257 )
...
* Implement MetadataClient
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-02-08 15:53:59 +01:00
Charles-Edouard Brétéché
3d72f52d84
chore: store nil in the cache as we don't need the value
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-02-08 15:46:17 +01:00
Charles-Edouard Brétéché
98dc238bac
chore: use defer to unlock when possible
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-02-08 15:40:18 +01:00
Charles-Edouard Brétéché
dd3cdcf179
refactor: cache lib
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-02-08 15:12:48 +01:00
Frank Jogeleit
6c2330495c
Reduce mapping ( #256 )
...
* replace internal structs
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-02-07 11:21:48 +01:00
Frank Jogeleit
a919cf9f0b
add source to policy_report table
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-01-22 11:19:33 +01:00
Frank Jogeleit
99b1f380f0
fix mapping logic for report labels
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-01-21 10:39:30 +01:00
Frank Jogeleit
91b4ba064c
fix mapping logic for report labels
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-01-21 10:36:45 +01:00
Frank Jogeleit
676c8bf874
Policy Report API ( #251 )
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-01-20 13:24:42 +01:00
fengshunli
cbc5e251b6
format comment format
...
Signed-off-by: fengshunli <1171313930@qq.com>
2023-01-19 10:28:56 +08:00
Frank Jogeleit
dde06864d6
Merge pull request #243 from fengshunli/cmt
...
format comment format
2023-01-18 08:59:49 +01:00
fengshunli
3624b2c233
remove obsolete code and reuse the same object
...
Signed-off-by: fengshunli <1171313930@qq.com>
2023-01-18 11:25:32 +08:00
fengshunli
71377bf21b
format comment format
...
Signed-off-by: fengshunli <1171313930@qq.com>
2023-01-18 11:18:45 +08:00
Frank Jogeleit
b793b90d60
Merge branch 'main' of github.com:kyverno/policy-reporter
2023-01-17 11:37:11 +01:00
Frank Jogeleit
318f2e9570
log label conversion issues
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-01-17 11:37:01 +01:00
Frank Jogeleit
a105636c15
Search also filter for Resource Kind
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2023-01-15 12:03:30 +01:00
Frank Jogeleit
e17f2f7078
Fix label generation for multiple custom labels
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-12-16 15:14:10 +01:00
Frank Jogeleit
4c50043c88
Update Dependencies
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-12-04 15:02:16 +01:00
Frank Jogeleit
48926a77d2
implement report label filter ( #230 )
...
* implement report label filter
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-12-04 13:11:55 +01:00
Frank Jogeleit
5d1b9e4c1f
Support S3 PathStyle configuration
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-11-10 11:11:29 +01:00
Frank Jogeleit
3db2765f90
Fix CustomFields mapping
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-10-27 13:07:49 +02:00
Frank Jogeleit
573a1108c7
Add customFields to missing targets
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-10-17 10:31:11 +02:00
Frank Jogeleit
0950711bd2
Fix duplicated ID persist issue
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-10-05 22:26:26 +02:00
Frank Jogeleit
713176e3f5
Support custom certs for targets
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-09-19 12:35:55 +02:00
nobletrout
8eba17e8f3
Add UI host env var ( #203 )
...
* add ui.host as env var
Signed-off-by: nobletrout <nobletrout@gmail.com>
2022-09-12 19:09:31 +02:00
Frank Jogeleit
b22769de6f
Target secretRef ( #199 )
...
* Refactor Targets: Use Option structs
* Read sensitive information from secrets
* Update Helm Chart
* Update Go Version in CI workflow
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-09-12 00:12:00 +02:00
nobletrout
42a0bc0143
add slack as env var ( #196 )
...
* Update Changelog
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
Signed-off-by: nobletrout <nobletrout@gmail.com>
* add slack as env var
add .go-version to .gitignore
Signed-off-by: nobletrout <nobletrout@gmail.com>
* missed an "h"
Signed-off-by: nobletrout <nobletrout@gmail.com>
* add slack as env var
add .go-version to .gitignore
Signed-off-by: nobletrout <nobletrout@gmail.com>
* missed an "h"
Signed-off-by: nobletrout <nobletrout@gmail.com>
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
Signed-off-by: nobletrout <nobletrout@gmail.com>
Co-authored-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-09-11 21:55:35 +02:00
Frank Jogeleit
a3d9efb8f6
Add result timestamp to results API
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-09-06 17:12:13 +02:00
Frank Jogeleit
38c8d450dc
Update condition
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-09-06 14:22:57 +02:00
Frank Jogeleit
aed056cc34
Add custom fields to Slack notifications
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-09-06 13:26:37 +02:00
Frank Jogeleit
faf1c6d2c3
Add HTTP Basic Auth support for Elasticsearch
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-09-04 13:14:20 +02:00
Frank Jogeleit
86464d8081
Fix priority mapping for uppercase policies
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-08-27 11:39:00 +02:00
Frank Jogeleit
323eb9f4db
Configure SMTP as secret
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-08-26 18:27:08 +02:00
Frank Jogeleit
3359bb125c
Merge pull request #183 from kyverno/email-logging
...
Add additional logging
2022-08-25 15:48:31 +02:00
Frank Jogeleit
fff8ed6735
Update logging
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-08-25 15:24:29 +02:00
Frank Jogeleit
cabeee1c4a
Add new severities and update Chart
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-08-25 13:23:03 +02:00
Frank Jogeleit
0b9f1262a1
Leader election ( #175 )
...
* leaderelection
* Helm Chart updates
* SkipTLS for MS Teams
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-25 17:34:41 +02:00
Frank Jogeleit
7d9f35b294
Add Loki Path config to change deprecated API usage
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-21 19:42:31 +02:00
Frank Jogeleit
a319fea6d2
simplify vaildate.Namespace
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-07 13:54:32 +02:00
Frank Jogeleit
05043bd63a
Fix naming
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-06 13:57:52 +02:00
Frank Jogeleit
05a5b786c0
Implement metrics modes ( #166 )
...
Implement custom metric labels
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-06 13:42:11 +02:00
Frank Jogeleit
dd4629ae4f
Refactor filter logic ( #165 )
...
* Refactor filter logic
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-05 15:07:46 +02:00
Frank Jogeleit
a5b728a6a2
fallback rule mapping to message
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-04 15:42:25 +02:00
Frank Jogeleit
924b502c7b
move disableClusterReport configuration to filter
...
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-04 14:24:49 +02:00
Frank Jogeleit
3e443f126a
Email Reports ( #164 )
...
* add E-Mail reports
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2022-07-03 23:49:16 +02:00