...
A new key store is created when the action setSecureProperty
is run for the first time. For example:
Code Block |
---|
|
$ acli system setSecureProperty --name my.secret --secret -
Enter secure value: <secret prompt>
Secure properties file does not yet exist. Creating...
Enter new secure properties password: <password prompt>
Confirm secure properties password: <passwordprompt>
Remember your password, it cannot be recovered!
Secure properties file created.
Value for key 'foo' set in secure properties file. |
...
Set a secure property
Code Block |
---|
|
$ acli system -a setSecureProperty --name my-jira.token --secret -
Enter secure properties password: <password prompt>
Value for key 'my-jira.token' set in secure properties file. |
Get a secure property
Code Block |
---|
|
$ acli system -a getSecureProperty --name my-jira.token
Enter secure properties password: <password prompt>
Secure property 'foo' exists in the secure properties file. |
Get a secure property with value
Code Block |
---|
|
$ acli system -a getSecureProperty --name foo --outputFormat 2
Enter secure properties password: <password prompt>
Value of secure property 'my-jira.token': <your token value> |
Get secure property list with values
Code Block |
---|
|
$ acli system -a getSecurePropertyList --outputFormat 2
Enter secure properties password:
2 secure properties in list
"Name","Value"
"buz","qux"
"foo","foo" |
Use a secure property in acli.properties
Code Block |
---|
|
my-jira = jiracloud -s https://myjira.atlassian.net -u me@example.com -t ${secret:my-jira.token} |
Remove a secure property
Code Block |
---|
|
$ acli system -a removeSecureProperty --name my-jira.token
Enter secure properties password: <password prompt>
Enter CONFIRM to permanently remove the secure property 'my-jira.token': CONFIRM
Removed value for key 'my-jira.token' from secure properties file.
Deleted empty keystore file. |
Clear all secure properties
Code Block |
---|
|
$ acli system -a clearSecureProperties
Enter secure properties password: <password prompt>
Enter CONFIRM to permanently clear all secure properties (CANNOT be undone): CONFIRM
Secure properties cleared. |
Import secure properties
Code Block |
---|
|
$ acli system -a importSecureProperties -f import.keystore
Enter secure properties password: <destination password prompt>
Enter inbound secure properties password: <source password prompt>
Imported 0 secure properties.
Ignored: buz,foo. Use --replace to overwrite existing values. |
Import select secure properties (via inclusion) with overwrite
Code Block |
---|
|
$ acli system -a importSecureProperties -f import.keystore --include '(?i)^F' --replace
Enter secure properties password: <destination password prompt>
Enter inbound secure properties password: <source password prompt>
Imported 1 secure property: foo. |
Export select secure properties (via exclusion) with overwrite
Code Block |
---|
|
$ acli system -a importSecureProperties -f export.keystore --exclude '(?i)^F' --replace
Enter secure properties password: <source password prompt>
Enter outbound secure properties password: <destination password prompt>
Exported 1 secure property: buz. |