cloud-native-security-inspector icon indicating copy to clipboard operation
cloud-native-security-inspector copied to clipboard

Improvement on InpsectionPolicy resource

Open harshsharma071988 opened this issue 1 year ago • 0 comments

Describe the bug Current behaviour : Currently the assessment object inside InspectionPolicy is scattered and has multiple fields for different exporters. Like OpenSearchEnabled, OpenSearchAddr, OpenSearchUser, OpenSearchPasswd, OpenSearchCert for open search exporter. Similarly for ElasticSearch we have 5 different fields.

Improvement: We can make one object for one exporter and have as many properties as needed inside that. Like openSearch: enabled: addr: user: password: cert: elasticSearch: enabled: addr: user: password: cert:

This way the config would be shorter and easier for people to understand.

Screenshots Below screenshot shows two designs, one is for elasticSearch and openSearch(scattered), another is for governor(one object for one exporter). image

harshsharma071988 avatar Mar 07 '23 08:03 harshsharma071988