From 7de0904ef49c1bec0f03b5d10bb030e18042c0eb Mon Sep 17 00:00:00 2001 From: Yaroslav Sorokin Date: Tue, 22 Oct 2019 18:12:25 +0300 Subject: [PATCH 01/12] use new orb which allow to simplify circle ci config --- .circleci/config.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f8a1cdc..92ce2b4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2.1 orbs: - fast: wallarm/fast@dev:0.1.9 + fast: wallarm/fast@dev:0.1.16 jobs: build: machine: @@ -19,15 +19,7 @@ jobs: command: | docker run -d --name app-test -p 3000:3000 app-test - # On this step we need to save ip-address of application - # which is determined in 'bridge' docker network by deafult. - # To use env-variable between Circle CI steps we need to save it in $BASH_ENV. - - run: - name: Set application ip into env variable - command: | - echo "export APP_TEST_HOST=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' app-test)" >> $BASH_ENV - - fast/run_security_tests: - test_app_uri: http://$APP_TEST_HOST:3000 + app_port: "3000" test_record_id: "3612" # use your test_record_id policy_id: "129" # use your policy_id From ca2a67146261d740e7f44c29ed138ea244bb59f6 Mon Sep 17 00:00:00 2001 From: it-mak Date: Wed, 23 Oct 2019 12:31:37 +0300 Subject: [PATCH 02/12] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 92ce2b4..19d8df8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,4 +22,4 @@ jobs: - fast/run_security_tests: app_port: "3000" test_record_id: "3612" # use your test_record_id - policy_id: "129" # use your policy_id + policy_id: "129" # use your policy_idd From 725053ca1aa42840fbef44d688c9c1be1de7ad7f Mon Sep 17 00:00:00 2001 From: it-mak Date: Wed, 23 Oct 2019 13:57:09 +0300 Subject: [PATCH 03/12] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 19d8df8..ef39572 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,4 +22,4 @@ jobs: - fast/run_security_tests: app_port: "3000" test_record_id: "3612" # use your test_record_id - policy_id: "129" # use your policy_idd + policy_id: "129" # use your policy_iddd From a1255ff0ddb35d0bc9b5e42c0d025c2702747239 Mon Sep 17 00:00:00 2001 From: it-mak Date: Thu, 24 Oct 2019 18:12:44 +0300 Subject: [PATCH 04/12] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a7cb1c3..c0acc09 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # README -Example of integration Wallarm FAST with the rails app using FAST orb (plugin for CircleCI). +Example of integration Wallarm FAST with the rails app using FAST orb (plugin for CircleCI)). ## How to create test record locally @@ -39,4 +39,4 @@ https://circleci.com/gh/wallarm/fast-examples-rails/tree/orb_example ## Previous versions In previous versions could be vary key principles which are used to integrate FAST with ci/cd processes. -Please read releases page. \ No newline at end of file +Please read releases page. From ba3a2ba8ff410f20b9b845d310a359d60414b61d Mon Sep 17 00:00:00 2001 From: it-mak Date: Thu, 24 Oct 2019 19:01:12 +0300 Subject: [PATCH 05/12] Update config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ef39572..ffee4ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,5 +21,5 @@ jobs: - fast/run_security_tests: app_port: "3000" - test_record_id: "3612" # use your test_record_id - policy_id: "129" # use your policy_iddd + test_record_id: "336" # use your test_record_id + policy_id: "47" # use your policy_iddd From 549d4da287c6150a27c200fe4a582516cb8403a1 Mon Sep 17 00:00:00 2001 From: it-mak Date: Thu, 24 Oct 2019 19:13:56 +0300 Subject: [PATCH 06/12] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ffee4ad..c4183a1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2.1 orbs: - fast: wallarm/fast@dev:0.1.16 + fast: wallarm/fast@dev:0.1.18 jobs: build: machine: From bf7ce0d405315a593fe2a0c6f8cdce05a2b3c331 Mon Sep 17 00:00:00 2001 From: it-mak Date: Thu, 24 Oct 2019 19:33:37 +0300 Subject: [PATCH 07/12] Update config.yml --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c4183a1..20ff918 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,5 +21,5 @@ jobs: - fast/run_security_tests: app_port: "3000" - test_record_id: "336" # use your test_record_id - policy_id: "47" # use your policy_iddd + test_record_id: "3612" # use your test_record_id + policy_id: "129" # use your policy_iddd From 13720afdfb9133cf400ade01bcfbaded21473c20 Mon Sep 17 00:00:00 2001 From: it-mak Date: Thu, 24 Oct 2019 19:39:43 +0300 Subject: [PATCH 08/12] Update config.yml --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 20ff918..9fced2e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,4 +22,3 @@ jobs: - fast/run_security_tests: app_port: "3000" test_record_id: "3612" # use your test_record_id - policy_id: "129" # use your policy_iddd From dbd3063917ec4185b4ca3d6c5e4b7ac69de9e52e Mon Sep 17 00:00:00 2001 From: it-mak Date: Fri, 25 Oct 2019 11:36:47 +0300 Subject: [PATCH 09/12] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9fced2e..e2e6ea3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,4 +21,4 @@ jobs: - fast/run_security_tests: app_port: "3000" - test_record_id: "3612" # use your test_record_id + test_record_id: "3612" # use your test_record_i From c71cf716d488e40c946319bfbd1a2f93fed68b80 Mon Sep 17 00:00:00 2001 From: it-mak Date: Fri, 25 Oct 2019 11:40:35 +0300 Subject: [PATCH 10/12] Update config.yml --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e2e6ea3..866d6fc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,3 +22,5 @@ jobs: - fast/run_security_tests: app_port: "3000" test_record_id: "3612" # use your test_record_i + policy_id: "129" # use your policy_id + wallarm_api_host: api.wallarm.com From f2b130256fa7599f135e0d9b14335a9cb518820e Mon Sep 17 00:00:00 2001 From: it-mak Date: Fri, 25 Oct 2019 11:43:02 +0300 Subject: [PATCH 11/12] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 866d6fc..63af947 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,6 +21,6 @@ jobs: - fast/run_security_tests: app_port: "3000" - test_record_id: "3612" # use your test_record_i + test_record_id: "3612" # use your test_record_id policy_id: "129" # use your policy_id wallarm_api_host: api.wallarm.com From aae760bd0b4aa9050007c441a1d64522b389b409 Mon Sep 17 00:00:00 2001 From: it-mak Date: Tue, 10 Dec 2019 18:15:44 +0300 Subject: [PATCH 12/12] Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a22e04d..77d931e 100644 --- a/package.json +++ b/package.json @@ -2,4 +2,5 @@ "name": "fast-examples-rails", "private": true, "dependencies": {} + }