Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-20 15:26:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-20 15:26:25 +0300
commita09983ae35713f5a2bbb100981116d31ce99826e (patch)
tree2ee2af7bd104d57086db360a7e6d8c9d5d43667a /app/validators/json_schemas
parent18c5ab32b738c0b6ecb4d0df3994000482f34bd8 (diff)
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'app/validators/json_schemas')
-rw-r--r--app/validators/json_schemas/build_metadata_secrets.json30
-rw-r--r--app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json153
2 files changed, 183 insertions, 0 deletions
diff --git a/app/validators/json_schemas/build_metadata_secrets.json b/app/validators/json_schemas/build_metadata_secrets.json
new file mode 100644
index 00000000000..e745a266777
--- /dev/null
+++ b/app/validators/json_schemas/build_metadata_secrets.json
@@ -0,0 +1,30 @@
+{
+ "description": "CI builds metadata secrets",
+ "type": "object",
+ "patternProperties": {
+ ".*": {
+ "type": "object",
+ "patternProperties": {
+ "^vault$": {
+ "type": "object",
+ "required": ["path", "field", "engine"],
+ "properties": {
+ "path": { "type": "string" },
+ "field": { "type": "string" },
+ "engine": {
+ "type": "object",
+ "required": ["name", "path"],
+ "properties": {
+ "path": { "type": "string" },
+ "name": { "type": "string" }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ }
+}
diff --git a/app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json b/app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json
new file mode 100644
index 00000000000..1154a4c45b8
--- /dev/null
+++ b/app/validators/json_schemas/security_ci_configuration_schemas/sast_ui_schema.json
@@ -0,0 +1,153 @@
+{
+ "global": [
+ {
+ "field" : "SECURE_ANALYZERS_PREFIX",
+ "label" : "Image prefix",
+ "type": "string",
+ "default_value": "registry.gitlab.com/gitlab-org/security-products/analyzers",
+ "value": ""
+ },
+ {
+ "field" : "SAST_EXCLUDED_PATHS",
+ "label" : "Excluded Paths",
+ "type": "string",
+ "default_value": "spec, test, tests, tmp",
+ "value": ""
+ },
+ {
+ "field" : "SECURE_ANALYZER_IMAGE_TAG",
+ "label" : "Image tag",
+ "type": "string",
+ "options": [],
+ "default_value": "2",
+ "value": ""
+ },
+ {
+ "field" : "SAST_DISABLED",
+ "label" : "Disable SAST",
+ "type": "options",
+ "options": [
+ {
+ "value" :"true",
+ "label" : "true (disables SAST)"
+ },
+ {
+ "value":"false",
+ "label":"false (enables SAST)"
+ }
+ ],
+ "default_value": "false",
+ "value": ""
+ }
+ ],
+ "pipeline": [
+ {
+ "field" : "stage",
+ "label" : "Stage",
+ "type": "dropdown",
+ "options": [
+ {
+ "value" :"test",
+ "label" : "test"
+ },
+ {
+ "value":"build",
+ "label":"build"
+ }
+ ],
+ "default_value": "test",
+ "value": ""
+ },
+ {
+ "field" : "allow_failure",
+ "label" : "Allow Failure",
+ "type": "options",
+ "options": [
+ {
+ "value" :"true",
+ "label" : "Allows pipeline failure"
+ },
+ {
+ "value": "false",
+ "label": "Does not allow pipeline failure"
+ }
+ ],
+ "default_value": "true",
+ "value": ""
+ },
+ {
+ "field" : "rules",
+ "label" : "Rules",
+ "type": "multiline",
+ "default_value": "",
+ "value": ""
+ }
+ ],
+ "analyzers": [
+ {
+ "name": "brakeman",
+ "label": "Brakeman",
+ "enabled" : true
+ },
+ {
+ "name": "bandit",
+ "label": "Bandit",
+ "enabled" : true
+ },
+ {
+ "name": "eslint",
+ "label": "ESLint",
+ "enabled" : true
+ },
+ {
+ "name": "flawfinder",
+ "label": "Flawfinder",
+ "enabled" : true
+ },
+ {
+ "name": "kubesec",
+ "label": "kubesec",
+ "enabled" : true
+ },
+ {
+ "name": "nodejsscan",
+ "label": "Node.js Scan",
+ "enabled" : true
+ },
+ {
+ "name": "gosec",
+ "label": "Golang Security Checker",
+ "enabled" : true
+ },
+ {
+ "name": "phpcs-security-audit",
+ "label": "PHP Security Audit",
+ "enabled" : true
+ },
+ {
+ "name": "pmd-apex",
+ "label": "PMD APEX",
+ "enabled" : true
+ },
+ {
+ "name": "security-code-scan",
+ "label": "Security Code Scan",
+ "enabled" : true
+ },
+ {
+ "name": "sobelow",
+ "label": "Sobelow",
+ "enabled" : true
+ },
+ {
+ "name": "spotbugs",
+ "label": "Spotbugs",
+ "enabled" : true
+ },
+ {
+ "name": "secrets",
+ "label": "Secrets",
+ "enabled" : true
+ }
+ ]
+}