diff --git a/.buildkite/pipelines/pull_request/osquery_cypress.yml b/.buildkite/pipelines/pull_request/osquery_cypress.yml index c56d94524f60d..07e26e8f1ff6b 100644 --- a/.buildkite/pipelines/pull_request/osquery_cypress.yml +++ b/.buildkite/pipelines/pull_request/osquery_cypress.yml @@ -25,17 +25,16 @@ steps: artifact_paths: - "target/kibana-osquery/**/*" - # Error: self-signed certificate in certificate chain - # - command: .buildkite/scripts/steps/functional/security_serverless_osquery.sh - # label: 'Serverless Osquery Cypress Tests' - # agents: - # queue: n2-4-spot - # depends_on: build - # timeout_in_minutes: 50 - # parallelism: 6 - # retry: - # automatic: - # - exit_status: '*' - # limit: 1 - # artifact_paths: - # - "target/kibana-osquery/**/*" + - command: .buildkite/scripts/steps/functional/security_serverless_osquery.sh + label: 'Serverless Osquery Cypress Tests' + agents: + queue: n2-4-spot + depends_on: build + timeout_in_minutes: 50 + parallelism: 6 + retry: + automatic: + - exit_status: '*' + limit: 1 + artifact_paths: + - "target/kibana-osquery/**/*" diff --git a/packages/kbn-crypto/src/__fixtures__/no_ca.p12 b/packages/kbn-crypto/src/__fixtures__/no_ca.p12 index c4beef55cf3b6..5618ae5842c16 100644 Binary files a/packages/kbn-crypto/src/__fixtures__/no_ca.p12 and b/packages/kbn-crypto/src/__fixtures__/no_ca.p12 differ diff --git a/packages/kbn-crypto/src/__fixtures__/no_cert.p12 b/packages/kbn-crypto/src/__fixtures__/no_cert.p12 index 40e4da49f2274..0f1546dd0e114 100644 Binary files a/packages/kbn-crypto/src/__fixtures__/no_cert.p12 and b/packages/kbn-crypto/src/__fixtures__/no_cert.p12 differ diff --git a/packages/kbn-crypto/src/__fixtures__/no_key.p12 b/packages/kbn-crypto/src/__fixtures__/no_key.p12 index 7192bbc7de559..77a5539f9c3e4 100644 Binary files a/packages/kbn-crypto/src/__fixtures__/no_key.p12 and b/packages/kbn-crypto/src/__fixtures__/no_key.p12 differ diff --git a/packages/kbn-crypto/src/__fixtures__/two_cas.p12 b/packages/kbn-crypto/src/__fixtures__/two_cas.p12 index 2de839be3e41c..22e86f87cb429 100644 Binary files a/packages/kbn-crypto/src/__fixtures__/two_cas.p12 and b/packages/kbn-crypto/src/__fixtures__/two_cas.p12 differ diff --git a/packages/kbn-crypto/src/__fixtures__/two_keys.p12 b/packages/kbn-crypto/src/__fixtures__/two_keys.p12 index 784b3033ebf64..5c44d4df3c0d4 100644 Binary files a/packages/kbn-crypto/src/__fixtures__/two_keys.p12 and b/packages/kbn-crypto/src/__fixtures__/two_keys.p12 differ diff --git a/packages/kbn-dev-utils/certs/README.md b/packages/kbn-dev-utils/certs/README.md index 869f18ad2ed23..9df4c5ae60039 100644 --- a/packages/kbn-dev-utils/certs/README.md +++ b/packages/kbn-dev-utils/certs/README.md @@ -37,13 +37,16 @@ __IMPORTANT:__ CA keystore (ca.p12) is not checked in intentionally, talk to @el bin/elasticsearch-certutil ca --out ca.p12 -days 18250 --pass castorepass # Generate the PKCS #12 keystore for Elasticsearch and sign it with the CA -bin/elasticsearch-certutil cert --out elasticsearch.p12 -days 18250 --ca ca.p12 --ca-pass castorepass --name elasticsearch --dns localhost --pass storepass +bin/elasticsearch-certutil cert --out elasticsearch.p12 -days 18250 --ca ca.p12 --ca-pass castorepass --name elasticsearch --dns localhost,host.docker.internal,es01,es02,es03 --pass storepass # Generate the PKCS #12 keystore for Kibana and sign it with the CA -bin/elasticsearch-certutil cert --out kibana.p12 -days 18250 --ca ca.p12 --ca-pass castorepass --name kibana --dns localhost --pass storepass +bin/elasticsearch-certutil cert --out kibana.p12 -days 18250 --ca ca.p12 --ca-pass castorepass --name kibana --dns localhost,host.docker.internal,es01,es02,es03 --pass storepass + +# Generate the PKCS #12 keystore for Fleet Server and sign it with the CA +bin/elasticsearch-certutil cert --out fleet_server.p12 -days 18250 --ca ca.p12 --ca-pass castorepass --name fleet_server --dns localhost,host.docker.internal,es01,es02,es03 --pass storepass # Copy the PKCS #12 keystore for Elasticsearch with an empty password -openssl pkcs12 -in elasticsearch.p12 -nodes -passin pass:"storepass" -passout pass:"" | openssl pkcs12 -export -out elasticsearch_emptypassword.p12 -passout pass:"" +openssl pkcs12 -in elasticsearch.p12 -nodes -passin pass:"storepass" -passout pass:"" | openssl pkcs12 -export -legacy -out elasticsearch_emptypassword.p12 -passout pass:"" # Manually create "elasticsearch_nopassword.p12" -- this can be done on macOS by importing the P12 key store into the Keychain and exporting it again @@ -51,14 +54,20 @@ openssl pkcs12 -in elasticsearch.p12 -nodes -passin pass:"storepass" -passout pa openssl pkcs12 -in elasticsearch.p12 -out ca.crt -cacerts -passin pass:"storepass" -passout pass: # Extract the PEM-formatted PKCS #1 private key for Elasticsearch -openssl pkcs12 -in elasticsearch.p12 -nocerts -passin pass:"storepass" -passout pass:"keypass" | openssl rsa -passin pass:keypass -out elasticsearch.key +openssl pkcs12 -in elasticsearch.p12 -nocerts -passin pass:"storepass" -passout pass:"keypass" | openssl rsa -passin pass:keypass -out elasticsearch.key -traditional # Extract the PEM-formatted X.509 certificate for Elasticsearch openssl pkcs12 -in elasticsearch.p12 -out elasticsearch.crt -clcerts -passin pass:"storepass" -passout pass: # Extract the PEM-formatted PKCS #1 private key for Kibana -openssl pkcs12 -in kibana.p12 -nocerts -passin pass:"storepass" -passout pass:"keypass" | openssl rsa -passin pass:keypass -out kibana.key +openssl pkcs12 -in kibana.p12 -nocerts -passin pass:"storepass" -passout pass:"keypass" | openssl rsa -passin pass:keypass -out kibana.key -traditional # Extract the PEM-formatted X.509 certificate for Kibana openssl pkcs12 -in kibana.p12 -out kibana.crt -clcerts -passin pass:"storepass" -passout pass: + +# Extract the PEM-formatted PKCS #1 private key for Fleet Server +openssl pkcs12 -in fleet_server.p12 -nocerts -passin pass:"storepass" -passout pass:"keypass" | openssl rsa -passin pass:keypass -out fleet_server.key -traditional + +# Extract the PEM-formatted X.509 certificate for Fleet Server +openssl pkcs12 -in fleet_server.p12 -out fleet_server.crt -clcerts -passin pass:"storepass" -passout pass: ``` diff --git a/packages/kbn-dev-utils/certs/ca.crt b/packages/kbn-dev-utils/certs/ca.crt index 3a99c58d6b514..280b5ccf9c0a3 100644 --- a/packages/kbn-dev-utils/certs/ca.crt +++ b/packages/kbn-dev-utils/certs/ca.crt @@ -1,6 +1,6 @@ Bag Attributes friendlyName: elasticsearch - localKeyID: 54 69 6D 65 20 31 36 33 34 31 32 30 31 35 32 31 39 33 + localKeyID: 54 69 6D 65 20 31 36 39 35 34 38 32 34 30 38 35 33 39 Key Attributes: Bag Attributes friendlyName: ca diff --git a/packages/kbn-dev-utils/certs/elasticsearch.crt b/packages/kbn-dev-utils/certs/elasticsearch.crt index a95b7c63ad5ec..09915a0ee3c67 100644 --- a/packages/kbn-dev-utils/certs/elasticsearch.crt +++ b/packages/kbn-dev-utils/certs/elasticsearch.crt @@ -1,29 +1,30 @@ Bag Attributes friendlyName: elasticsearch - localKeyID: 54 69 6D 65 20 31 36 33 34 31 32 30 31 35 32 31 39 33 + localKeyID: 54 69 6D 65 20 31 36 39 35 34 38 32 34 30 38 35 33 39 Key Attributes: Bag Attributes friendlyName: elasticsearch - localKeyID: 54 69 6D 65 20 31 36 33 34 31 32 30 31 35 32 31 39 33 + localKeyID: 54 69 6D 65 20 31 36 39 35 34 38 32 34 30 38 35 33 39 subject=CN = elasticsearch issuer=CN = Elastic Certificate Tool Autogenerated CA -----BEGIN CERTIFICATE----- -MIIDPzCCAiegAwIBAgIUCTO1pAvYtfaJndsQwa9cS/AtoSowDQYJKoZIhvcNAQEL -BQAwNDEyMDAGA1UEAxMpRWxhc3RpYyBDZXJ0aWZpY2F0ZSBUb29sIEF1dG9nZW5l -cmF0ZWQgQ0EwIBcNMjExMDEzMTAxNTUyWhgPMjA3MTEwMDExMDE1NTJaMBgxFjAU -BgNVBAMTDWVsYXN0aWNzZWFyY2gwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK -AoIBAQCJK4KLS0kSIM+eqdMq4nO1p7nQ7ADUXIYjeRKaCycSJ7sj//1FRdj2NhLb -gdSX2VGIUZyOw4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gSZTAI2nwHlTWsD9quiXIAnsT2Z1EuZ4qbds/oXKAgD5o1D +pBiRMiqFjvaLSFQx/FpB5ZGYRzgh7gRUHf916ftSugcBtVBDt8BYLMhzwVjpLLC7 +mOYTx8kUd0AvoRsiW23JEmFt8IPtoDj9P9qDhYDoaD5GuAS4EnAea0smtm5G1QMy +FtAsCX1qT1051rYUxlCLan7HeMWmIqPvCR1GzE9vP96Zb2gpAHzg0RHjLDOIDBmZ +DqGS4Egkrc/lvM9LLznqdBj/dzWQI0QQRv6gHzY2oHJorQYQ2xefgFjkdrhy5Sov +LqM+jvd3mUYrkVMgAUNVPYEHXg1clQIDAQABo4GMMIGJMB0GA1UdDgQWBBSomZga +0XXQlnT1T0I/BQ9AmAFdbTAfBgNVHSMEGDAWgBQwTCrAjlvQxik3HBocn1PDUune +njA8BgNVHREENTAzghRob3N0LmRvY2tlci5pbnRlcm5hbIIJbG9jYWxob3N0ggRl +czAzggRlczAyggRlczAxMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBABjM +xPHoqX5PyjPpySKSI2rrwIYlP78NKnwT8kd+Sk2kx0nrIj+GJBluerFTcHMSEQm2 +Z7lAGsAMXxmy3J0PyiFoUlZ5dAaUvjPygbG2YBGRbnxrStXyFQe5R3Bq3dQ62hXl +/eo/UJFAKBzXUcbkrxAR5c/C0kBXAE/z5Qef9CNKGCtFeIeTigYSJd99+ek7hvW0 +2QaI1Cd7qRe3Cy1C8DQMSFN1aB6gaT4FPDoi5pRbr/kX2Ch+JwD+1usKVgqe4sgI +kv2lak2L3rjMtZU9Uh1Kq228TSsagkNN2HadCxeOFPC/ZRs4cxo8cYrhotm8CJt9 +QPfOO517N4ec6b0cIhk= -----END CERTIFICATE----- diff --git a/packages/kbn-dev-utils/certs/elasticsearch.key b/packages/kbn-dev-utils/certs/elasticsearch.key index 4a114a0458a82..cf091f6e96b18 100644 --- a/packages/kbn-dev-utils/certs/elasticsearch.key +++ b/packages/kbn-dev-utils/certs/elastics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REsprs44RyQvqcV60OCo1xQeM4fNwFL0lJLUedlhrS42/jysyw== -----END RSA PRIVATE KEY----- diff --git a/packages/kbn-dev-utils/certs/elasticsearch.p12 b/packages/kbn-dev-utils/certs/elasticsearch.p12 index 9f88e6bd42a99..a0b01f25d06c8 100644 Binary files a/packages/kbn-dev-utils/certs/elasticsearch.p12 and b/packages/kbn-dev-utils/certs/elasticsearch.p12 differ diff --git a/packages/kbn-dev-utils/certs/elasticsearch_emptypassword.p12 b/packages/kbn-dev-utils/certs/elasticsearch_emptypassword.p12 index 32ba1781d0599..cace9e6a71b01 100644 Binary files a/packages/kbn-dev-utils/certs/elasticsearch_emptypassword.p12 and b/packages/kbn-dev-utils/certs/elasticsearch_emptypassword.p12 differ diff --git a/packages/kbn-dev-utils/certs/elasticsearch_nopassword.p12 b/packages/kbn-dev-utils/certs/elasticsearch_nopassword.p12 index 8ea7d49ab39aa..9b1d6aeb9f1d7 100644 Binary files a/packages/kbn-dev-utils/certs/elasticsearch_nopassword.p12 and b/packages/kbn-dev-utils/certs/elasticsearch_nopassword.p12 differ diff --git a/packages/kbn-dev-utils/certs/fleet_server.crt b/packages/kbn-dev-utils/certs/fleet_server.crt new file mode 100644 index 0000000000000..d88bdad7ec3ea --- /dev/null +++ b/packages/kbn-dev-utils/certs/fleet_server.crt @@ -0,0 +1,30 @@ +Bag Attributes + friendlyName: fleet_server + localKeyID: 54 69 6D 65 20 31 36 39 35 34 38 32 34 31 37 37 31 38 +Key Attributes: +Bag Attributes + friendlyName: fleet_server + localKeyID: 54 69 6D 65 20 31 36 39 35 34 38 32 34 31 37 37 31 38 +subject=CN = fleet_server +issuer=CN = Elastic Certificate Tool Autogenerated CA +-----BEGIN CERTIFICATE----- +MIIDaDCCAlCgAwIBAgIUNsPACNdd6yg9RtG2RjaXhLgcSBcwDQYJKoZIhvcNAQEL +BQAwNDEyMDAGA1UEAxMpRWxhc3RpYyBDZXJ0aWZpY2F0ZSBUb29sIEF1dG9nZW5l +cmF0ZW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L +-----END CERTIFICATE----- diff --git a/packages/kbn-dev-utils/certs/fleet_server.key b/packages/kbn-dev-utils/certs/fleet_server.key new file mode 100644 index 0000000000000..a7c6efd92bd5c --- /dev/null +++ b/packages/kbn-dev-utils/certs/fleet_server.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAu/Kh8brWAtXky+GmxXAh5yJxFu2xtN6KsY6tcbpqy1ZQSJHj +miz/advdORHfzjg7jGLbOVodJU+crcPlBkJ6FlagqGdzuxas9BuLKkQXBDvoiobh +/zaN/KXuXolKcSkDHpbbfMAYYKvm0c1afSQBSrZmUsrG5a9H2+nvSPM46XZJnirW +6PhH4i7rf2hbSSnyjEqsf439c6ATO23FKkR8SCz1cIDNR54bJB/aW6/R/Y8/obD/ +ntWwCgHhdr5jvoy4UPtONKSdLeKlD1JgmiirCBkDVb0FrYzKHmvjKlIV8nn030me +7uPIrwNf1LgyPDn+ltF4avwJZCVNyTp7usUURQIDAQABAoIBACCUDj44hKA5M0+j +7aSLq1TFQ5UV3pfbe28LrETqa1iTvZbWsv0mj59p3Q7nakP0u126RQXL+QFeq2nz +at+K5l645WBLjmP/qjsmCxlodBTnzYc1mjcC3dnNaWQ5qA21bjT/MUyOf6tCIOB9 +GBJZC2BH/bScMZ3epDYadr/OaS8OZX0iEKm/pApfjPsNyuIpgnrkEOiUqwCwDr7l +Z0z0wAIPVewN7z1mBoLO3ZT72WR8iKvdXAt982C9z8K4w0YKmVnexD6FHY37uXsE +RHggcRM0psjJ2vpu7Ha1q/pmyAdb8RQ+1tAGApn+DgLRjEdIMX7CvHQFZ2m/+7lC +Y1SUcAECgYEAxXBf0VuR1z9xIdE7i2WteNJtE4zJgO8N0tIMTiRCTGE4kiclCRzX +AN2xiwkvGM2tLo5XC5FvD6AHBdLng1n1xOIgsAgNOAIcjiexm0P/D9EHeOnua7wc +DRQGQgjPNYv9TxPs4K25T9v1uV4hzQFfKq+JyOlzEP5S4vkyHw08AqECgYEA87GW +yidal1nTndAvkBHmYGMu0aHgK0U5NIlgmqqDsqIaES6XATUdjLw2xjiwtwQfEOLm +ZRHc6rgyA0o6QcWhD3TM9X3eJ3Hf4cAETES+rBRTTHY/u71LzjiAQCNAemceWbYX +RAyYYngtMxAyiis/8sFTVNoxGIHHehvLJKIu0yUCgYEArqeHu3Wbf6O5ekbSu69I +U1ch8mdaYVoXCmWRSRa+Jz7hgjhqhLMkZrm2Mt3+8ZwQFN0Jl0whyNqxG6/D6OgN +hwraC54zw1Xq2L24WTc/TEiGqamWpWsUDWWnW4bbdezOOcPQibhj84cKyd3BXM5X +1zTNWBNbHK89t1blxZ45dcECgYEAuRZ44LFjLPEcuRAWD+aIg0zRkobQLA03lZ+B +r/cyb8qO4d3w8wnUl7+cGpGUJm0K61hqhPk8QUoFMlp+RNZFreeYhBxFTtA+qsec +fBD6gNgvLDPj1EPB/68KOayMnGsVsi2LHjQyyRddvRrgR/DxcP9Eu329LE/loeja +Mci8p8ECgYBrIucmzOakwamH5cEI++3UaNHp9AUFsoN8T1Bo7MgdrqGIZ7yUzfzN +ymBeJSN4JJsI3S4tt2fQ2pexfvbk5wAl9sZiR38fRIYMs5NDqRVyISLxd5cbmEqX +04PnNCs3IHpdMA3jfpk0q6wmEtdQNLQWRr3v7e0RvHCG254YY6UN5Q== +-----END RSA PRIVATE KEY----- diff --git a/packages/kbn-dev-utils/certs/fleet_server.p12 b/packages/kbn-dev-utils/certs/fleet_server.p12 new file mode 100644 index 0000000000000..1a270960257ee Binary files /dev/null and b/packages/kbn-dev-utils/certs/fleet_server.p12 differ diff --git a/packages/kbn-dev-utils/certs/kibana.crt b/packages/kbn-dev-utils/certs/kibana.crt index b73885dc7a0f9..ad4afb02212dc 100644 --- a/packages/kbn-dev-utils/certs/kibana.crt +++ b/packages/kbn-dev-utils/certs/kibana.crt @@ -1,29 +1,30 @@ Bag Attributes friendlyName: kibana - localKeyID: 54 69 6D 65 20 31 36 33 34 31 32 30 31 35 38 38 30 33 + localKeyID: 54 69 6D 65 20 31 36 39 35 34 38 32 34 31 34 33 39 35 Key Attributes: Bag Attributes friendlyName: kibana - localKeyID: 54 69 6D 65 20 31 36 33 34 31 32 30 31 35 38 38 30 33 + localKeyID: 54 69 6D 65 20 31 36 39 35 34 38 32 34 31 34 33 39 35 subject=CN = kibana issuer=CN = Elastic Certificate Tool Autogenerated CA -----BEGIN CERTIFICATE----- -MIIDOTCCAiGgAwIBAgIVAN0GVNLw3IaUBuG7t6CeW8w2wyymMA0GCSqGSIb3DQEB -CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu -ZXJhdGVkIENBMCAXDTIxMTAxMzEwMTU1OFoYDzIwNzExMDAxMTAxNTU4WjARMQ8w -DQYDVQQDEwZraWJhbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3 -nvfL3/26D8EkLso+t9S0m+tSJipLsBWs0dCpc8KRJ/+ijDRnAQ5lOmOAcxt43SNY -KFr0EntQEZyYaRwMIM8aPR0WYW/VV5o4fq2o/JnmHqzZJRJCwZq+5WiCiDPt012N -mRGYCMUxjlEwejue6diLAeQhZ/sfN4jUp217bMEHrhHrNBWTwwJ+Uk5TBQMhviCW -LKbsKrfluA6DGHWrXN4pH7Xmaf/Zyc9AYL/nxwv3VQHZzIAK/U/WNCgFJJ3qoFYY -6TUwDDNa30mSj165OOds9N+VmUlDC3IFiHV3osBWscSU4HJd6QJ8huHrFLLV4y4i -u62el47Qr+/8Ut3SzeIXAgMBAAGjYzBhMB0GA1UdDgQWBBQli5f2bYL9jKUA5Uxp -yRRHeCoPJzAfBgNVHSMEGDAWgBQwTCrAjlvQxik3HBocn1PDUunenjAUBgNVHREE -DTALgglsb2NhbGhvc3QwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAQEATFNj -WkTBPfgflGYZD4OsYvfT/rVjFKbJP/u1a0rkzNamA2QKNzI9JTOzONPTyRhe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aG9zdIIEZXMwM4IEZXMw +MoIEZXMwMTAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQCxqvQYXSKqgpdl +SP4gXgwipAnYsoW9qkgWQODTvSBEzUdOWme0d3j7i2l6Ur/nVSv5YjkqAv1hf/yJ +Hrk9h+j29ZO/aQ/KDh5i/gTEUnPw3Bxbw47dfn23tjMWO7NCU1fr5HNztRsa/gQr +e9s07g25u/gTfTi9Fyu0lcRe3bXOLS/mFVcuC5oxuS65R9OlbIsiORkZ2EfwuNUf +wAAYOGPIjM2VlQCvBitefsd/SzRKHdxSPy6KSjkO6MGEGo87fr7B7Nx1qp1DVrK7 +q9XeP1Cuygjg9WTcnsvWvNw8CssyuFM6X/3tGjpPasXwLvNUoG2AairK2AYTWhvS +foE31cFg -----END CERTIFICATE----- diff --git a/packages/kbn-dev-utils/certs/kibana.key b/packages/kbn-dev-utils/certs/kibana.key index aae299d430585..a73331ab17874 100644 --- a/packages/kbn-dev-utils/certs/kibana.key +++ b/packages/kbn-dev-utils/certs/kibana.key @@ -1,27 +1,27 @@ -----BEGIN RSA PRIVATE KEY----- -MIIEpQIBAAKCAQEAt573y9/9ug/BJC7KPrfUtJvrUiYqS7AVrNHQqXPCkSf/oow0 -ZwEOZTpjgHMbeN0jWCha9BJ7UBGcmGkcDCDPGj0dFmFv1VeaOH6tqPyZ5h6s2SUS -QsGavuVogogz7dNdjZkRmAjFMY5RMHo7nunYiwHkIWf7HzeI1Kdte2zBB64R6zQV -k8MCflJOUwUDIb4gliym7Cq35bgOgxh1q1zeKR+15mn/2cnPQGC/58cL91UB2cyA -Cv1P1jQoBSSd6qBWGOk1MAwzWt9Jko9euTjnbPTflZlJQwtyBYh1d6LAVrHElOBy -XekCfIbh6xSy1eMuIrutnpeO0K/v/FLd0s3iFwIDAQABAoIBAAKgqzzHI/Xdfi7l -iS5e6hPQPAytECOMza/vQV7+EZWLLtIlfdB63Y5e8107XclxJ1gpHQLAyvPz3zui -cWzOVrhc5z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YUhdUcgzSU9nL+ynSoWeOqprJ9Q/al4rIEh8ebvbZI +RF0qvBU6Q8Qg6aA/pcTVHU0+fFe6GDYarWvarH0CgYEAoxYphfOYVGMwPucCDKQa +Mbmi+GnNMeUAkFmxxYam3xjq8aTz+dRlaiKVxDIHWSElCFJD3HPPcpCx9J3qFW1G +mx/OGIEUP8+YYnHr0C3eFz0yQBeih2cigWIL4gMj5sLKAfbvkYiJRWwE19V8jzox +IpZ8OnGONnPbXgoU43mWAz8CgYEA3qvrAYxAtBw2rWmC/Mt3yYDHzeX0MFUOxygS +uxLhdgTPKPSunnD4vlYUHXNyxhygn/hE0fNvAH6bt6up3MUfDjNzj+SX2iQGqZ+U +xpYqjAhjhKRso9v/Ap3r+CyJqUTrPdVmGvrOg3+sKL15wr/QVrXMf75NfcPz6a7d +kvaip1ECgYA/T6EllMlRBM7hMnhZlgt3Ccu/e6VcVzQxqp0EewHzw+N17LdoaWaB +0bw9AqTwLeEhf4s4vidB7pO8YGNkCOKkQ3gqA/pF21VtF4xBRP6iYFa9rEGrHsRU +as68JJ6Lk+gn0aJ0RJNRaOa8xeoA/YWYNfnCfiAHj82UzP5TT4L/BQ== -----END RSA PRIVATE KEY----- diff --git a/packages/kbn-dev-utils/certs/kibana.p12 b/packages/kbn-dev-utils/certs/kibana.p12 index f9e689cf33e04..ea88b940ed8d3 100644 Binary files a/packages/kbn-dev-utils/certs/kibana.p12 and b/packages/kbn-dev-utils/certs/kibana.p12 differ diff --git a/packages/kbn-dev-utils/index.ts b/packages/kbn-dev-utils/index.ts index 2faf0000fde29..0454a0f7395d5 100644 --- a/packages/kbn-dev-utils/index.ts +++ b/packages/kbn-dev-utils/index.ts @@ -8,6 +8,7 @@ export { CA_CERT_PATH, + CA_TRUSTED_FINGERPRINT, ES_KEY_PATH, ES_CERT_PATH, ES_P12_PATH, @@ -18,6 +19,10 @@ export { KBN_CERT_PATH, KBN_P12_PATH, KBN_P12_PASSWORD, + FLEET_SERVER_KEY_PATH, + FLEET_SERVER_CERT_PATH, + FLEET_SERVER_P12_PATH, + FLEET_SERVER_P12_PASSWORD, } from './src/certs'; export * from './src/dev_service_account'; export * from './src/axios'; diff --git a/packages/kbn-dev-utils/src/certs.ts b/packages/kbn-dev-utils/src/certs.ts index 9d1a6077d53c1..b53626cb01fe3 100644 --- a/packages/kbn-dev-utils/src/certs.ts +++ b/packages/kbn-dev-utils/src/certs.ts @@ -9,6 +9,8 @@ import { resolve } from 'path'; export const CA_CERT_PATH = process.env.TEST_CA_CERT_PATH || resolve(__dirname, '../certs/ca.crt'); +export const CA_TRUSTED_FINGERPRINT = + 'F71F73085975FD977339A1909EBFE2DF40DB255E0D5BB56FC37246BF383FFC84'; export const ES_KEY_PATH = resolve(__dirname, '../certs/elasticsearch.key'); export const ES_CERT_PATH = resolve(__dirname, '../certs/elasticsearch.crt'); export const ES_P12_PATH = resolve(__dirname, '../certs/elasticsearch.p12'); @@ -22,3 +24,7 @@ export const KBN_KEY_PATH = resolve(__dirname, '../certs/kibana.key'); export const KBN_CERT_PATH = resolve(__dirname, '../certs/kibana.crt'); export const KBN_P12_PATH = resolve(__dirname, '../certs/kibana.p12'); export const KBN_P12_PASSWORD = 'storepass'; +export const FLEET_SERVER_KEY_PATH = resolve(__dirname, '../certs/fleet_server.key'); +export const FLEET_SERVER_CERT_PATH = resolve(__dirname, '../certs/fleet_server.crt'); +export const FLEET_SERVER_P12_PATH = resolve(__dirname, '../certs/fleet_server.p12'); +export const FLEET_SERVER_P12_PASSWORD = 'storepass'; diff --git a/packages/kbn-dev-utils/src/dev_service_account.ts b/packages/kbn-dev-utils/src/dev_service_account.ts index 32a50f5fcecd2..197ae531df755 100644 --- a/packages/kbn-dev-utils/src/dev_service_account.ts +++ b/packages/kbn-dev-utils/src/dev_service_account.ts @@ -17,3 +17,9 @@ export const kibanaDevServiceAccount = { env.TEST_KIBANA_SERVICE_ACCOUNT_TOKEN || 'AAEAAWVsYXN0aWMva2liYW5hL2tpYmFuYS1kZXY6VVVVVVVVTEstKiBaNA', }; + +export const fleetServerDevServiceAccount = { + token: + env.TEST_FLEET_SERVER_SERVICE_ACCOUNT_TOKEN || + 'AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL2ZsZWV0LXNlcnZlci1kZXY6VVo1TWd6MnFTX3FVTWliWGNXNzlwQQ', +}; diff --git a/packages/kbn-es/index.ts b/packages/kbn-es/index.ts index f64664577695f..68256ca572744 100644 --- a/packages/kbn-es/index.ts +++ b/packages/kbn-es/index.ts @@ -12,6 +12,9 @@ export { SYSTEM_INDICES_SUPERUSER, ELASTIC_SERVERLESS_SUPERUSER, ELASTIC_SERVERLESS_SUPERUSER_PASSWORD, + SERVERLESS_NODES, getDockerFileMountPath, + verifyDockerInstalled, + maybeCreateDockerNetwork, } from './src/utils'; export type { ArtifactLicense } from './src/artifact'; diff --git a/packages/kbn-es/src/serverless_resources/README.md b/packages/kbn-es/src/serverless_resources/README.md index 82577579503dc..aa9c0eeafe592 100644 --- a/packages/kbn-es/src/serverless_resources/README.md +++ b/packages/kbn-es/src/serverless_resources/README.md @@ -26,6 +26,7 @@ This section for Service Accounts was originally from the [ES Serverless reposit The "service_tokens" file contains this line: ``` elastic/kibana/kibana-dev:$2a$10$mY2RuGROhk56vLNh.Mgwue98BnkdQPlTR.yGh38ao5jhPJobvuBCq +elastic/fleet-server/fleet-server-dev:$2a$10$tgMX7U09G/EVTP8F/O4zHewhA3DXdv7iM5F2vny9TC6zw77RrutyG ``` That line defines a single service token diff --git a/packages/kbn-es/src/serverless_resources/operator_users.yml b/packages/kbn-es/src/serverless_resources/operator_users.yml index 9040596005236..493b042461688 100644 --- a/packages/kbn-es/src/serverless_resources/operator_users.yml +++ b/packages/kbn-es/src/serverless_resources/operator_users.yml @@ -7,3 +7,8 @@ operator: auth_type: "token" token_source: "file" token_names: [ "kibana-dev" ] + - usernames: [ "elastic/fleet-server" ] + realm_type: "_service_account" + auth_type: "token" + token_source: "file" + token_names: [ "fleet-server-dev" ] diff --git a/packages/kbn-es/src/serverless_resources/service_tokens b/packages/kbn-es/src/serverless_resources/service_tokens index 34bc7476f177f..a4ce74f3db67c 100644 --- a/packages/kbn-es/src/serverless_resources/service_tokens +++ b/packages/kbn-es/src/serverless_resources/service_tokens @@ -1 +1,2 @@ -elastic/kibana/kibana-dev:$2a$10$mY2RuGROhk56vLNh.Mgwue98BnkdQPlTR.yGh38ao5jhPJobvuBCq \ No newline at end of file +elastic/kibana/kibana-dev:$2a$10$mY2RuGROhk56vLNh.Mgwue98BnkdQPlTR.yGh38ao5jhPJobvuBCq +elastic/fleet-server/fleet-server-dev:$2a$10$tgMX7U09G/EVTP8F/O4zHewhA3DXdv7iM5F2vny9TC6zw77RrutyG diff --git a/packages/kbn-es/src/utils/docker.ts b/packages/kbn-es/src/utils/docker.ts index f9ce1e2f391ef..d3d83b7c66cc2 100644 --- a/packages/kbn-es/src/utils/docker.ts +++ b/packages/kbn-es/src/utils/docker.ts @@ -218,7 +218,7 @@ const DOCKER_SSL_ESARGS: Array<[string, string]> = [ ['xpack.security.transport.ssl.keystore.password', ES_P12_PASSWORD], ]; -const SERVERLESS_NODES: Array> = [ +export const SERVERLESS_NODES: Array> = [ { name: 'es01', params: [ diff --git a/x-pack/plugins/fleet/common/types/index.ts b/x-pack/plugins/fleet/common/types/index.ts index 6ef34d045e20f..fc2ad652aae9b 100644 --- a/x-pack/plugins/fleet/common/types/index.ts +++ b/x-pack/plugins/fleet/common/types/index.ts @@ -23,6 +23,7 @@ export interface FleetConfigType { elasticsearch: { hosts?: string[]; ca_sha256?: string; + ca_trusted_fingerprint?: string; }; fleet_server?: { hosts?: string[]; diff --git a/x-pack/plugins/fleet/public/mock/plugin_configuration.ts b/x-pack/plugins/fleet/public/mock/plugin_configuration.ts index 5dad8ad504979..935561426d7c2 100644 --- a/x-pack/plugins/fleet/public/mock/plugin_configuration.ts +++ b/x-pack/plugins/fleet/public/mock/plugin_configuration.ts @@ -18,6 +18,7 @@ export const createConfigurationMock = (): FleetConfigType => { elasticsearch: { hosts: [''], ca_sha256: '', + ca_trusted_fingerprint: '', }, }, }; diff --git a/x-pack/plugins/fleet/server/config.ts b/x-pack/plugins/fleet/server/config.ts index f1210a49f7f0c..3dbcf8a795bb1 100644 --- a/x-pack/plugins/fleet/server/config.ts +++ b/x-pack/plugins/fleet/server/config.ts @@ -120,6 +120,7 @@ export const config: PluginConfigDescriptor = { elasticsearch: schema.object({ hosts: schema.maybe(schema.arrayOf(schema.uri({ scheme: ['http', 'https'] }))), ca_sha256: schema.maybe(schema.string()), + ca_trusted_fingerprint: schema.maybe(schema.string()), }), fleet_server: schema.maybe( schema.object({ diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/outputs.test.ts b/x-pack/plugins/fleet/server/services/preconfiguration/outputs.test.ts index fda7789356956..1023e1bdb7b56 100644 --- a/x-pack/plugins/fleet/server/services/preconfiguration/outputs.test.ts +++ b/x-pack/plugins/fleet/server/services/preconfiguration/outputs.test.ts @@ -89,6 +89,7 @@ describe('output preconfiguration', () => { Array [ Object { "ca_sha256": undefined, + "ca_trusted_fingerprint": undefined, "hosts": Array [ "http://elasticsearc:9201", ], diff --git a/x-pack/plugins/fleet/server/services/preconfiguration/outputs.ts b/x-pack/plugins/fleet/server/services/preconfiguration/outputs.ts index 5f8f1a13feda9..5bc7c452b481e 100644 --- a/x-pack/plugins/fleet/server/services/preconfiguration/outputs.ts +++ b/x-pack/plugins/fleet/server/services/preconfiguration/outputs.ts @@ -30,6 +30,7 @@ export function getPreconfiguredOutputFromConfig(config?: FleetConfigType) { id: DEFAULT_OUTPUT_ID, hosts: config?.agents.elasticsearch.hosts, ca_sha256: config?.agents.elasticsearch.ca_sha256, + ca_trusted_fingerprint: config?.agents.elasticsearch.ca_trusted_fingerprint, is_preconfigured: true, } as PreconfiguredOutput, ] diff --git a/x-pack/plugins/osquery/cypress/e2e/all/alerts_cases.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/alerts_cases.cy.ts index 47976f3740c76..b3053fc11bc9f 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/alerts_cases.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/alerts_cases.cy.ts @@ -25,120 +25,128 @@ import { } from '../../tasks/live_query'; import { generateRandomStringName, interceptCaseId } from '../../tasks/integrations'; import { ServerlessRoleName } from '../../support/roles'; -describe('Alert Event Details - Cases', { tags: ['@ess', '@serverless'] }, () => { - let ruleId: string; - let ruleName: string; - let packId: string; - let packName: string; - const packData = packFixture(); - before(() => { - loadPack(packData).then((data) => { - packId = data.saved_object_id; - packName = data.name; - }); - loadRule(true).then((data) => { - ruleId = data.id; - ruleName = data.name; - loadRuleAlerts(data.name); - }); - }); - - beforeEach(() => { - cy.login(ServerlessRoleName.SOC_MANAGER); - cy.visit('/app/security/rules'); - clickRuleName(ruleName); - }); - - after(() => { - cleanupPack(packId); - cleanupRule(ruleId); - }); - - describe('Case creation', () => { - let caseId: string; +describe( + 'Alert Event Details - Cases', + { tags: ['@ess', '@serverless', '@brokenInServerless'] }, + () => { + let ruleId: string; + let ruleName: string; + let packId: string; + let packName: string; + const packData = packFixture(); before(() => { - interceptCaseId((id) => { - caseId = id; + loadPack(packData).then((data) => { + packId = data.saved_object_id; + packName = data.name; + }); + loadRule(true).then((data) => { + ruleId = data.id; + ruleName = data.name; + loadRuleAlerts(data.name); }); }); + beforeEach(() => { + cy.login(ServerlessRoleName.SOC_MANAGER); + cy.visit('/app/security/rules'); + clickRuleName(ruleName); + }); + after(() => { - cleanupCase(caseId); + cleanupPack(packId); + cleanupRule(ruleId); }); - it('runs osquery against alert and creates a new case', () => { - const [caseName, caseDescription] = generateRandomStringName(2); - cy.getBySel('expand-event').first().click({ force: true }); - cy.getBySel('take-action-dropdown-btn').click(); - cy.getBySel('osquery-action-item').click(); - cy.contains(/^\d+ agen(t|ts) selected/); - cy.contains('Run a set of queries in a pack').click(); - cy.get(LIVE_QUERY_EDITOR).should('not.exist'); - cy.getBySel('select-live-pack').click().type(`${packName}{downArrow}{enter}`); - submitQuery(); - cy.get('[aria-label="Add to Case"]').first().click(); - cy.getBySel('cases-table-add-case-filter-bar').click(); - cy.getBySel('create-case-flyout').should('be.visible'); - cy.getBySel('caseTitle').within(() => { - cy.getBySel('input').type(caseName); + describe('Case creation', () => { + let caseId: string; + + before(() => { + interceptCaseId((id) => { + caseId = id; + }); }); - cy.getBySel('caseDescription').within(() => { - cy.getBySel('euiMarkdownEditorTextArea').type(caseDescription); + + after(() => { + cleanupCase(caseId); + }); + + it('runs osquery against alert and creates a new case', () => { + const [caseName, caseDescription] = generateRandomStringName(2); + cy.getBySel('expand-event').first().click({ force: true }); + cy.getBySel('take-action-dropdown-btn').click(); + cy.getBySel('osquery-action-item').click(); + cy.contains(/^\d+ agen(t|ts) selected/); + cy.contains('Run a set of queries in a pack').click(); + cy.get(LIVE_QUERY_EDITOR).should('not.exist'); + cy.getBySel('select-live-pack').click().type(`${packName}{downArrow}{enter}`); + submitQuery(); + cy.get('[aria-label="Add to Case"]').first().click(); + cy.getBySel('cases-table-add-case-filter-bar').click(); + cy.getBySel('create-case-flyout').should('be.visible'); + cy.getBySel('caseTitle').within(() => { + cy.getBySel('input').type(caseName); + }); + cy.getBySel('caseDescription').within(() => { + cy.getBySel('euiMarkdownEditorTextArea').type(caseDescription); + }); + cy.getBySel('create-case-submit').click(); + cy.contains(`An alert was added to "${caseName}"`); }); - cy.getBySel('create-case-submit').click(); - cy.contains(`An alert was added to "${caseName}"`); }); - }); - // verify why calling new action doesnt add to response actions list - describe.skip('Case', () => { - let caseId: string; + // verify why calling new action doesnt add to response actions list + describe.skip('Case', () => { + let caseId: string; - before(() => { - loadCase('securitySolution').then((data) => { - caseId = data.id; + before(() => { + loadCase('securitySolution').then((data) => { + caseId = data.id; + }); }); - }); - after(() => { - cleanupCase(caseId); - }); + after(() => { + cleanupCase(caseId); + }); - it('sees osquery results from last action and add to a case', () => { - cy.getBySel('expand-event').first().click(); - cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseSectionHeader').click(); - cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseButton').click(); - cy.getBySel('responseActionsViewWrapper').should('exist'); - cy.contains('select * from users;'); - cy.contains("SELECT * FROM os_version where name='Ubuntu';"); - cy.getBySel('osquery-results-comment').each(($comment) => { - cy.wrap($comment).within(() => { - // On initial load result table might not render due to displayed error - if ($comment.find('div .euiDataGridRow').length <= 0) { - // If tabs are present try clicking between status and results to get rid of the error message - if ($comment.find('div .euiTabs').length > 0) { - cy.getBySel('osquery-status-tab').click(); - cy.getBySel('osquery-results-tab').click(); + it('sees osquery results from last action and add to a case', () => { + cy.getBySel('expand-event').first().click(); + cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseSectionHeader').click(); + cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseButton').click(); + cy.getBySel('responseActionsViewWrapper').should('exist'); + cy.contains('select * from users;'); + cy.contains("SELECT * FROM os_version where name='Ubuntu';"); + cy.getBySel('osquery-results-comment').each(($comment) => { + cy.wrap($comment).within(() => { + // On initial load result table might not render due to displayed error + if ($comment.find('div .euiDataGridRow').length <= 0) { + // If tabs are present try clicking between status and results to get rid of the error message + if ($comment.find('div .euiTabs').length > 0) { + cy.getBySel('osquery-status-tab').click(); + cy.getBySel('osquery-results-tab').click(); + cy.getBySel('dataGridRowCell', { timeout: 120000 }).should( + 'have.lengthOf.above', + 0 + ); + } + } else { + // Result tab was rendered successfully cy.getBySel('dataGridRowCell', { timeout: 120000 }).should('have.lengthOf.above', 0); } - } else { - // Result tab was rendered successfully - cy.getBySel('dataGridRowCell', { timeout: 120000 }).should('have.lengthOf.above', 0); - } - // } + // } + }); + }); + checkActionItemsInResults({ + lens: true, + discover: true, + cases: true, + timeline: true, }); - }); - checkActionItemsInResults({ - lens: true, - discover: true, - cases: true, - timeline: true, - }); - addToCase(caseId); - viewRecentCaseAndCheckResults(); + addToCase(caseId); + viewRecentCaseAndCheckResults(); + }); }); - }); -}); + } +); diff --git a/x-pack/plugins/osquery/cypress/e2e/all/alerts_liked_apps.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/alerts_liked_apps.cy.ts index 76850020d74ff..19774d956a303 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/alerts_liked_apps.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/alerts_liked_apps.cy.ts @@ -20,6 +20,7 @@ import { ServerlessRoleName } from '../../support/roles'; const UUID_REGEX = '[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}'; +// Issue: https://github.com/elastic/security-team/issues/7731 describe.skip('Alert Event Details', { tags: ['@ess', '@serverless'] }, () => { let ruleId: string; let ruleName: string; diff --git a/x-pack/plugins/osquery/cypress/e2e/all/alerts_multiple_agents.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/alerts_multiple_agents.cy.ts index c56eb97a02050..d9be2632bdca2 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/alerts_multiple_agents.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/alerts_multiple_agents.cy.ts @@ -15,93 +15,97 @@ import { } from '../../tasks/live_query'; import { ServerlessRoleName } from '../../support/roles'; -describe('Alert Event Details - dynamic params', { tags: ['@ess', '@serverless'] }, () => { - let ruleId: string; - let ruleName: string; +describe( + 'Alert Event Details - dynamic params', + { tags: ['@ess', '@serverless', '@brokenInServerless'] }, + () => { + let ruleId: string; + let ruleName: string; - before(() => { - loadRule(true).then((data) => { - ruleId = data.id; - ruleName = data.name; - loadRuleAlerts(data.name); + before(() => { + loadRule(true).then((data) => { + ruleId = data.id; + ruleName = data.name; + loadRuleAlerts(data.name); + }); }); - }); - - after(() => { - cleanupRule(ruleId); - }); - - beforeEach(() => { - cy.login(ServerlessRoleName.SOC_MANAGER); - cy.visit('/app/security/rules'); - clickRuleName(ruleName); - }); - it('should substitute parameters in investigation guide', () => { - cy.getBySel('expand-event').first().click(); - cy.getBySel('securitySolutionFlyoutInvestigationGuideButton').click(); - cy.contains('Get processes').click(); - cy.getBySel('flyout-body-osquery').within(() => { - cy.contains("SELECT * FROM os_version where name='Ubuntu';"); - cy.contains('host.os.platform'); - cy.contains('platform'); + after(() => { + cleanupRule(ruleId); }); - }); - // response-actions-notification doesn't exist in expandable flyout - it.skip('should substitute parameters in live query and increase number of ran queries', () => { - let initialNotificationCount: number; - let updatedNotificationCount: number; - cy.getBySel('expand-event').first().click(); - cy.getBySel('response-actions-notification') - .should('not.have.text', '0') - .then((element) => { - initialNotificationCount = parseInt(element.text(), 10); - }); - takeOsqueryActionWithParams(); - cy.getBySel('osquery-empty-button').click(); - cy.getBySel('response-actions-notification') - .should('not.have.text', '0') - .then((element) => { - updatedNotificationCount = parseInt(element.text(), 10); - expect(initialNotificationCount).to.be.equal(updatedNotificationCount - 1); - }) - .then(() => { - cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseSectionHeader').click(); - cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseButton').click(); - cy.getBySel('responseActionsViewWrapper').within(() => { - cy.contains('tags'); - cy.getBySel('osquery-results-comment').should('have.length', updatedNotificationCount); - }); - }); + beforeEach(() => { + cy.login(ServerlessRoleName.SOC_MANAGER); + cy.visit('/app/security/rules'); + clickRuleName(ruleName); + }); - it('should be able to run take action query against all enrolled agents', () => { + it('should substitute parameters in investigation guide', () => { cy.getBySel('expand-event').first().click(); - cy.getBySel('take-action-dropdown-btn').click(); - cy.getBySel('osquery-action-item').click(); - cy.getBySel('agentSelection').within(() => { - cy.getBySel('comboBoxClearButton').click(); - cy.getBySel('comboBoxInput').type('All{downArrow}{enter}{esc}'); - cy.contains('All agents'); - }); - inputQuery("SELECT * FROM os_version where name='{{host.os.name}}';", { - parseSpecialCharSequences: false, - }); - cy.wait(1000); - submitQuery(); + cy.getBySel('securitySolutionFlyoutInvestigationGuideButton').click(); + cy.contains('Get processes').click(); cy.getBySel('flyout-body-osquery').within(() => { - // at least 2 agents should have responded, sometimes it takes a while for the agents to respond - cy.get('[data-grid-row-index]', { timeout: 6000000 }).should('have.length.at.least', 2); + cy.contains("SELECT * FROM os_version where name='Ubuntu';"); + cy.contains('host.os.platform'); + cy.contains('platform'); }); }); - it('should substitute params in osquery ran from timelines alerts', () => { - loadRuleAlerts(ruleName); - cy.getBySel('send-alert-to-timeline-button').first().click(); - cy.getBySel('query-events-table').within(() => { + // response-actions-notification doesn't exist in expandable flyout + it.skip('should substitute parameters in live query and increase number of ran queries', () => { + let initialNotificationCount: number; + let updatedNotificationCount: number; + cy.getBySel('expand-event').first().click(); + cy.getBySel('response-actions-notification') + .should('not.have.text', '0') + .then((element) => { + initialNotificationCount = parseInt(element.text(), 10); + }); + takeOsqueryActionWithParams(); + cy.getBySel('osquery-empty-button').click(); + cy.getBySel('response-actions-notification') + .should('not.have.text', '0') + .then((element) => { + updatedNotificationCount = parseInt(element.text(), 10); + expect(initialNotificationCount).to.be.equal(updatedNotificationCount - 1); + }) + .then(() => { + cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseSectionHeader').click(); + cy.getBySel('securitySolutionDocumentDetailsFlyoutResponseButton').click(); + cy.getBySel('responseActionsViewWrapper').within(() => { + cy.contains('tags'); + cy.getBySel('osquery-results-comment').should('have.length', updatedNotificationCount); + }); + }); + + it('should be able to run take action query against all enrolled agents', () => { cy.getBySel('expand-event').first().click(); + cy.getBySel('take-action-dropdown-btn').click(); + cy.getBySel('osquery-action-item').click(); + cy.getBySel('agentSelection').within(() => { + cy.getBySel('comboBoxClearButton').click(); + cy.getBySel('comboBoxInput').type('All{downArrow}{enter}{esc}'); + cy.contains('All agents'); + }); + inputQuery("SELECT * FROM os_version where name='{{host.os.name}}';", { + parseSpecialCharSequences: false, + }); + cy.wait(1000); + submitQuery(); + cy.getBySel('flyout-body-osquery').within(() => { + // at least 2 agents should have responded, sometimes it takes a while for the agents to respond + cy.get('[data-grid-row-index]', { timeout: 6000000 }).should('have.length.at.least', 2); + }); + }); + + it('should substitute params in osquery ran from timelines alerts', () => { + loadRuleAlerts(ruleName); + cy.getBySel('send-alert-to-timeline-button').first().click(); + cy.getBySel('query-events-table').within(() => { + cy.getBySel('expand-event').first().click(); + }); + takeOsqueryActionWithParams(); }); - takeOsqueryActionWithParams(); }); - }); -}); + } +); diff --git a/x-pack/plugins/osquery/cypress/e2e/all/alerts_response_actions_form.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/alerts_response_actions_form.cy.ts index 95661cd848470..cd7f70a3ac9c3 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/alerts_response_actions_form.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/alerts_response_actions_form.cy.ts @@ -28,6 +28,7 @@ import { import { closeDateTabIfVisible, closeToastIfVisible } from '../../tasks/integrations'; import { ServerlessRoleName } from '../../support/roles'; +// Issue: https://github.com/elastic/security-team/issues/7731 describe.skip( 'Alert Event Details - Response Actions Form', { tags: ['@ess', '@serverless'] }, diff --git a/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts index f1893e5e5a16f..2a920ef22ef6a 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts @@ -18,7 +18,7 @@ import { LIVE_QUERY_EDITOR } from '../../screens/live_query'; import { getAdvancedButton } from '../../screens/integrations'; import { ServerlessRoleName } from '../../support/roles'; -describe('ALL - Live Query', { tags: ['@serverless', '@ess'] }, () => { +describe('ALL - Live Query', { tags: ['@ess', '@serverless'] }, () => { beforeEach(() => { cy.login(ServerlessRoleName.SOC_MANAGER); navigateTo('/app/osquery'); diff --git a/x-pack/plugins/osquery/cypress/e2e/all/live_query_packs.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/live_query_packs.cy.ts index fb5566ba3c393..cc6a367668b08 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/live_query_packs.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/live_query_packs.cy.ts @@ -18,7 +18,7 @@ import { LIVE_QUERY_EDITOR } from '../../screens/live_query'; import { loadPack, cleanupPack, cleanupCase, loadCase } from '../../tasks/api_fixtures'; import { ServerlessRoleName } from '../../support/roles'; -describe('ALL - Live Query Packs', { tags: ['@serverless', '@ess'] }, () => { +describe('ALL - Live Query Packs', { tags: ['@ess', '@serverless'] }, () => { let packName: string; let packId: string; let caseId: string; @@ -75,7 +75,6 @@ describe('ALL - Live Query Packs', { tags: ['@serverless', '@ess'] }, () => { cy.contains('failingQuery'); selectAllAgents(); submitQuery(); - cy.getBySel('live-query-loading').should('exist'); cy.getBySel('toggleIcon-system_memory_linux_elastic').click(); checkResults(); checkActionItemsInResults({ diff --git a/x-pack/plugins/osquery/cypress/e2e/all/packs_create_edit.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/packs_create_edit.cy.ts index 770d5afc5ec0f..ca093c9241256 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/packs_create_edit.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/packs_create_edit.cy.ts @@ -509,70 +509,74 @@ describe('Packs - Create and Edit', () => { }); }); - describe('should verify that packs are triggered', { tags: ['@ess', '@serverless'] }, () => { - let packId: string; - let packName: string; + describe( + 'should verify that packs are triggered', + { tags: ['@ess', '@serverless', '@brokenInServerless'] }, + () => { + let packId: string; + let packName: string; - before(() => { - request<{ items: PackagePolicy[] }>({ - url: '/internal/osquery/fleet_wrapper/package_policies', - headers: { - 'Elastic-Api-Version': API_VERSIONS.internal.v1, - }, - }) - .then((response) => - loadPack({ - policy_ids: [response.body.items[0].policy_id], - queries: { - [savedQueryName]: { ecs_mapping: {}, interval: 60, query: 'select * from uptime;' }, - }, - }) - ) - .then((pack) => { - packId = pack.saved_object_id; - packName = pack.name; - }); - }); + before(() => { + request<{ items: PackagePolicy[] }>({ + url: '/internal/osquery/fleet_wrapper/package_policies', + headers: { + 'Elastic-Api-Version': API_VERSIONS.internal.v1, + }, + }) + .then((response) => + loadPack({ + policy_ids: [response.body.items[0].policy_id], + queries: { + [savedQueryName]: { ecs_mapping: {}, interval: 60, query: 'select * from uptime;' }, + }, + }) + ) + .then((pack) => { + packId = pack.saved_object_id; + packName = pack.name; + }); + }); - after(() => { - cleanupPack(packId); - }); + after(() => { + cleanupPack(packId); + }); - it('', () => { - preparePack(packName); - cy.contains(`${packName} details`).should('exist'); + it('', () => { + preparePack(packName); + cy.contains(`${packName} details`).should('exist'); - recurse( - () => { - cy.getBySel('docsLoading').should('exist'); - cy.getBySel('docsLoading').should('not.exist'); + recurse( + () => { + cy.getBySel('docsLoading').should('exist'); + cy.getBySel('docsLoading').should('not.exist'); - return cy.get('tbody .euiTableRow > td:nth-child(5)').invoke('text'); - }, - (response) => response === 'Docs1', - { - timeout: 300000, - post: () => { - cy.reload(); + return cy.get('tbody .euiTableRow > td:nth-child(5)').invoke('text'); }, - } - ); + (response) => response === 'Docs1', + { + timeout: 300000, + post: () => { + cy.reload(); + }, + } + ); - cy.react('ScheduledQueryLastResults', { options: { timeout: 3000 } }) - .should('exist') - .within(() => { - cy.react('FormattedRelative'); - }); + cy.react('ScheduledQueryLastResults', { options: { timeout: 3000 } }) + .should('exist') + .within(() => { + cy.react('FormattedRelative'); + }); - cy.react('DocsColumnResults').within(() => { - cy.react('EuiNotificationBadge').contains('1'); - }); - cy.react('AgentsColumnResults').within(() => { - cy.react('EuiNotificationBadge').contains('1'); + cy.react('DocsColumnResults').within(() => { + cy.react('EuiNotificationBadge').contains('1'); + }); + cy.react('AgentsColumnResults').within(() => { + cy.react('EuiNotificationBadge').contains('1'); + }); + cy.getBySel('packResultsErrorsEmpty').should('have.length', 1); }); - cy.getBySel('packResultsErrorsEmpty').should('have.length', 1); - }); - }); + } + ); describe('delete all queries in the pack', { tags: ['@ess', '@serverless'] }, () => { let packId: string; diff --git a/x-pack/plugins/osquery/cypress/e2e/all/packs_integration.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/packs_integration.cy.ts index 15fe843139174..694a6c10ed8b1 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/packs_integration.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/packs_integration.cy.ts @@ -160,7 +160,6 @@ describe('ALL - Packs', { tags: ['@ess', '@serverless'] }, () => { cy.getBySel('select-live-pack').click().type('osquery-monitoring{downArrow}{enter}'); selectAllAgents(); submitQuery(); - cy.getBySel('live-query-loading').should('exist'); cy.getBySel('toggleIcon-events').click(); checkResults(); checkActionItemsInResults({ diff --git a/x-pack/plugins/osquery/cypress/e2e/all/saved_queries.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/saved_queries.cy.ts index 017c86ed0247b..a02d10bda2bf9 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/saved_queries.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/saved_queries.cy.ts @@ -22,7 +22,7 @@ import { getSavedQueriesComplexTest } from '../../tasks/saved_queries'; import { loadCase, cleanupCase, loadPack, cleanupPack } from '../../tasks/api_fixtures'; import { ServerlessRoleName } from '../../support/roles'; -describe('ALL - Saved queries', { tags: ['@ess', '@serverless'] }, () => { +describe('ALL - Saved queries', { tags: ['@ess', '@serverless', '@brokenInServerless'] }, () => { let caseId: string; before(() => { @@ -82,6 +82,7 @@ describe('ALL - Saved queries', { tags: ['@ess', '@serverless'] }, () => { }); beforeEach(() => { + cy.login(ServerlessRoleName.SOC_MANAGER); navigateTo('/app/osquery/saved_queries'); cy.getBySel('tablePaginationPopoverButton').click(); cy.getBySel('tablePagination-50-rows').click(); diff --git a/x-pack/plugins/osquery/cypress/e2e/roles/t1_and_t2_analyst.cy.ts b/x-pack/plugins/osquery/cypress/e2e/roles/t1_and_t2_analyst.cy.ts index 6528c9b911932..3a72415dce69e 100644 --- a/x-pack/plugins/osquery/cypress/e2e/roles/t1_and_t2_analyst.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/roles/t1_and_t2_analyst.cy.ts @@ -23,9 +23,9 @@ import { } from '../../tasks/api_fixtures'; import type { ServerlessRoleName } from '../../support/roles'; -describe(`T1 and T2 analysts`, { tags: ['@ess', '@serverless'] }, () => { +describe(`T1 and T2 analysts`, { tags: ['@ess', '@serverless', '@brokenInServerless'] }, () => { ['t1_analyst', 't2_analyst'].forEach((role: string) => { - describe(`${role}- READ + runSavedQueries `, { tags: ['@ess', '@serverless'] }, () => { + describe(`${role}- READ + runSavedQueries `, () => { let savedQueryName: string; let savedQueryId: string; let packName: string; diff --git a/x-pack/plugins/osquery/cypress/support/e2e.ts b/x-pack/plugins/osquery/cypress/support/e2e.ts index 760aeb80d3ee8..3ff2329a1f5b9 100644 --- a/x-pack/plugins/osquery/cypress/support/e2e.ts +++ b/x-pack/plugins/osquery/cypress/support/e2e.ts @@ -72,7 +72,17 @@ Cypress.Commands.add( () => cy.get('body').click(0, 0) // 0,0 here are the x and y coordinates ); -Cypress.Commands.add('login', login); +Cypress.Commands.add('login', (role) => { + // TODO Temporary approach to login until login with role is supported in serverless + // Cypress.Commands.add('login', login); + const isServerless = Cypress.env().IS_SERVERLESS; + + if (isServerless) { + return login.with('system_indices_superuser', 'changeme'); + } + + return login(role); +}); // Alternatively you can use CommonJS syntax: // require('./commands') diff --git a/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/fleet_server.ts b/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/fleet_server.ts index 60471c5c46864..ae2464487cb75 100644 --- a/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/fleet_server.ts +++ b/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/fleet_server.ts @@ -5,6 +5,12 @@ * 2.0. */ +import { + CA_TRUSTED_FINGERPRINT, + FLEET_SERVER_CERT_PATH, + FLEET_SERVER_KEY_PATH, + fleetServerDevServiceAccount, +} from '@kbn/dev-utils'; import type { AgentPolicy, CreateAgentPolicyResponse, @@ -37,6 +43,9 @@ import type { PostFleetServerHostsResponse, } from '@kbn/fleet-plugin/common/types/rest_spec/fleet_server_hosts'; import chalk from 'chalk'; +import { resolve } from 'path'; +import { SERVERLESS_NODES, verifyDockerInstalled, maybeCreateDockerNetwork } from '@kbn/es'; +import { isServerlessKibanaFlavor } from '../common/stack_services'; import type { FormattedAxiosError } from '../common/format_axios_error'; import { catchAxiosErrorFormatAndThrow } from '../common/format_axios_error'; import { isLocalhost } from '../common/is_localhost'; @@ -44,32 +53,42 @@ import { dump } from './utils'; import { fetchFleetServerUrl, waitForHostToEnroll } from '../common/fleet_services'; import { getRuntimeServices } from './runtime'; +const FLEET_SERVER_CUSTOM_CONFIG = resolve(__dirname, './fleet_server.yml'); + export const runFleetServerIfNeeded = async (): Promise< - { fleetServerContainerId: string; fleetServerAgentPolicyId: string } | undefined + { fleetServerContainerId: string; fleetServerAgentPolicyId: string | undefined } | undefined > => { let fleetServerContainerId; let fleetServerAgentPolicyId; + let serviceToken; const { log, kibana: { isLocalhost: isKibanaOnLocalhost }, + kbnClient, } = getRuntimeServices(); log.info(`Setting up fleet server (if necessary)`); log.indent(4); + const isServerless = await isServerlessKibanaFlavor(kbnClient); - try { - fleetServerAgentPolicyId = await getOrCreateFleetServerAgentPolicyId(); - const serviceToken = await generateFleetServiceToken(); + await verifyDockerInstalled(log); + await maybeCreateDockerNetwork(log); - if (isKibanaOnLocalhost) { - await configureFleetIfNeeded(); + try { + if (isServerless) { + fleetServerContainerId = await startFleetServerStandAloneWithDocker(); + } else { + fleetServerAgentPolicyId = await getOrCreateFleetServerAgentPolicyId(); + serviceToken = await generateFleetServiceToken(); + if (isKibanaOnLocalhost) { + await configureFleetIfNeeded(); + } + fleetServerContainerId = await startFleetServerWithDocker({ + policyId: fleetServerAgentPolicyId, + serviceToken, + }); } - - fleetServerContainerId = await startFleetServerWithDocker({ - policyId: fleetServerAgentPolicyId, - serviceToken, - }); } catch (error) { log.error(dump(error)); log.indent(-4); @@ -201,39 +220,29 @@ export const startFleetServerWithDocker = async ({ try { const dockerArgs = [ 'run', - '--restart', 'no', - + '--net', + 'elastic', '--add-host', 'host.docker.internal:host-gateway', - '--rm', - '--detach', - '--name', containerName, - // The container's hostname will appear in Fleet when the agent enrolls '--hostname', containerName, - '--env', 'FLEET_SERVER_ENABLE=1', - '--env', `FLEET_SERVER_ELASTICSEARCH_HOST=${esUrlWithRealIp}`, - '--env', `FLEET_SERVER_SERVICE_TOKEN=${serviceToken}`, - '--env', `FLEET_SERVER_POLICY=${policyId}`, - '--publish', `${fleetServerPort}:8220`, - `docker.elastic.co/beats/elastic-agent:${version}`, ]; @@ -278,6 +287,95 @@ export const startFleetServerWithDocker = async ({ return containerId; }; +export const startFleetServerStandAloneWithDocker = async () => { + let containerId; + const { + log, + elastic: { url: elasticUrl }, + fleetServer: { port: fleetServerPort }, + } = getRuntimeServices(); + + log.info(`Starting a new fleet server using Docker`); + log.indent(4); + const esURL = new URL(elasticUrl); + + esURL.hostname = SERVERLESS_NODES[0].name; + + const esUrlWithRealIp = esURL.toString(); + + const containerName = `dev-fleet-server.${fleetServerPort}`; + try { + const dockerArgs = [ + 'run', + '--restart', + 'no', + '--net', + 'elastic', + '--add-host', + 'host.docker.internal:host-gateway', + '--rm', + '--detach', + '--name', + containerName, + // The container's hostname will appear in Fleet when the agent enrolls + '--hostname', + containerName, + '--volume', + `${FLEET_SERVER_CERT_PATH}:/fleet-server.crt`, + '--volume', + `${FLEET_SERVER_KEY_PATH}:/fleet-server.key`, + '--env', + 'FLEET_SERVER_CERT=/fleet-server.crt', + '--env', + 'FLEET_SERVER_CERT_KEY=/fleet-server.key', + '--env', + `ELASTICSEARCH_HOSTS=${esUrlWithRealIp}`, + '--env', + `ELASTICSEARCH_SERVICE_TOKEN=${fleetServerDevServiceAccount.token}`, + '--env', + `ELASTICSEARCH_CA_TRUSTED_FINGERPRINT=${CA_TRUSTED_FINGERPRINT}`, + '--volume', + `${FLEET_SERVER_CUSTOM_CONFIG}:/etc/fleet-server.yml:ro`, + '--publish', + `${fleetServerPort}:8220`, + `docker.elastic.co/observability-ci/fleet-server:latest`, + ]; + + await execa('docker', ['kill', containerName]) + .then(() => { + log.verbose( + `Killed an existing container with name [${containerName}]. New one will be started.` + ); + }) + .catch((error) => { + log.verbose(`Attempt to kill currently running fleet-server container (if any) with name [${containerName}] was unsuccessful: + ${error} +(This is ok if one was not running already)`); + }); + + log.verbose(`docker arguments:\n${dockerArgs.join(' ')}`); + + containerId = (await execa('docker', dockerArgs)).stdout; + + log.info(`Done. Fleet Server Stand Alone is running and connected to Fleet. + Container Name: ${containerName} + Container Id: ${containerId} + + View running output: ${chalk.bold(`docker attach ---sig-proxy=false ${containerName}`)} + Shell access: ${chalk.bold(`docker exec -it ${containerName} /bin/bash`)} + Kill container: ${chalk.bold(`docker kill ${containerId}`)} +`); + } catch (error) { + log.error(dump(error)); + log.indent(-4); + throw error; + } + + log.indent(-4); + + return containerId; +}; + const configureFleetIfNeeded = async () => { const { log, kbnClient, localhostRealIp } = getRuntimeServices(); diff --git a/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/fleet_server.yml b/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/fleet_server.yml new file mode 100644 index 0000000000000..3eef6445a9eae --- /dev/null +++ b/x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_runner/fleet_server.yml @@ -0,0 +1,26 @@ +# This config is intended to be used with a stand-alone fleet-server instance for development. +output: + elasticsearch: + hosts: '${ELASTICSEARCH_HOSTS}' + service_token: '${ELASTICSEARCH_SERVICE_TOKEN}' + ssl.ca_trusted_fingerprint: '${ELASTICSEARCH_CA_TRUSTED_FINGERPRINT}' + +fleet: + agent: + id: '${FLEET_SERVER_AGENT_ID:dev-fleet-server}' + +inputs: + - type: fleet-server + policy.id: '${FLEET_SERVER_POLICY_ID:fleet-server-policy}' + server: + ssl: + enabled: true + certificate: /fleet-server.crt + key: /fleet-server.key + +logging: + to_stderr: true # Force the logging output to stderr + pretty: true + level: '${LOG_LEVEL:DEBUG}' + +http.enabled: true diff --git a/x-pack/plugins/security_solution/scripts/run_cypress/get_ftr_config.ts b/x-pack/plugins/security_solution/scripts/run_cypress/get_ftr_config.ts index 11f39f6b4a27d..670a85fae4093 100644 --- a/x-pack/plugins/security_solution/scripts/run_cypress/get_ftr_config.ts +++ b/x-pack/plugins/security_solution/scripts/run_cypress/get_ftr_config.ts @@ -6,9 +6,10 @@ */ import _ from 'lodash'; - +import { SERVERLESS_NODES } from '@kbn/es'; import { EsVersion, readConfigFile } from '@kbn/test'; import type { ToolingLog } from '@kbn/tooling-log'; +import { CA_TRUSTED_FINGERPRINT } from '@kbn/dev-utils'; import { getLocalhostRealIp } from '../endpoint/common/localhost_services'; import type { parseTestFileConfig } from './utils'; @@ -133,15 +134,23 @@ export const getFTRConfig = ({ } if (hasFleetServerArgs) { - vars.kbnTestServer.serverArgs.push( - `--xpack.fleet.agents.fleet_server.hosts=["https://${hostRealIp}:${fleetServerPort}"]` - ); - vars.kbnTestServer.serverArgs.push( - `--xpack.fleet.agents.elasticsearch.host=http://${hostRealIp}:${esPort}` - ); - if (vars.serverless) { - vars.kbnTestServer.serverArgs.push(`--xpack.fleet.internal.fleetServerStandalone=false`); + vars.kbnTestServer.serverArgs.push( + `--xpack.fleet.agents.fleet_server.hosts=["https://host.docker.internal:${fleetServerPort}"]` + ); + vars.kbnTestServer.serverArgs.push( + `--xpack.fleet.agents.elasticsearch.host=https://${SERVERLESS_NODES[0].name}:${esPort}` + ); + vars.kbnTestServer.serverArgs.push( + `--xpack.fleet.agents.elasticsearch.ca_trusted_fingerprint=${CA_TRUSTED_FINGERPRINT}` + ); + } else { + vars.kbnTestServer.serverArgs.push( + `--xpack.fleet.agents.fleet_server.hosts=["https://${hostRealIp}:${fleetServerPort}"]` + ); + vars.kbnTestServer.serverArgs.push( + `--xpack.fleet.agents.elasticsearch.host=http://${hostRealIp}:${esPort}` + ); } } diff --git a/x-pack/plugins/security_solution/tsconfig.json b/x-pack/plugins/security_solution/tsconfig.json index 0eea99624d611..d88577ca21f19 100644 --- a/x-pack/plugins/security_solution/tsconfig.json +++ b/x-pack/plugins/security_solution/tsconfig.json @@ -173,6 +173,7 @@ "@kbn/content-management-plugin", "@kbn/discover-utils", "@kbn/subscription-tracking", - "@kbn/openapi-generator" + "@kbn/openapi-generator", + "@kbn/es" ] } diff --git a/x-pack/test/cloud_integration/plugins/saml_provider/metadata.xml b/x-pack/test/cloud_integration/plugins/saml_provider/metadata.xml index 8cb33193f56c9..c65972be45b45 100644 --- a/x-pack/test/cloud_integration/plugins/saml_provider/metadata.xml +++ b/x-pack/test/cloud_integration/plugins/saml_provider/metadata.xml @@ -7,24 +7,25 @@ - MIIDOTCCAiGgAwIBAgIVAN0GVNLw3IaUBuG7t6CeW8w2wyymMA0GCSqGSIb3DQEB -CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu -ZXJhdGVkIENBMCAXDTIxMTAxMzEwMTU1OFoYDzIwNzExMDAxMTAxNTU4WjARMQ8w -DQYDVQQDEwZraWJhbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3 -nvfL3/26D8EkLso+t9S0m+tSJipLsBWs0dCpc8KRJ/+ijDRnAQ5lOmOAcxt43SNY -KFr0EntQEZyYaRwMIM8aPR0WYW/VV5o4fq2o/JnmHqzZJRJCwZq+5WiCiDPt012N -mRGYCMUxjlEwejue6diLAeQhZ/sfN4jUp217bMEHrhHrNBWTwwJ+Uk5TBQMhviCW -LKbsKrfluA6DGHWrXN4pH7Xmaf/Zyc9AYL/nxwv3VQHZzIAK/U/WNCgFJJ3qoFYY -6TUwDDNa30mSj165OOds9N+VmUlDC3IFiHV3osBWscSU4HJd6QJ8huHrFLLV4y4i -u62el47Qr+/8Ut3SzeIXAgMBAAGjYzBhMB0GA1UdDgQWBBQli5f2bYL9jKUA5Uxp -yRRHeCoPJzAfBgNVHSMEGDAWgBQwTCrAjlvQxik3HBocn1PDUunenjAUBgNVHREE -DTALgglsb2NhbGhvc3QwCQYDV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0jBBgwFoAUMEwqwI5b0MYpNxwaHJ9Tw1Lp3p4wPAYDVR0R +BDUwM4IUaG9zdC5kb2NrZXIuaW50ZXJuYWyCCWxvY2FsaG9zdIIEZXMwM4IEZXMw +MoIEZXMwMTAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQCxqvQYXSKqgpdl +SP4gXgwipAnYsoW9qkgWQODTvSBEzUdOWme0d3j7i2l6Ur/nVSv5YjkqAv1hf/yJ +Hrk9h+j29ZO/aQ/KDh5i/gTEUnPw3Bxbw47dfn23tjMWO7NCU1fr5HNztRsa/gQr +e9s07g25u/gTfTi9Fyu0lcRe3bXOLS/mFVcuC5oxuS65R9OlbIsiORkZ2EfwuNUf +wAAYOGPIjM2VlQCvBitefsd/SzRKHdxSPy6KSjkO6MGEGo87fr7B7Nx1qp1DVrK7 +q9XeP1Cuygjg9WTcnsvWvNw8CssyuFM6X/3tGjpPasXwLvNUoG2AairK2AYTWhvS +foE31cFg diff --git a/x-pack/test/osquery_cypress/agent.ts b/x-pack/test/osquery_cypress/agent.ts index 07ee5e79d9635..7456e73b2333a 100644 --- a/x-pack/test/osquery_cypress/agent.ts +++ b/x-pack/test/osquery_cypress/agent.ts @@ -32,6 +32,8 @@ export class AgentManager extends Manager { const dockerArgs = [ 'run', + '--net', + 'elastic', '--detach', '--add-host', 'host.docker.internal:host-gateway', diff --git a/x-pack/test/osquery_cypress/artifact_manager.ts b/x-pack/test/osquery_cypress/artifact_manager.ts index 0239174434a37..54b9a70d37aff 100644 --- a/x-pack/test/osquery_cypress/artifact_manager.ts +++ b/x-pack/test/osquery_cypress/artifact_manager.ts @@ -6,5 +6,5 @@ */ export async function getLatestVersion(): Promise { - return '8.10.0-SNAPSHOT'; + return '8.11.0-SNAPSHOT'; } diff --git a/x-pack/test/osquery_cypress/runner.ts b/x-pack/test/osquery_cypress/runner.ts index 08162b4670350..fddd90a336d05 100644 --- a/x-pack/test/osquery_cypress/runner.ts +++ b/x-pack/test/osquery_cypress/runner.ts @@ -7,6 +7,7 @@ import Url from 'url'; +import { verifyDockerInstalled, maybeCreateDockerNetwork } from '@kbn/es'; import { startRuntimeServices } from '@kbn/security-solution-plugin/scripts/endpoint/endpoint_agent_runner/runtime'; import { FtrProviderContext } from './ftr_provider_context'; @@ -29,6 +30,9 @@ async function setupFleetAgent({ getService }: FtrProviderContext) { const username = config.get('servers.elasticsearch.username'); const password = config.get('servers.elasticsearch.password'); + await verifyDockerInstalled(log); + await maybeCreateDockerNetwork(log); + await startRuntimeServices({ log, elasticUrl, diff --git a/x-pack/test/osquery_cypress/serverless_cli_config.ts b/x-pack/test/osquery_cypress/serverless_cli_config.ts index 8b9f15ded02c6..723a65dda94ca 100644 --- a/x-pack/test/osquery_cypress/serverless_cli_config.ts +++ b/x-pack/test/osquery_cypress/serverless_cli_config.ts @@ -7,6 +7,7 @@ import { FtrConfigProviderContext } from '@kbn/test'; +import { SERVERLESS_NODES } from '@kbn/es'; import { startOsqueryCypress } from './runner'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { @@ -32,12 +33,11 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { serverArgs: [ ...securitySolutionCypressConfig.get('kbnTestServer.serverArgs'), `--xpack.fleet.agents.fleet_server.hosts=["https://host.docker.internal:8220"]`, - `--xpack.fleet.agents.elasticsearch.host=http://host.docker.internal:${securitySolutionCypressConfig.get( - 'servers.elasticsearch.port' - )}`, + `--xpack.fleet.agents.elasticsearch.host=http://${ + SERVERLESS_NODES[0].name + }:${securitySolutionCypressConfig.get('servers.elasticsearch.port')}`, `--xpack.fleet.packages.0.name=osquery_manager`, `--xpack.fleet.packages.0.version=latest`, - `--xpack.fleet.internal.fleetServerStandalone=false`, ], }, diff --git a/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata.xml b/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata.xml index 207148665c293..cf88307879a02 100644 --- a/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata.xml +++ b/x-p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/KDh5i/gTEUnPw3Bxbw47dfn23tjMWO7NCU1fr5HNztRsa/gQr +e9s07g25u/gTfTi9Fyu0lcRe3bXOLS/mFVcuC5oxuS65R9OlbIsiORkZ2EfwuNUf +wAAYOGPIjM2VlQCvBitefsd/SzRKHdxSPy6KSjkO6MGEGo87fr7B7Nx1qp1DVrK7 +q9XeP1Cuygjg9WTcnsvWvNw8CssyuFM6X/3tGjpPasXwLvNUoG2AairK2AYTWhvS +foE31cFg diff --git a/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_2.xml b/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_2.xml index ff1f6eccaf6d9..5e737746e8c1d 100644 --- a/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_2.xml +++ b/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_2.xml @@ -7,24 +7,25 @@ - MIIDOTCCAiGgAwIBAgIVAN0GVNLw3IaUBuG7t6CeW8w2wyymMA0GCSqGSIb3DQEB -CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu -ZXJhdGVkIENBMCAXDTIxMTAxMzEwMTU1OFoYDzIwNzExMDAxMTAxNTU4WjARMQ8w -DQYDVQQDEwZraWJhbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3 -nvfL3/26D8EkLso+t9S0m+tSJipLsBWs0dCpc8KRJ/+ijDRnAQ5lOmOAcxt43SNY -KFr0EntQEZyYaRwMIM8aPR0WYW/VV5o4fq2o/JnmHqzZJRJCwZq+5WiCiDPt012N -mRGYCMUxjlEwejue6diLAeQhZ/sfN4jUp217bMEHrhHrNBWTwwJ+Uk5TBQMhviCW -LKbsKrfluA6DGHWrXN4pH7Xmaf/Zyc9AYL/nxwv3VQHZzIAK/U/WNCgFJJ3qoFYY -6TUwDDNa30mSj165OOds9N+VmUlDC3IFiHV3osBWscSU4HJd6QJ8huHrFLLV4y4i -u62el47Qr+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wAoBlmtDmlinwSACQ3o/8eLWk0tqkIP14rc3oFh3m7D2c3c2m2HXuyoSDMfGW +beG2IE1Q3idcGmeG3qsCAwEAAaOBjDCBiTAdBgNVHQ4EFgQUMOUM7w5jmIozDvnq +RpM779m5GigwHwYDVR0jBBgwFoAUMEwqwI5b0MYpNxwaHJ9Tw1Lp3p4wPAYDVR0R +BDUwM4IUaG9zdC5kb2NrZXIuaW50ZXJuYWyCCWxvY2FsaG9zdIIEZXMwM4IEZXMw +MoIEZXMwMTAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQCxqvQYXSKqgpdl +SP4gXgwipAnYsoW9qkgWQODTvSBEzUdOWme0d3j7i2l6Ur/nVSv5YjkqAv1hf/yJ +Hrk9h+j29ZO/aQ/KDh5i/gTEUnPw3Bxbw47dfn23tjMWO7NCU1fr5HNztRsa/gQr +e9s07g25u/gTfTi9Fyu0lcRe3bXOLS/mFVcuC5oxuS65R9OlbIsiORkZ2EfwuNUf +wAAYOGPIjM2VlQCvBitefsd/SzRKHdxSPy6KSjkO6MGEGo87fr7B7Nx1qp1DVrK7 +q9XeP1Cuygjg9WTcnsvWvNw8CssyuFM6X/3tGjpPasXwLvNUoG2AairK2AYTWhvS +foE31cFg diff --git a/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_never_login.xml b/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_never_login.xml index 6ab5e1aeb708a..a2fff3f0a4129 100644 --- a/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_never_login.xml +++ b/x-pack/test/security_api_integration/packages/helpers/saml/idp_metadata_never_login.xml @@ -7,24 +7,25 @@ - MIIDOTCCAiGgAwIBAgIVAN0GVNLw3IaUBuG7t6CeW8w2wyymMA0GCSqGSIb3DQEB -CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu -ZXJhdGVkIENBMCAXDTIxMTAxMzEwMTU1OFoYDzIwN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LvNUoG2AairK2AYTWhvS +foE31cFg diff --git a/x-pack/test/security_api_integration/plugins/saml_provider/metadata.xml b/x-pack/test/security_api_integration/plugins/saml_provider/metadata.xml index 8cb33193f56c9..c65972be45b45 100644 --- a/x-pack/test/security_api_integration/plugins/saml_provider/metadata.xml +++ b/x-pack/test/security_api_integration/plugins/saml_provider/metadata.xml @@ -7,24 +7,25 @@ - MIIDOTCCAiGgAwIBAgIVAN0GVNLw3IaUBuG7t6CeW8w2wyymMA0GCSqGSIb3DQEB -CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu -ZXJhdGVkIENBMCAXDTIxMTAxMzEwMTU1OFoYDzIwNzExMDAxMTAxNTU4WjARMQ8w -DQYDVQQDEwZraWJhbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3 -nvfL3/26D8EkLso+t9S0m+tSJipLsBWs0dCpc8KRJ/+ijDRnAQ5lOmOAcxt43SNY -KFr0EntQEZyYaRwMIM8aPR0WYW/VV5o4fq2o/JnmHqzZJRJCwZq+5WiCiDPt012N -mRGYCMUxjlEwejue6diLAeQhZ/sfN4jUp217bMEHrhHrNBWTwwJ+Uk5TBQMhviCW -LKbsKrfluA6DGHWrXN4pH7Xmaf/Zyc9AYL/nxwv3VQHZzIAK/U/WNCgFJJ3qoFYY -6TUwDDNa30mSj165OOds9N+VmUlDC3IFiHV3osBWscSU4HJd6QJ8huHrFLLV4y4i -u62el47Qr+/8Ut3SzeIXAgMBAAGjYzBhMB0GA1UdDgQWBBQli5f2bYL9jKUA5Uxp -yRRHeCoPJzAfBgNVHSMEGDAWgBQwTCrAjlvQxik3HBocn1PDUunenjAUBgNVHREE -DTALgglsb2NhbGhvc3QwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAQEATFNj -WkTBPfgflGYZD4OsYvfT/rVjFKbJP/u1a0rkzNamA2QKNzI9JTOzONPTyRhe9yVS -zeO8X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MwM4IEZXMw +MoIEZXMwMTAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQCxqvQYXSKqgpdl +SP4gXgwipAnYsoW9qkgWQODTvSBEzUdOWme0d3j7i2l6Ur/nVSv5YjkqAv1hf/yJ +Hrk9h+j29ZO/aQ/KDh5i/gTEUnPw3Bxbw47dfn23tjMWO7NCU1fr5HNztRsa/gQr +e9s07g25u/gTfTi9Fyu0lcRe3bXOLS/mFVcuC5oxuS65R9OlbIsiORkZ2EfwuNUf +wAAYOGPIjM2VlQCvBitefsd/SzRKHdxSPy6KSjkO6MGEGo87fr7B7Nx1qp1DVrK7 +q9XeP1Cuygjg9WTcnsvWvNw8CssyuFM6X/3tGjpPasXwLvNUoG2AairK2AYTWhvS +foE31cFg diff --git a/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index bf7d721fc0ba2..de73481e8473e 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -144,5 +144,6 @@ "@kbn/coloring", "@kbn/profiling-utils", "@kbn/profiling-data-access-plugin", + "@kbn/es", ] }