Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] Merge main as of Nov 7 #2062

Merged
merged 96 commits into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
e4bdb4f
[Automation] Update elastic stack version to 8.5.0-6b9f92c0 for testi…
apmmachine Aug 18, 2022
6569bb5
[Automation] Update elastic stack version to 8.5.0-0616acda for testi…
apmmachine Aug 22, 2022
4e6dcce
[Automation] Update elastic stack version to 8.5.0-dd6f2bb0 for testi…
apmmachine Aug 23, 2022
e65a42e
[Automation] Update elastic stack version to 8.5.0-feb644de for testi…
apmmachine Aug 24, 2022
dfd8e34
[Automation] Update elastic stack version to 8.5.0-7783a03c for testi…
apmmachine Aug 25, 2022
71344c5
[Automation] Update elastic stack version to 8.5.0-17b8a62d for testi…
apmmachine Aug 26, 2022
2ed5adc
[Automation] Update elastic stack version to 8.5.0-9aed3b11 for testi…
apmmachine Aug 29, 2022
457cbce
[Automation] Update elastic stack version to 8.5.0-440e0896 for testi…
apmmachine Aug 30, 2022
d512a2c
[Automation] Update elastic stack version to 8.5.0-fedc3e60 for testi…
apmmachine Aug 31, 2022
b29904b
[Automation] Update elastic stack version to 8.5.0-b5001a6d for testi…
apmmachine Sep 1, 2022
ebd5680
ci: move to fleet-ci (#1199)
v1v Sep 1, 2022
d4e75cb
Fic path to the packaging (#1806)
v1v Sep 1, 2022
62b22fb
Fix gcs credentials for packaging (#1807)
v1v Sep 1, 2022
7766393
[Automation] Update elastic stack version to 8.5.0-de69302b for testi…
apmmachine Sep 2, 2022
eaa258e
[Automation] Update elastic stack version to 8.5.0-1bd77fc1 for testi…
apmmachine Sep 5, 2022
284f77c
[Automation] Update elastic stack version to 8.5.0-167dfc80 for testi…
apmmachine Sep 6, 2022
cb125e0
[Automation] Update elastic stack version to 8.5.0-6b7dda2d for testi…
apmmachine Sep 7, 2022
63fdcbf
Allow multiple ES outputs as long as they are the same ES (#1684)
AndersonQ Sep 7, 2022
1892264
[Automation] Update elastic stack version to 8.5.0-4140365c for testi…
apmmachine Sep 8, 2022
23be42a
updating upgrade_status: completed (#1833)
juliaElastic Sep 8, 2022
de5d74b
Fix v8.5.0 migration painless script (#1839)
AndersonQ Sep 8, 2022
7e0a288
[Automation] Update elastic stack version to 8.5.0-8e906f9f for testi…
apmmachine Sep 9, 2022
b8f1ec1
ci: rename dra staging for release dra release staging (#1840)
v1v Sep 9, 2022
8a22669
Remove events from agent checkin body. (#1842)
michel-laterman Sep 9, 2022
ca8d734
[Automation] Update elastic stack version to 8.5.0-589a4a10 for testi…
apmmachine Sep 12, 2022
0181e48
[Automation] Update elastic stack version to 8.5.0-37418cf3 for testi…
apmmachine Sep 13, 2022
ee6e5ca
[Automation] Update elastic stack version to 8.5.0-fcf3d4c2 for testi…
apmmachine Sep 14, 2022
215815d
[Automation] Update elastic stack version to 8.5.0-c7913db3 for testi…
apmmachine Sep 15, 2022
c51c26f
Add error detail to catch-all HTTP response (#1854)
joshdover Sep 15, 2022
33b812c
Make authc log debug and add cache hit field (#1870)
joshdover Sep 15, 2022
2558289
Document Go 1.18 certificate change in changelog. (#1871)
cmacknz Sep 19, 2022
ef9ca2b
Revert "Fix v8.5.0 migration painless script" (#1878)
AndersonQ Sep 19, 2022
4a69b63
[Automation] Update elastic stack version to 8.5.0-56d2c52d for testi…
apmmachine Sep 20, 2022
46ac14b
Bulk API Keys update (#1779)
michalpristas Sep 20, 2022
ca9041f
Fix and reintroduce "Allow multiple ES outputs as long as they are th…
AndersonQ Sep 20, 2022
889ac4d
[Automation] Update elastic stack version to 8.5.0-7dc445a0 for testi…
apmmachine Sep 21, 2022
9c16eba
Update pre-sets limits to avoid overlap. (#1891)
jlind23 Sep 21, 2022
a678f49
[Release] add-backport-next (#1892)
elasticmachine Sep 21, 2022
bb7016f
Bump version to 8.6.0 (#1895)
cmacknz Sep 21, 2022
f77b97c
Catch error in waitBulkAction. Add bulk.WithRetryOnConflict(3) in mul…
blakerouse Sep 21, 2022
95b57a0
Update apikey.cache_hit log field name to match convention (#1900)
joshdover Sep 22, 2022
a704154
[Automation] Update elastic stack version to 8.6.0-21651da3 for testi…
apmmachine Sep 26, 2022
1b2834c
LoadLimits does not override existing values (#1912)
michel-laterman Sep 26, 2022
eb466d3
[Automation] Update elastic stack version to 8.6.0-326f84b0 for testi…
apmmachine Sep 27, 2022
7a3a3e8
[Automation] Update elastic stack version to 8.6.0-df00693f for testi…
apmmachine Sep 28, 2022
5258263
[Automation] Update elastic stack version to 8.6.0-a2f4f140 for testi…
apmmachine Sep 29, 2022
69687f3
Revert "updating upgrade_status: completed (#1833)" (#1920)
juliaElastic Sep 29, 2022
129ea1c
Storing checkin message in last_checkin_message (#1932)
juliaElastic Sep 29, 2022
c99ccd8
Unique limiters for each API listener (#1904)
michel-laterman Sep 29, 2022
59967f7
Cleanup cmd/fleet/main.go (#1886)
michel-laterman Sep 29, 2022
3c3d796
[Automation] Update elastic stack version to 8.6.0-158a13db for testi…
apmmachine Sep 30, 2022
a7f0d02
[8.6](forwardport) Add extra protection against accessing null fields…
AndersonQ Sep 30, 2022
58d1a5e
[Automation] Update elastic stack version to 8.6.0-aea1c645 for testi…
apmmachine Oct 4, 2022
9fce0e2
[Automation] Update elastic stack version to 8.6.0-0fca2953 for testi…
apmmachine Oct 5, 2022
18da58e
[Automation] Update elastic stack version to 8.6.0-e4c15f15 for testi…
apmmachine Oct 6, 2022
3fc8249
Conditional log level for api key read (#1946)
michalpristas Oct 6, 2022
b2f3e20
Updated migration query to match items with deprecated field present …
michalpristas Oct 6, 2022
60ba1cf
Fix fleet.migration.total log key overlap (#1951)
joshdover Oct 6, 2022
684733d
[Automation] Update elastic stack version to 8.6.0-d939cfde for testi…
apmmachine Oct 7, 2022
e9ee3cc
[Automation] Update elastic stack version to 8.6.0-7c9f25a9 for testi…
apmmachine Oct 10, 2022
1b44bcf
[Automation] Update elastic stack version to 8.6.0-c49fac70 for testi…
apmmachine Oct 11, 2022
0b36872
Update to Go 1.18.7. (#1978)
cmacknz Oct 11, 2022
2da5c43
[Automation] Update elastic stack version to 8.6.0-5a8d757d for testi…
apmmachine Oct 12, 2022
de183e5
[Automation] Update elastic stack version to 8.6.0-40086bc7 for testi…
apmmachine Oct 13, 2022
5467b3a
[Automation] Update elastic stack version to 8.6.0-233dc5d4 for testi…
apmmachine Oct 14, 2022
a516f03
[Automation] Update elastic stack version to 8.6.0-54a302f0 for testi…
apmmachine Oct 17, 2022
b51bf97
Don't send POLICY_CHANGE actions retrieved from index to agent. (#1963)
michel-laterman Oct 17, 2022
7cd6bd4
[Automation] Update elastic stack version to 8.6.0-cae815eb for testi…
apmmachine Oct 18, 2022
e7f380c
[Automation] Update elastic stack version to 8.6.0-6545f2df for testi…
apmmachine Oct 19, 2022
a574b7d
[Automation] Update elastic stack version to 8.6.0-055acc83 for testi…
apmmachine Oct 20, 2022
a9094ba
[Automation] Update elastic stack version to 8.6.0-baf193e8 for testi…
apmmachine Oct 21, 2022
f708740
[Automation] Update elastic stack version to 8.6.0-22d60ec9 for testi…
apmmachine Oct 24, 2022
17d3681
Allow upgrade action to signal retry (#1887)
michel-laterman Oct 24, 2022
6b3b082
[Automation] Update elastic stack version to 8.6.0-b8b35931 for testi…
apmmachine Oct 25, 2022
34ea7dc
[Automation] Update elastic stack version to 8.6.0-a892f234 for testi…
apmmachine Oct 27, 2022
78e5065
[Automation] Add GH action to add issues to ingest board
kpollich Oct 27, 2022
b0ac345
Update add-issues-to-ingest-board.yml
kpollich Oct 27, 2022
478155e
[Automation] Update elastic stack version to 8.6.0-89d224d2 for testi…
apmmachine Oct 28, 2022
599b9f3
[Automation] Update elastic stack version to 8.6.0-949a38d2 for testi…
apmmachine Oct 31, 2022
52e464f
[Automation] Update elastic stack version to 8.6.0-26dc1164 for testi…
apmmachine Nov 1, 2022
3d15e24
Add active filter for enrollment key queries. (#2044)
michel-laterman Nov 1, 2022
13203f4
[Automation] Update elastic stack version to 8.6.0-4765d2b0 for testi…
apmmachine Nov 2, 2022
b86d164
[Automation] Update elastic stack version to 8.6.0-8a615646 for testi…
apmmachine Nov 3, 2022
0cb9273
[Automation] Update elastic stack version to 8.6.0-3f5f98b7 for testi…
apmmachine Nov 4, 2022
1bcfb9e
[Automation] Update elastic stack version to 8.6.0-f20b7179 for testi…
apmmachine Nov 7, 2022
550c424
Merge branch 'main' into merge-main-to-v2
blakerouse Nov 7, 2022
ea74421
Run mod tidy.
blakerouse Nov 7, 2022
1fedbe7
Merge latest feature-arch-v2 branch.
blakerouse Nov 7, 2022
0a89569
Run make notice.
blakerouse Nov 7, 2022
3edcd6c
Fix intergration tests.
blakerouse Nov 7, 2022
77a08d6
Run go mod tidy and make notice.
blakerouse Nov 8, 2022
15f7f8b
Fix path to fleet-server.yml in integration test.
blakerouse Nov 8, 2022
f3a04b1
Fix race condition.
blakerouse Nov 8, 2022
4f315c5
Fix try 2.
blakerouse Nov 8, 2022
f20f728
Fix race.
blakerouse Nov 8, 2022
9d0cb0f
Fix race try 2.
blakerouse Nov 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ pipeline {
DOCKER_COMPOSE_VERSION = '1.25.5'
JOB_GIT_CREDENTIALS = "f6c7695a-671e-4f4f-a331-acdce44ff9ba"
PIPELINE_LOG_LEVEL='INFO'
JOB_GCS_BUCKET = 'beats-ci-artifacts'
JOB_GCS_CREDENTIALS = 'beats-ci-gcs-plugin-file-credentials'
JOB_GCS_BUCKET = 'fleet-ci-artifacts'
JOB_GCS_CREDENTIALS = 'fleet-ci-gcs-plugin-file-credentials'
}
options {
timeout(time: 1, unit: 'HOURS')
Expand Down Expand Up @@ -139,7 +139,7 @@ pipeline {
options { skipDefaultCheckout() }
when { expression { isBranch() } }
steps {
build(job: "Ingest-manager/fleet-server-package-mbp/${env.JOB_BASE_NAME}",
build(job: "fleet-server/fleet-server-package-mbp/${env.JOB_BASE_NAME}",
propagate: false,
wait: false,
parameters: [string(name: 'COMMIT', value: "${env.GIT_BASE_COMMIT}")])
Expand Down
4 changes: 2 additions & 2 deletions .ci/jobs/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##### GLOBAL METADATA

- meta:
cluster: beats-ci
cluster: fleet-ci

##### JOB DEFAULTS

Expand All @@ -15,4 +15,4 @@
publishers:
- email:
recipients: [email protected]
prune-dead-branches: true
prune-dead-branches: true
4 changes: 2 additions & 2 deletions .ci/jobs/fleet-server-package-mbp.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- job:
name: Ingest-manager/fleet-server-package-mbp
name: fleet-server/fleet-server-package-mbp
display-name: Fleet Server Package
description: Jenkins pipeline for the Elastic Fleet Server package process
project-type: multibranch
Expand Down Expand Up @@ -53,4 +53,4 @@
reference-repo: /var/lib/jenkins/.git-references/fleet-server.git
timeout: '15'
use-author: true
wipe-workspace: 'True'
wipe-workspace: true
2 changes: 1 addition & 1 deletion .ci/jobs/fleet-server.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- job:
name: Ingest-manager/fleet-server
name: fleet-server/fleet-server-mbp
display-name: Fleet Server
description: Jenkins pipeline for the Elastic Fleet Server project
view: Beats
Expand Down
8 changes: 4 additions & 4 deletions .ci/jobs/folders.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
#https://docs.openstack.org/infra/jenkins-job-builder/project_folder.html
- job:
name: Ingest-manager
description: Ingest manager related Jobs
name: fleet-server
description: Fleet Server related Jobs
project-type: folder

- view:
name: Ingest-manager
view-type: list
name: fleet-server
view-type: list
4 changes: 2 additions & 2 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline {
SLACK_CHANNEL = '#elastic-agent-control-plane'
NOTIFY_TO = '[email protected]'
JOB_GCS_BUCKET = credentials('gcs-bucket')
JOB_GCS_CREDENTIALS = 'beats-ci-gcs-plugin'
JOB_GCS_CREDENTIALS = 'fleet-ci-gcs-plugin'
DOCKER_SECRET = 'secret/observability-team/ci/docker-registry/prod'
DOCKER_REGISTRY = 'docker.elastic.co'
DRA_OUTPUT = 'release-manager.out'
Expand Down Expand Up @@ -133,7 +133,7 @@ pipeline {
}
}
}
stage('DRA Staging') {
stage('DRA Release Staging') {
options { skipDefaultCheckout() }
when {
allOf {
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/add-issues-to-ingest-board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Add issue to Platform Ingest project

on:
issues:
types:
- labeled

env:
INGEST_PROJECT_ID: 'PVT_kwDOAGc3Zs4AEzn4'
FLEET_LABEL: 'Team:Fleet'
AREA_FIELD_ID: 'PVTSSF_lADOAGc3Zs4AEzn4zgEgZSo'
FLEET_SERVER_OPTION_ID: 'ea828bb4'

jobs:
add_to_ingest_project:
runs-on: ubuntu-latest
steps:
- uses: octokit/[email protected]
id: add_to_project
if: ${{ github.event.label.name == env.FLEET_LABEL }}
with:
query: |
# Variables have to be snake cased because of https://github.com/octokit/graphql-action/issues/164
mutation AddToIngestProject($project_id: ID!, $content_id: ID!) {
addProjectV2ItemById(input: { projectId: $project_id, contentId: $content_id }) {
item {
id
}
}
}
project_id: ${{ env.INGEST_PROJECT_ID }}
content_id: ${{ github.event.issue.node_id }}
env:
GITHUB_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
- uses: octokit/[email protected]
id: set_fleet_server_area
if: github.event.label.name == env.FLEET_LABEL
with:
query: |
mutation updateIngestArea($item_id: ID!, $project_id: ID!, $area_field_id: ID!, $area_id: String) {
updateProjectV2ItemFieldValue(
input: { itemId: $item_id, projectId: $project_id, fieldId: $area_field_id, value: { singleSelectOptionId: $area_id } }) {
clientMutationId
}
}
item_id: ${{ fromJSON(steps.add_to_project.outputs.data).addProjectV2ItemById.item.id }}
project_id: ${{ env.INGEST_PROJECT_ID }}
area_field_id: ${{ env.AREA_FIELD_ID }}
area_id: ${{ env.FLEET_SERVER_OPTION_ID }}
env:
GITHUB_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.18.5
1.18.7
13 changes: 13 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,16 @@ pull_request_rules:
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
- name: backport patches to 8.5 branch
conditions:
- merged
- label=backport-v8.5.0
actions:
backport:
assignees:
- "{{ author }}"
branches:
- "8.5"
labels:
- "backport"
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
18 changes: 17 additions & 1 deletion CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
==== Breaking Changes

- Upgrade to Go 1.18. Certificates signed with SHA-1 are now rejected. See the Go 1.18 https://tip.golang.org/doc/go1.18#sha1[release notes] for details. {pull}1709[1709]

==== Bugfixes

- Return a better error on enrolling and the Elasticsearch version is incompatible. {pull}1211[1211]
- Give a grace period when starting the unenroll monitor. {issue}1500[1500]
- Fixes a race condition between the unenroller goroutine and the main goroutine for the coordinator monitor. {issues}1738[1738]
- Remove events from agent checkin body. {issue}1774[1774]
- Improve authc debug logging. {pull}1870[1870]
- Add error detail to catch-all HTTP error response. {pull}1854[1854]
- Fix issue were errors where being ignored written to elasticsearch. {pull}1896[1896]
- Update apikey.cache_hit log field name to match convention. {pull}1900[1900]
- LoadServerLimits will not overwrite specified limits when loading default/agent number specified values. {issue}1841[1841] {pull}1912[1912]
- Use seperate rate limiters for internal and external API listeners. {issue}1859[1859] {pull}1904[1904]
- Fix fleet.migration.total log key overlap {pull}1951[1951]
- Remove POLICY_CHANGE actions from list retrieved from actions index before sending actions to agent on Checkin. {issue}1773[1773] {pull}1963[1963]
- Add "active: true" filter to enrollemnent key queries. {issue}2029[2029] {pull}2044[2044]

==== New Features

Expand All @@ -12,4 +26,6 @@
- Add start_time and minimum_execution_duration to actions to allow fleet-server to schedule agent actions. {pull}1381[1381]
- Fleet Server now allows setting global labels on APM instrumentation. {pull}1649[1649]
- Fleet Server now allows setting transaction sample rate on APM instrumentation {pull}1681[1681]
- Log redacted config when config updates. {issue}1626[1626] {pull}1668[1668]
- Log redacted config when config updates. {issue}1626[1626] {pull}1668[1668]
- Storing checkin message in last_checkin_message {pull}1932[1932]
- Allow upgrade actions to signal that they will be retried. {pull}1887[1887]
Loading