This document describes the functionality provided by the XL Deploy Argos Plugin, an interface to the Argos Software SupplyChain Notary
The XLD Argos plugin allows for verifying on the Argos Service that the Deployment Package is created during a valid process. The verfication can be done on the Deployment Package or during every deployment.
- Do an Argos verification on a Deployment Package
- Verify a Deployment Package before deployment.
- XLD Server 8.0+
Place the 'xld-argos-plugin-<version>.xlpd' file into your SERVER_HOME/plugins directory.
Place the file 'argos.properties' into your SERVER_HOME/conf directory. With at least the property argos.service.base.url
.
argos.service.base.url=https://<argos service hostname>/api
The following properties can be set in the argos.properties
file.
Property | Default | Possible Values | Description |
---|---|---|---|
argos.service.base.url | http://localhost:8080/api | Url of the Argos Service | |
argos.service.actuator.uri | actuator/health | uri to check status of Argos Service | |
argos.verification.status | DISABLED | DISABLED | do no verification, if not enabled on the Environment |
ENABLED | do always a verification, independent of Environment setting | ||
argos.action.on.invalid | NONE | NONE | No action on invalid verification of deployment package |
WARN | Warn on invalid verification of deployment package | ||
ABORT | Abort deployment on invalid verification of deployment package | ||
xld.base.url | http://localhost:4516/deployit | Url for this XL Deploy instance to do REST calls | |
argos.xld.client.conf.id | Configuration/config/administration/argos/xldconfig | argos.xldeploy Ci with XL Deploy credentials | |
argos.result.prefix | Package: %s | log message prefix | |
argos.abort.template | \ has an invalid Argos Notary Verification, abort | log message on abort | |
argos.warn.template | \ has an invalid Argos Notary Verification, this is a warning | log message on warn | |
argos.none.template | \ has an invalid Argos Notary Verification but an action is not defined | log message on no action | |
argos.valid.template | \ is valid according Argos Notary Verification | log message prefix |
For the verification of the Deployment Package an an Argos Service account is needed. The account should be created on the same pranch as the SupplyChain
. During this creation a keyid
and a passphrase
are presented, these are needed for the configuration in XLDeploy.
Choose in the Environments
branch in XLDeploy for New
> argos
> NonPersonalAccount
Fill in a relevant name and the keyid
and the passphrase
of the account in the Argos Service
On an Application
for which the Deployment Packages
should be verified the SupplyChain
name in the Argos Service should be defined and the Non Personal Account
which should do the verification.
The SupplyChain name should be qualified in the Gradle
way ([group name]:[supply chain name])
On the Environments
it is possible to enable or disable the verification during deployment. The setting in the configuration file argos.properties
takes precedence over this setting at least if that setting has a higher level.
Setting | Default | Possible Values | Description |
---|---|---|---|
Verify with Argos | DISABLED | DISABLED | do no verification, if not enabled globally |
ENABLED | do always a verification | ||
Action On Invalid | NONE | NONE | No action on invalid verification of deployment package |
WARN | Warn on invalid verification of deployment package | ||
ABORT | Abort deployment on invalid verification of deployment package |
It is possible to check the verification with a task on the Deployment Package
.
If verification is enabled, a verification will be done as the first step during every deployment, except for NOOP
and DESTROY
operations.
| # [Phased plan]
| # [Plan phase] Deploy
| * Deploy on localhost
| -------------------
| 1. ( 0) - Argos Notary Verification Step (step: ArgosVerificationStep, rule: com.xebialabs.deployit.community.argos.ArgosVerificationStepGenerator.contribute)
| 2. ( 10) - Stop tomcat (step: ScriptExecutionStep, rule: com.xebialabs.deployit.plugin.generic.container.LifeCycleContributor.restartContainers)
| 3. ( 60) - Create war settings in argos-test-app.xml on localhost (step: TemplateArtifactCopyStep, rule: tomcat.WarModule.executeCreate_CREATE)
| 4. ( 70) - Create argos-test-app.war on localhost (step: ArtifactCopyStep, rule: tomcat.WarModule.executeCreate_CREATE)
| *checkpoint* CREATE Infrastructure/argos/tomcat/tomcat/localhost/argos-test-app.war
| 5. ( 90) - Start tomcat (step: ScriptExecutionStep, rule: com.xebialabs.deployit.plugin.generic.container.LifeCycleContributor.restartContainers)
| # [Plan phase]
| * Register changes for argos-test-app
| -----------------------------------
| 1. (100) - Register deployeds (step: RepositoryUpdateStep, rule: null)