-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'profiling-remove-security-on-setup' of github.com:cauem…
…arcondes/kibana into profiling-remove-security-on-setup
- Loading branch information
Showing
2,047 changed files
with
57,907 additions
and
20,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
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
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
25 changes: 25 additions & 0 deletions
25
.buildkite/pipelines/quality-gates/pipeline.tests-production-canary.yaml
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,25 @@ | ||
# These pipeline steps constitute the quality gate for your service within the production-canary environment. | ||
# Incorporate any necessary additional logic to validate the service's integrity. | ||
# A failure in this pipeline build will prevent further progression to the subsequent stage. | ||
|
||
steps: | ||
- label: ":pipeline::kibana::seedling: Trigger SLO check" | ||
trigger: "serverless-quality-gates" # https://buildkite.com/elastic/serverless-quality-gates | ||
build: | ||
message: "${BUILDKITE_MESSAGE} (triggered by pipeline.tests-production-canary.yaml)" | ||
env: | ||
TARGET_ENV: production-canary | ||
CHECK_SLO: true | ||
CHECK_SLO_TAG: kibana | ||
soft_fail: true | ||
|
||
- label: ":pipeline::rocket::seedling: Trigger control-plane e2e tests" | ||
trigger: "ess-k8s-production-e2e-tests" # https://buildkite.com/elastic/ess-k8s-production-e2e-tests | ||
build: | ||
env: | ||
REGION_ID: aws-us-east-1 | ||
NAME_PREFIX: ci_test_kibana-promotion_ | ||
message: "${BUILDKITE_MESSAGE} (triggered by pipeline.tests-production-canary.yaml)" | ||
|
||
- label: ":cookie: 24h bake time before continuing promotion" | ||
command: "sleep 86400" |
22 changes: 22 additions & 0 deletions
22
.buildkite/pipelines/quality-gates/pipeline.tests-production-noncanary.yaml
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,22 @@ | ||
# These pipeline steps constitute the quality gate for your service within the production-noncanary environment. | ||
# Incorporate any necessary additional logic to validate the service's integrity. | ||
# A failure in this pipeline build will prevent further progression to the subsequent stage. | ||
|
||
steps: | ||
- label: ":pipeline::kibana::seedling: Trigger SLO check" | ||
trigger: "serverless-quality-gates" # https://buildkite.com/elastic/serverless-quality-gates | ||
build: | ||
message: "${BUILDKITE_MESSAGE} (triggered by pipeline.tests-production-noncanary.yaml)" | ||
env: | ||
TARGET_ENV: production-noncanary | ||
CHECK_SLO: true | ||
CHECK_SLO_TAG: kibana | ||
soft_fail: true | ||
|
||
- label: ":pipeline::rocket::seedling: Trigger control-plane e2e tests" | ||
trigger: "ess-k8s-production-e2e-tests" # https://buildkite.com/elastic/ess-k8s-production-e2e-tests | ||
build: | ||
env: | ||
REGION_ID: aws-us-east-1 | ||
NAME_PREFIX: ci_test_kibana-promotion_ | ||
message: "${BUILDKITE_MESSAGE} (triggered by pipeline.tests-production-noncanary.yaml)" |
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
18 changes: 16 additions & 2 deletions
18
.buildkite/scripts/pipelines/security_solution_quality_gate/pipeline.sh
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 |
---|---|---|
@@ -1,5 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
echo "In the entrypoint for the quality gate" | ||
source .buildkite/scripts/common/util.sh | ||
source .buildkite/scripts/steps/functional/common_cypress.sh | ||
.buildkite/scripts/bootstrap.sh | ||
|
||
export JOB=kibana-security-solution-chrome | ||
|
||
buildkite-agent meta-data set "${BUILDKITE_JOB_ID}_is_test_execution_step" "true" | ||
|
||
echo "--- Serverless Security Second Quality Gate" | ||
cd x-pack/test/security_solution_cypress | ||
set +e | ||
|
||
VAULT_DEC_KEY=$(vault read -field=key secret/kibana-issues/dev/security-solution-qg-enc-key) | ||
ENV_PWD=$(echo $TEST_ENV_PWD | openssl aes-256-cbc -d -a -pass pass:$VAULT_DEC_KEY) | ||
|
||
CYPRESS_ELASTICSEARCH_URL=$TEST_ENV_ES_URL CYPRESS_BASE_URL=$TEST_ENV_KB_URL CYPRESS_ELASTICSEARCH_USERNAME=$TEST_ENV_USERNAME CYPRESS_ELASTICSEARCH_PASSWORD=$ENV_PWD CYPRESS_KIBANA_URL=$CYPRESS_BASE_URL yarn cypress:run:qa:serverless; status=$?; yarn junit:merge || :; exit $status |
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,19 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
.buildkite/scripts/bootstrap.sh | ||
|
||
SO_MIGRATIONS_SNAPSHOT_FOLDER=kibana-so-types-snapshots | ||
SNAPSHOT_FILE_PATH="${1:-target/plugin_so_types_snapshot.json}" | ||
|
||
echo "--- Creating snapshot of Saved Object migration info" | ||
node scripts/snapshot_plugin_types --outputPath "$SNAPSHOT_FILE_PATH" | ||
|
||
echo "--- Uploading as ${BUILDKITE_COMMIT}.json" | ||
SNAPSHOT_PATH="${SO_MIGRATIONS_SNAPSHOT_FOLDER}/${BUILDKITE_COMMIT}.json" | ||
gsutil cp "$SNAPSHOT_FILE_PATH" "gs://$SNAPSHOT_PATH" | ||
|
||
buildkite-agent annotate --context so_migration_snapshot --style success \ | ||
'Saved Object type snapshot is available at <a href="https://storage.cloud.google.com/'"$SNAPSHOT_PATH"'">'"$SNAPSHOT_PATH"'</a>' | ||
|
||
echo "Success!" |
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.