I have a Google Cloud Compute Engine Instance Template with a Startup Script.
In the startup script the server generates a certificate. After generating the certificate it sends a message to an API to tell a central system about the certificate. The request looks like this:
curl --location 'https://my-side.com/hello?hostname=$hostname' \ --header 'Authorization: SUPER_SECRET_API_KEY' The API key is stored as raw text in the Startup Script. Is this OK, or should it be moved to example secret store? If so, then how can I read the API key in the Startup Script?