fdo-rs / fdo-operator

An OpenShift operator for managing FIDO Device Onboard (FDO) servers
Apache License 2.0
4 stars 2 forks source link

Create ServiceInfo files configuration from annotated ConfigMaps #15

Closed empovit closed 1 year ago

empovit commented 1 year ago

Allow a user to pre-populate the content of ServiceInfo files by creating ConfigMaps even before creating an instance of the FDOOnboardingServer (ServiceInfo API server). Annotating the ConfigMaps with the required pieces of information - that is the permission, destination path, and filename (in case of multiple files in a ConfigMap) - relieves the user from manually entering this configuration into the CR. Using ConfigMaps also makes it easier to verify that a file exists before mounting it into the server pod. The downside is the size limitation of a ConfigMap, but for now we'll assume that onboarding files are small, and all the heavy lifting is left to the management platform once a device has been onboarded.

empovit commented 1 year ago

/cc @fabiendupont @mresvanis

mresvanis commented 1 year ago

/lgtm