Page History
...
Command | Object | Documentation |
---|---|---|
export / import | Any | JS7 - Inventory Export and Import |
sign import-deploy | Controller objects such as Workflows | JS7 - Secure Deployment of Scheduling Objects |
deploy / revoke | JS7 - Deployment of Scheduling Objects | |
release / recall | Automation objects such as Schedules | |
store / remove | Any | Store object to inventory / move objects to trash |
restore / delete | Any | Restore removed objects / delete removed objects from trash |
revalidate | Any | Revalidate objects from inventory folder |
encrypt / decrypt | NoneEncrypt | / decrypt strings and filesJS7 - Encryption and Decryption |
The script is offered for download and can be applied for frequently used deployment operations:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# common options for connection to the JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # restore object from trash, using suffix for restored objectd ./deploy-workflow.sh restore "${request_options[@]}" \ --path=/ap/NewFolder01/NewWorkflow01 --type=WORKFLOW --new-path=/ap/NewFolder01/NewWorkflow01 --suffix=restored # delete object from trash ./deploy-workflow.sh delete "${request_options[@]}" \ --path=/ap/NewFolder01/NewWorkflow01 --type=WORKFLOW # delete objects from trash by folder ./deploy-workflow.sh delete "${request_options[@]}" \ --folder=/ap/NewFolder01 |
...
Using encrypted Passwords
- Secrets can be encrypted and decrypted as explaind with JS7 - Encryption and Decryption.
- Encryption/decryption require related Java libraries that are available from the
./lib
sub-directory. - For creation of a Private Key and Certificate see JS7 - How to create X.509 Encryption Keys.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# create Private Key openssl ecparam -name secp384r1 -genkey -noout -out encrypt.key # create Certificate Signing Request, adjust the subject to your needs openssl req -new -sha512 -nodes -key encrypt.key -out encrypt.csr -subj "/C=DE/ST=Berlin/L=Berlin/O=SOS/OU=IT/CN=Encrypt" # create Certificate, adjust the validity period to your needs openssl x509 -req -sha512 -days 1825 -signkey encrypt.key -in encrypt.csr -out encrypt.crt -extfile <(printf "keyUsage=critical,keyEncipherment,keyAgreement\n") # encrypt athe secret such as a passwordpassword "root" using the Certificate, the encryption result will be returned and will look like: enc:BEXbHYa... MY_JS7_PASSWORD=$(./deploy-workflow.sh encrypt --in="root" --cert=encrypt.crt) # optionsstore the forenvironment connectionvariable to your the JS7 REST API can specifyprofile ($HOME/.bash_profile or similar) to make the encryption encrypted password available to the shell # export MY_JS7_PASSWORD=enc:BEXbHYa... # options for connection to the JS7 REST API can specify the encryption result as password and the Private Key for decryption request_options=(--url=http://localhost:4446 --user=root --password="enc:BEXbHYa...$MY_JS7_PASSWORD" --key=encrypt.key --controller-id=controller) # for example, when exporting workflows the Private Key is used to decrypt the password for access to the REST API on-the-fly ./deploy-workflow.sh export "${request_options[@]}" --file=export.zip --path=/ap/ap3jobs,/ap/Agent/apRunAsUser --type=WORKFLOW # decrypt an encrypted secret using the Private Key ./deploy-workflow.sh decrypt --in="enc:BEXbHYa..." --key=encrypt.key |
Resources
- API
- Controller Deployment Operations
- Controller Status Operations
- Workflow Status Operations
- Identity Service Deployment Operations
- JOC Cockpit Status Operations
...
Overview
Content Tools