Skip to main content
NetApp Knowledge Base

Is it safe to remove the client and secret ID from EC2 User Data for the Console Agent?

Views:
25
Visibility:
Public
Votes:
0
Category:
netapp_console
Specialty:
ds_cvo
Last Updated:

Applies to

  • NetApp Console
  • Amazon Web Services (AWS)
  • EC2 user-data

Answer

  • Yes, it is safe to delete the Client Secret set on the EC2 user-data for the AWS NetApp Console Agent.
  • This IAM Client Secret is only used ​for the initial registration of the NetApp Console Agent on tenancy post deployment.

Partner Notes

partnerNotes_text

Additional Information

Below procedure can be followed in the event the Client Secret needs to be deleted for Security Compliance:

Internal Notes

WARNING: These steps should be performed only after consulting an Escalation Engineer.

 

The Console calls the agent-mgmt API (POST /agents-mgmt/organizations/{orgId}/agents), which registers the agent with Auth0. Auth0 returns a clientId and  clientSecret.

These credentials are passed into the EC2 instance's user data so the Service Manager (SM2) can read them on first boot without any manual login or file transfer.

SM2 reads the values, writes them into config.json (with the client secret encrypted as enc_clientSecret), generates a JWT service token using the clientId/clientSecret pair, and calls the agent-mgmt PATCH API to update callback URIs and finalize registration.

Once registration completes, the OCCM container comes up (~10–15 min), and the agent is fully operational. 

The userdata can be removed after agent registration process complete (seen on audit timeline) and occm container comes up.

SM2 secrets are not rotated.

Once SM2 reads the client ID and client secret from user data during initial provisioning, it writes them into /opt/application/netapp/service-manager-2/config.json (with the secret stored as enc_clientSecret in encrypted form). From that point forward, the agent uses config.json exclusively to generate JWT service tokens for API calls — it does not re-read EC2 user data

In a lab environment, removing the client and secret ID from the EC2 User Data in AWS Console did not look to have any significant impact, consult EE before removal if removal is necessary.
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.