Skip to content

Commit 0112148

Browse files
committed
Merge branch '8.1' of github.com:elastic/beats into mergify/bp/8.1/pr-29710
* '8.1' of github.com:elastic/beats: (51 commits) refactor pushDockerImages (#30414) (#30624) ci: add windows-2022 in the extended meta-stage (#30528) (#30630) Curate k8s testing versions to only keep the actively maintained (#30619) (#30625) [8.1](backport #30355) Add Beats upgrade docs for 8.0 (#30612) Remove references to gcp from the Functionbeat docs (#30579) (#30609) x-pack/auditbeat/module/system/socket: defend against exec with zero arguments (#30586) (#30597) [MySQL Enterprise] Adding default paths values to manifest.yml (#30598) (#30604) metricbeat - fix elasticsearch and kibana integration tests failures in 8.0 (#30566) (#30594) Install gawk as a replacement for mawk in Docker containers. (#30452) (#30465) [Filebeat] Remove RecordedFuture dataset from Threat Intel module (#30564) (#30568) Adjust the documentation of `backoff` options in filestream input (#30552) (#30557) packetbeat/beater: help the GC clean up the Npcap installer if it's not used (#30513) (#30546) Osquerybeat: Add install verification for osquerybeat (#30388) (#30404) Update docker/distribution to 2.8.0 (#30462) (#30540) Add `parsers` examples to `filestream` reference configuration (#30529) (#30537) [8.1](backport #30068) ZooKeeper module: Adapt to ZooKeeper 3.6+ `mntr` response fields' changes. (#30360) [8.1](backport #30512) Switch skip to use `CI` (#30525) Forward-port 8.0.1 changelog to 8.1 (#30517) packetbeat/beater: don't attempt to install npcap when already installed (#30509) (#30511) Add drop and explicit tests to avoid duplicate ingest of elasticsearch logs (#30440) (#30488) ...
2 parents dd1a425 + 553ee07 commit 0112148

File tree

279 files changed

+3671
-15787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+3671
-15787
lines changed

.ci/packaging.groovy

Lines changed: 24 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -268,100 +268,47 @@ pipeline {
268268
def pushCIDockerImages(Map args = [:]) {
269269
def arch = args.get('arch', 'amd64')
270270
catchError(buildResult: 'UNSTABLE', message: 'Unable to push Docker images', stageResult: 'FAILURE') {
271+
def defaultVariants = [ '' : 'beats', '-oss' : 'beats', '-ubi8' : 'beats' ]
272+
def completeVariant = ['-complete' : 'beats']
273+
// Cloud is not public available, therefore it should use the beats-ci namespace.
274+
def cloudVariant = ['-cloud' : 'beats-ci']
271275
if (env?.BEATS_FOLDER?.endsWith('auditbeat')) {
272-
tagAndPush(beatName: 'auditbeat', arch: arch)
276+
tagAndPush(beatName: 'auditbeat', arch: arch, variants: defaultVariants)
273277
} else if (env?.BEATS_FOLDER?.endsWith('filebeat')) {
274-
tagAndPush(beatName: 'filebeat', arch: arch)
278+
tagAndPush(beatName: 'filebeat', arch: arch, variants: defaultVariants)
275279
} else if (env?.BEATS_FOLDER?.endsWith('heartbeat')) {
276-
tagAndPush(beatName: 'heartbeat', arch: arch)
280+
tagAndPush(beatName: 'heartbeat', arch: arch, variants: defaultVariants)
277281
} else if (env?.BEATS_FOLDER?.endsWith('metricbeat')) {
278-
tagAndPush(beatName: 'metricbeat', arch: arch)
282+
tagAndPush(beatName: 'metricbeat', arch: arch, variants: defaultVariants)
279283
} else if (env?.BEATS_FOLDER?.endsWith('osquerybeat')) {
280-
tagAndPush(beatName: 'osquerybeat', arch: arch)
284+
tagAndPush(beatName: 'osquerybeat', arch: arch, variants: defaultVariants)
281285
} else if ("${env.BEATS_FOLDER}" == "packetbeat"){
282-
tagAndPush(beatName: 'packetbeat', arch: arch)
286+
tagAndPush(beatName: 'packetbeat', arch: arch, variants: defaultVariants)
283287
} else if ("${env.BEATS_FOLDER}" == "x-pack/elastic-agent") {
284-
tagAndPush(beatName: 'elastic-agent', arch: arch)
288+
tagAndPush(beatName: 'elastic-agent', arch: arch, variants: defaultVariants + completeVariant + cloudVariant)
285289
}
286290
}
287291
}
288292

289293
/**
290294
* @param beatName name of the Beat
291295
* @param arch what architecture
296+
* @param variants list of docker variants
292297
*/
293298
def tagAndPush(Map args = [:]) {
294-
def beatName = args.beatName
295-
def arch = args.get('arch', 'amd64')
296-
def libbetaVer = env.BEAT_VERSION
297-
def aliasVersion = ""
298-
if("${env.SNAPSHOT}" == "true"){
299-
aliasVersion = libbetaVer.substring(0, libbetaVer.lastIndexOf(".")) // remove third number in version
300-
301-
libbetaVer += "-SNAPSHOT"
302-
aliasVersion += "-SNAPSHOT"
303-
}
304-
305-
def tagName = "${libbetaVer}"
306-
if (isPR()) {
307-
tagName = "pr-${env.CHANGE_ID}"
308-
}
309-
310-
// supported tags
311-
def tags = [tagName, "${env.GIT_BASE_COMMIT}"]
312-
if (!isPR() && aliasVersion != "") {
313-
tags << aliasVersion
314-
}
315-
// supported image flavours
316-
def variants = ["", "-oss", "-ubi8"]
317-
318-
if(beatName == 'elastic-agent'){
319-
variants.add("-complete")
320-
variants.add("-cloud")
321-
}
322-
323-
variants.each { variant ->
324-
// cloud docker images are stored in the private docker namespace.
325-
def sourceNamespace = variant.equals('-cloud') ? 'beats-ci' : 'beats'
326-
tags.each { tag ->
327-
// TODO:
328-
// For backward compatibility let's ensure we tag only for amd64, then E2E can benefit from until
329-
// they support the versioning with the architecture
330-
if ("${arch}" == "amd64") {
331-
doTagAndPush(beatName: beatName, variant: variant, sourceTag: libbetaVer, targetTag: "${tag}", sourceNamespace: sourceNamespace)
332-
}
333-
doTagAndPush(beatName: beatName, variant: variant, sourceTag: libbetaVer, targetTag: "${tag}-${arch}", sourceNamespace: sourceNamespace)
334-
}
335-
}
336-
}
337-
338-
/**
339-
* @param beatName name of the Beat
340-
* @param variant name of the variant used to build the docker image name
341-
* @param sourceNamespace namespace to be used as source for the docker tag command
342-
* @param sourceTag tag to be used as source for the docker tag command, usually under the 'beats' namespace
343-
* @param targetTag tag to be used as target for the docker tag command, usually under the 'observability-ci' namespace
344-
*/
345-
def doTagAndPush(Map args = [:]) {
346-
def beatName = args.beatName
347-
def variant = args.variant
348-
def sourceTag = args.sourceTag
349-
def targetTag = args.targetTag
350-
def sourceNamespace = args.sourceNamespace
351-
def sourceName = "${DOCKER_REGISTRY}/${sourceNamespace}/${beatName}${variant}:${sourceTag}"
352-
def targetName = "${DOCKER_REGISTRY}/observability-ci/${beatName}${variant}:${targetTag}"
353-
def iterations = 0
354-
retryWithSleep(retries: 3, seconds: 5, backoff: true) {
355-
iterations++
356-
def status = sh(label: "Change tag and push ${targetName}",
357-
script: ".ci/scripts/docker-tag-push.sh ${sourceName} ${targetName}",
358-
returnStatus: true)
359-
if ( status > 0 && iterations < 3) {
360-
error("tag and push failed for ${beatName}, retry")
361-
} else if ( status > 0 ) {
362-
log(level: 'WARN', text: "${beatName} doesn't have ${variant} docker images. See https://github.com/elastic/beats/pull/21621")
363-
}
299+
def images = [ ]
300+
args.variants.each { variant, sourceNamespace ->
301+
images += [ source: "${sourceNamespace}/${args.beatName}${variant}",
302+
target: "observability-ci/${args.beatName}",
303+
arch: args.arch ]
364304
}
305+
pushDockerImages(
306+
registry: env.DOCKER_REGISTRY,
307+
secret: env.DOCKERELASTIC_SECRET,
308+
snapshot: env.SNAPSHOT,
309+
version: env.BEAT_VERSION,
310+
images: images
311+
)
365312
}
366313

367314
def prepareE2ETestForPackage(String beat){

.ci/scripts/docker-tag-push.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.asciidoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@
33
:issue: https://github.com/elastic/beats/issues/
44
:pull: https://github.com/elastic/beats/pull/
55

6+
[[release-notes-8.0.1]]
7+
=== Beats version 8.0.1
8+
https://github.com/elastic/beats/compare/v8.0.0...v8.0.1[View commits]
9+
10+
==== Bugfixes
11+
12+
*Filebeat*
13+
14+
- tcp/unix input: Stop accepting connections after socket is closed. {pull}29712[29712]
15+
- Fix using log_group_name_prefix in aws-cloudwatch input. {pull}29695[29695]
16+
- Fix multiple instances of the same module configured within `filebeat.modules` in filebeat.yml. {issue}29649[29649] {pull}29952[29952]
17+
- aws-s3: fix race condition in states used by s3-poller. {issue}30123[30123] {pull}30131[30131]
18+
19+
*Filebeat*
20+
- Fix broken Kafka input {issue}29746[29746] {pull}30277[30277]
21+
- cisco module: Fix change the broke ASA and FTD configs that used `var.input: syslog`. {pull}30072[30072]
22+
- aws-s3: fix race condition in states used by s3-poller. {issue}30123[30123] {pull}30131[30131]
23+
24+
*Heartbeat*
25+
- Fix missing mapping for `service.name`. {pull}30324[30324]
26+
27+
*Winlogbeat*
28+
29+
- Fix run loop when reading from evtx file {pull}30006[30006]
30+
31+
632
[[release-notes-8.0.0]]
733
=== Beats version 8.0.0
834
https://github.com/elastic/beats/compare/v7.17.0...v8.0.0[View commits]

CHANGELOG.next.asciidoc

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif
1818

1919
*Filebeat*
2020

21+
- Remove Recorded Future integration from threatintel module. {pull}30564[30564]
2122

2223
*Heartbeat*
2324

@@ -39,39 +40,44 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif
3940
*Affecting all Beats*
4041

4142
- Fix field names with `add_network_direction` processor. {issue}29747[29747] {pull}29751[29751]
43+
- Fix a logging bug when `ssl.verification_mode` was set to `full` or `certificate`, the command `test output` incorrectly logged that TLS was disabled.
44+
- Fix the ability for subcommands to be ran properly from the beats containers. {pull}30452[30452]
45+
- Update docker/distribution dependency library to fix a security issues concerning OCI Manifest Type Confusion Issue. {pull}30462[30462]
4246

4347
*Auditbeat*
4448

4549
- auditd: Add error.message to events when processing fails. {pull}30009[30009]
50+
- Fix handling of execve call events which have no argument. {issue}30585[30585] {pull}30586[30586]
4651

4752
*Filebeat*
4853

49-
- tcp/unix input: Stop accepting connections after socket is closed. {pull}29712[29712]
50-
- aws-s3: fix race condition in states used by s3-poller. {issue}30123[30123] {pull}30131[30131]
51-
52-
*Heartbeat*
53-
5454

5555
*Filebeat*
56+
- auditd: Prevent mapping explosion when truncated EXECVE records are ingested. {pull}30382[30382]
57+
- elasticsearch: fix duplicate ingest when using a common appender configuration {issue}30428[30428] {pull}30440[30440]
5658

59+
- Fix ECS version string in threatintel to be consistent with other modules and add event.timezone. {issue}30499[30499] {pull}30570[30570]
60+
- Add default paths value to MySQL Enterprise module to prevent issues with pipeline installations {pull}30598[30598]
5761

5862
*Heartbeat*
5963

60-
6164
*Metricbeat*
6265

66+
- Fixed missing ZooKeeper metrics due compatibility issues with versions >= 3.6.0 {pull}30068[30068]
67+
- Enhance metricbeat on openshift documentation {pull}30054[30054]
68+
- Fixed missing ZooKeeper metrics due compatibility issues with versions >= 3.6.0 {pull}30068[30068]
69+
- Fix Docker module: rename fields on dashboards. {pull}30500[30500]
6370

6471
*Packetbeat*
6572

6673

6774
*Winlogbeat*
6875

6976
- Add provider names to Security pipeline conditional check in routing pipeline. {issue}27288[27288] {pull}29781[29781]
70-
- Fix run loop when reading from evtx file {pull}30006[30006]
7177

7278
*Functionbeat*
7379

74-
- Pass AWS region configuration correctly. {issue}28520[28520] {pull}30238[30238]
80+
- Pass AWS region configuration correctly. {issue}28520[28520] {pull}30238[30238]
7581

7682

7783
*Elastic Logging Plugin*
@@ -106,7 +112,6 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif
106112
- Add support in httpjson input for oAuth2ProviderDefault of password grant_type. {pull}29087[29087]
107113
- Add support for filtering in journald input with `unit`, `kernel`, `identifiers` and `include_matches`. {pull}29294[29294]
108114
- Add new `userAgent` and `beatInfo` template functions for httpjson input {pull}29528[29528]
109-
- threatintel module: Add new Recorded Future integration. {pull}30030[30030]
110115
- Add pipeline in FB's supported hints. {pull}30212[30212]
111116

112117
*Auditbeat*
@@ -132,7 +137,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif
132137

133138
*Packetbeat*
134139

135-
- Add automated OEM Npcap installation handling. {pull}29112[29112]
140+
- Add automated OEM Npcap installation handling. {pull}29112[29112] {pull}30438[30438] {pull}30493[30493]
136141
- Add support for capturing TLS random number and OCSP status request details. {issue}29962[29962] {pull}30102[30102]
137142

138143
*Functionbeat*
@@ -165,4 +170,3 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif
165170

166171
==== Known Issue
167172

168-
*Journalbeat*

0 commit comments

Comments
 (0)