rtfctl apply secure-property --key <key> --value <value> --app-namespace <app_namespace> --namespace <rtf_namespace>
Protecting Mule App Property Values Using RTFCTL
Secure application properties are added in the Runtime Fabric cluster locally, stored securely, and scoped per environment. These properties are accessible in unencrypted form by Mule applications deployed in the scoped environment as custom properties.
Runtime Fabric protected properties always take precedence over application-level properties.
Install rtfctl
The rtfctl utility is required to manage protected properties on Runtime Fabric locally. Follow the steps to install rtfctl before continuing with managing secure properties.
Set Secure Properties
-
Log into a controller node where
rtfctlis installed. -
Run the following command to set a secure property to the Runtime Fabric under a specific environment, substituting the placeholder fields:
-
<key>: The key for the secure property used in the Mule application to reference the value.
-
<value>: The value for the secure property to store.
-
<app_namespace>: The actual namespace to scope this secure property to. Only applications deployed to this namespace have access to this secure property.
-
For customized namespaces, use the actual namespace name.
-
-
<rtf_namespace>:System namespace scope, defaults to
rtf.
-
|
When applying secure properties to applications deployed in customized namespaces, you must specify the actual namespace name in the +
|
View Secure Properties
-
Log into a controller node where
rtfctlis installed. -
Run the following command to view the secure properties applied to the Runtime Fabric under a specific environment, substituting the placeholder fields:
sudo ./rtfctl get secure-properties -n <environment_id>-
<environment_id>: The Anypoint environment ID to list the secure properties under.
-
Access Secure Properties
You can access secure properties from inside your Mule application using $key, which is the key provided in the rtfctl apply command. You can retrieve the key the same way you retrieve any other configuration property.
Remove Secure Properties
-
Log into a controller node where
rtfctlis installed. -
Run the following command to remove a secure property from the Runtime Fabric in a specific namespace:
sudo ./rtfctl delete secure-property <my_key> -n <namespace>-
<my_key>: The key used in the Mule application to reference the secure property.
-
<namespace>: The namespace in which the secure property applies.
-



