-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
162 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/ploigos/params/ExistingContainerImageScanWorkflowParams.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package ploigos.params | ||
|
||
import ploigos.params.UserServiceWorkflowParams | ||
import ploigos.params.ConstantEnvironmentWorkflowParams | ||
|
||
/* All the paramters for existingContainerImageScan* workflows. | ||
*/ | ||
class ExistingContainerImageScanWorkflowParams extends UserExistingContainerImageScanWorkflowParams implements ConstantEnvironmentWorkflowParams { | ||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing container scanning (vulnerability/compliance/etc) step(s) */ | ||
String workflowWorkerImageContainerScanning = null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package ploigos.params | ||
|
||
import ploigos.params.UserServiceWorkflowParams | ||
import ploigos.params.ConstantEnvironmentWorkflowParams | ||
|
||
/* All the paramters for service* workflows. | ||
*/ | ||
class ServiceWorkflowParams extends UserServiceWorkflowParams implements ConstantEnvironmentWorkflowParams { | ||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing app operations, such as unit-test, package, push. | ||
* | ||
* This image is also used for other miscalaneous steps that need a place to run but dont | ||
* need specialized tooling. */ | ||
String workflowWorkerImageAppOperations = null | ||
|
||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing static code analysis step(s). */ | ||
String workflowWorkerImageStaticCodeAnalysis = "ploigos/ploigos-tool-sonar:nightly" | ||
|
||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing container operations (build/push/sign/etc) step(s). */ | ||
String workflowWorkerImageContainerOperations = "ploigos/ploigos-tool-containers:nightly" | ||
|
||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing container scanning (vulnerability/compliance/etc) step(s) */ | ||
String workflowWorkerImageContainerScanning = "ploigos/ploigos-tool-openscap:nightly" | ||
|
||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing deploy step(s). */ | ||
String workflowWorkerImageDeploy = "ploigos/ploigos-tool-argocd:nightly" | ||
|
||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing automated-governance step(s). */ | ||
String workflowWorkerImageAutomatedGovernance = "ploigos/ploigos-tool-autogov:nightly" | ||
|
||
/* Container image to use when creating a workflow worker | ||
* to run pipeline steps when performing validate environment configuration step(s). */ | ||
String workflowWorkerImageValidateEnvironmentConfiguration = "ploigos/ploigos-tool-config-lint:nightly" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package ploigos.params | ||
|
||
/* User parameters shared by all workflows | ||
*/ | ||
class SharedUserWorkflowParams implements Serializable { | ||
/* log any *sh commands used during execution */ | ||
String verbose = 'false' | ||
|
||
/* Path to the Step Runner configuration to pass to the | ||
* Workflow Step Runner when running workflow steps. */ | ||
String stepRunnerConfigDir = '' | ||
|
||
/* Name of the Kubernetes Secret containing the PGP private keys to import for use by SOPS | ||
* to decrypt encrypted Step Runner config. */ | ||
String pgpKeysSecretName = 'jenkins-pgp-private-key' | ||
|
||
/* Kubernetes ServiceAccount that the Jenkins Worker Kubernetes Pod should be deployed with. | ||
* | ||
* IMPORTANT | ||
* --------- | ||
* So that `buildah`/`podman` can perform rootles container operations then this service account | ||
* needs to have access to slightly escalted privilages. | ||
* | ||
* If `workflowWorkerContainerOperationsUsePrivilegeEscalation` is `true` then this | ||
* this Kubernetes ServiceAccount needs to have access (via RoleBinding to Role) | ||
* to a SecurityContextConstraints that allows for `allowPrivilegeEscalation`. | ||
* | ||
* If `workflowWorkerContainerOperationsUsePrivilegeEscalation` is `false` then this | ||
* this Kubernetes ServiceAccount needs to have access (via RoleBinding to Role) | ||
* to a SecurityContextConstraints that allows for the use of the | ||
* `SETUID` and `SETGID` capabilities. | ||
*/ | ||
String workflowServiceAccountName = 'pipeline' | ||
|
||
/* Name of the ConfigMap to mount as a trusted CA Bundle. | ||
* Useful for when interacting with external services signed by an internal CA. | ||
* If not specified then ignored. */ | ||
String trustedCABundleConfigMapName = '' | ||
|
||
/* Kubernetes ConfigMap name containing shared Ploigos configuration file(s). | ||
* | ||
* Typically this would be provided by an infrastrcture or release engineering team so | ||
* that development teams dont have to have duplicate configuration that can be provided | ||
* and shared among multiple teams/projects. | ||
* | ||
* EX: the uri for container image repoistory would be a good thing | ||
* to put in shared config. | ||
*/ | ||
String platformConfigConfigMapName = null | ||
|
||
/* Kubernetes Secret name containing shared Ploigos configuration file(s). | ||
* | ||
* IMPORTANT: Since Kubernetes Secrets are not encrypted it is highly recomended that | ||
* the contents of this Secret be encrypted with SOPS or similar. | ||
* | ||
* Typically this would be provided by an infrastrcture or release engineering team so | ||
* that development teams dont have to have duplicate configuration that can be provided | ||
* and shared among multiple teams/projects. | ||
* | ||
* EX: the usernmae and password for container image repoistory would be a good thing | ||
* to put in shared secret config, assuming crednetials shared with more then one | ||
* team/project. | ||
*/ | ||
String platformConfigSecretName = null | ||
} |
64 changes: 2 additions & 62 deletions
64
src/ploigos/params/UserExistingContainerImageScanWorkflowParams.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.