Skip to content

API: Use `oneof` for raw configurations

Nico Haas requested to merge api/raw-configs-as-one-of into main

This MR leverages "oneof" fields in protobuf to use different raw configurations for each collection module. Before, raw configuration was just a generic structpb.Value. Now it is of type isServiceConfiguration_RawConfiguration, e.g. ServiceConfiguration_WorkloadSecurityConfig in the case of the workload collection module.

It improves the read- and usability of the API, in particular for the Dashboard since it now knows how to fill the raw configuration in each case. The collection modules use the generated configs instead of creating on their own ones.

Edited by Nico Haas

Merge request reports