@@ -23,6 +23,11 @@ common:
2323 lifetime : 10800 # seconds
2424 project-id : " elastic-observability-ci"
2525 project-number : " 911195782929"
26+ - google_oidc_observability_plugin : &google_oidc_observability_plugin
27+ # See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/elastic-agent/01-gcp-oidc.tf
28+ # This plugin authenticates to Google Cloud using the OIDC token.
29+ elastic/oblt-google-auth#v1.3.0:
30+ lifetime : 10800 # seconds
2631# see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/10
2732# see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/11
2833# - gcp_serverless_secrets_plugin: &gcp_serverless_secrets_plugin
@@ -37,24 +42,28 @@ common:
3742 KIBANA_HOST : ea-serverless-it-kibana-hostname
3843 KIBANA_USERNAME : ea-serverless-it-kibana-username
3944 KIBANA_PASSWORD : ea-serverless-it-kibana-password
45+ - gcp_hosted_secrets_plugin : &gcp_hosted_secrets_plugin
46+ elastic/gcp-secret-manager#v1.3.0-elastic:
47+ env :
48+ # These secrets are created in the step called Start ESS stack for integration tests
49+ # TODO: need to find a way to use dynamic names in the secrets
50+ ELASTICSEARCH_HOST : ea-hosted-it-elasticsearch-hostname
51+ ELASTICSEARCH_PASSWORD : ea-hosted-it-elasticsearch-password
52+ ELASTICSEARCH_USERNAME : ea-hosted-it-elasticsearch-username
53+ KIBANA_HOST : ea-hosted-it-kibana-hostname
54+ KIBANA_USERNAME : ea-hosted-it-kibana-username
55+ KIBANA_PASSWORD : ea-hosted-it-kibana-password
56+ INTEGRATIONS_SERVER_HOST : ea-hosted-it-integration-hostname
4057
4158steps :
4259 - label : Start ESS stack for integration tests
4360 key : integration-ess
4461 notify :
4562 - github_commit_status :
46- context : " buildkite/elastic-agent-extended-testing - ESS stack provision"
47- env :
48- ASDF_TERRAFORM_VERSION : 1.9.2
49- command : |
50- #!/usr/bin/env bash
51- set -euo pipefail
52- source .buildkite/scripts/steps/ess_start.sh
53- artifact_paths :
54- - test_infra/ess/*.tfstate
55- - test_infra/ess/*.lock.hcl
63+ context : " buildkite/elastic-agent-extended-testing - ESS stack provision using oblt-cli"
64+ command : .buildkite/scripts/steps/ess_start.sh
5665 agents :
57- image : " docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:0.5 "
66+ image : " docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest "
5867 useCustomGlobalHooks : true
5968
6069 - group : " Extended runtime leak tests"
@@ -152,6 +161,9 @@ steps:
152161 - upgrade
153162 - upgrade-flavor
154163 - install-uninstall
164+ plugins :
165+ - *google_oidc_observability_plugin
166+ - *gcp_hosted_secrets_plugin
155167
156168 - label : " Win2022:non-sudo:{{matrix}}"
157169 depends_on :
@@ -171,6 +183,9 @@ steps:
171183 limit : 1
172184 matrix :
173185 - default
186+ plugins :
187+ - *google_oidc_observability_plugin
188+ - *gcp_hosted_secrets_plugin
174189
175190 - label : " Win2025:sudo:{{matrix}}"
176191 depends_on :
@@ -197,6 +212,9 @@ steps:
197212 - upgrade
198213 - upgrade-flavor
199214 - install-uninstall
215+ plugins :
216+ - *google_oidc_observability_plugin
217+ - *gcp_hosted_secrets_plugin
200218
201219 - label : " Win2025:non-sudo:{{matrix}}"
202220 depends_on :
@@ -216,6 +234,9 @@ steps:
216234 image : " ${IMAGE_WIN_2025}"
217235 matrix :
218236 - default
237+ plugins :
238+ - *google_oidc_observability_plugin
239+ - *gcp_hosted_secrets_plugin
219240
220241 - group : " Stateful:Ubuntu"
221242 key : integration-tests-ubuntu
@@ -242,6 +263,9 @@ steps:
242263 image : " ${IMAGE_UBUNTU_2404_X86_64}"
243264 matrix :
244265 - default
266+ plugins :
267+ - *google_oidc_observability_plugin
268+ - *gcp_hosted_secrets_plugin
245269
246270 - label : " x86_64:sudo: {{matrix}}"
247271 depends_on :
@@ -275,6 +299,9 @@ steps:
275299 - fqdn
276300 - deb
277301 - container
302+ plugins :
303+ - *google_oidc_observability_plugin
304+ - *gcp_hosted_secrets_plugin
278305
279306 - label : " arm:sudo: {{matrix}}"
280307 depends_on :
@@ -308,6 +335,9 @@ steps:
308335 # - fqdn
309336 # - deb
310337 # - container
338+ plugins :
339+ - *google_oidc_observability_plugin
340+ - *gcp_hosted_secrets_plugin
311341
312342 - label : " arm:non-sudo: {{matrix}}"
313343 skip : true
@@ -328,6 +358,9 @@ steps:
328358 instanceType : " m6g.xlarge"
329359 matrix :
330360 - default
361+ plugins :
362+ - *google_oidc_observability_plugin
363+ - *gcp_hosted_secrets_plugin
331364
332365 - group : " Stateful:Debian"
333366 key : integration-tests-debian
@@ -354,6 +387,9 @@ steps:
354387 image : " ${IMAGE_DEBIAN_12}"
355388 matrix :
356389 - default
390+ plugins :
391+ - *google_oidc_observability_plugin
392+ - *gcp_hosted_secrets_plugin
357393
358394 - label : " x86_64:sudo: {{matrix}}"
359395 depends_on :
@@ -388,6 +424,9 @@ steps:
388424 # - fqdn
389425 - deb
390426 - container
427+ plugins :
428+ - *google_oidc_observability_plugin
429+ - *gcp_hosted_secrets_plugin
391430
392431 - group : " Stateful(Sudo):RHEL8"
393432 key : integration-tests-rhel8
@@ -409,6 +448,9 @@ steps:
409448 retry :
410449 automatic :
411450 limit : 1
451+ plugins :
452+ - *google_oidc_observability_plugin
453+ - *gcp_hosted_secrets_plugin
412454 agents :
413455 provider : " gcp"
414456 machineType : " n2-standard-8"
@@ -444,6 +486,9 @@ steps:
444486 machineType : " n2-standard-4"
445487 image : " ${IMAGE_UBUNTU_2404_X86_64}"
446488 diskSizeGb : 80
489+ plugins :
490+ - *google_oidc_observability_plugin
491+ - *gcp_hosted_secrets_plugin
447492 matrix :
448493 setup :
449494 variants :
@@ -540,12 +585,9 @@ steps:
540585 - integration-tests-kubernetes
541586 - extended-integration-tests
542587 allow_dependency_failure : true
543- command : |
544- buildkite-agent artifact download "test_infra/ess/**" . --step "integration-ess"
545- ls -lah test_infra/ess
546- .buildkite/scripts/steps/ess_down.sh
588+ command : .buildkite/scripts/steps/oblt-cli-teardown.sh
547589 agents :
548- image : " docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:0.5 "
590+ image : " docker.elastic.co/ci-agent-images/platform-ingest/oblt-cli:latest "
549591 useCustomGlobalHooks : true
550592
551593 - label : Aggregate test reports
0 commit comments