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

chore(releasing): Prepare v0.32.2 release #18611

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vector"
version = "0.32.1"
version = "0.32.2"
authors = ["Vector Contributors <[email protected]>"]
edition = "2021"
description = "A lightweight and ultra-fast tool for building observability pipelines"
Expand Down Expand Up @@ -387,6 +387,7 @@ ntapi = { git = "https://github.com/MSxDOS/ntapi.git", rev = "24fc1e47677fc9f6e3
openssl-sys = { git = "https://github.com/vectordotdev/rust-openssl.git", tag = "openssl-sys-v0.9.91+3.0.0" }
openssl-src = { git = "https://github.com/vectordotdev/openssl-src-rs.git", tag = "release-300-force-engine+3.1.2"}


[features]
# Default features for *-unknown-linux-gnu and *-apple-darwin
default = ["api", "api-client", "enrichment-tables", "sinks", "sources", "sources-dnstap", "transforms", "unix", "rdkafka?/gssapi-vendored", "enterprise", "component-validation-runner"]
Expand Down
2 changes: 2 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ license-files = [

[advisories]
ignore = [
# requires our dependencies to migrate to `rustls-webpki`
"RUSTSEC-2023-0052"
]
2 changes: 1 addition & 1 deletion distribution/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -u

# If PACKAGE_ROOT is unset or empty, default it.
PACKAGE_ROOT="${PACKAGE_ROOT:-"https://packages.timber.io/vector"}"
VECTOR_VERSION="0.32.1"
VECTOR_VERSION="0.32.2"
_divider="--------------------------------------------------------------------------------"
_prompt=">>>"
_indent=" "
Expand Down
29 changes: 19 additions & 10 deletions src/aws/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,15 @@ impl AwsAuthentication {
));
if let Some(assume_role) = assume_role {
let auth_region = region.clone().map(Region::new).unwrap_or(service_region);
let auth_external_id = external_id.clone().unwrap();
let provider = AssumeRoleProviderBuilder::new(assume_role)
.region(auth_region)
.external_id(auth_external_id)
.build(provider);
let mut builder =
AssumeRoleProviderBuilder::new(assume_role).region(auth_region);

if let Some(external_id) = external_id {
builder = builder.external_id(external_id)
}

let provider = builder.build(provider);

return Ok(SharedCredentialsProvider::new(provider));
}
Ok(provider)
Expand Down Expand Up @@ -253,11 +257,16 @@ impl AwsAuthentication {
..
} => {
let auth_region = region.clone().map(Region::new).unwrap_or(service_region);
let auth_external_id = external_id.clone().unwrap();
let provider = AssumeRoleProviderBuilder::new(assume_role)
.region(auth_region.clone())
.external_id(auth_external_id)
.build(default_credentials_provider(auth_region, *imds).await?);
let mut builder =
AssumeRoleProviderBuilder::new(assume_role).region(auth_region.clone());

if let Some(external_id) = external_id {
builder = builder.external_id(external_id)
}

let provider =
builder.build(default_credentials_provider(auth_region, *imds).await?);

Ok(SharedCredentialsProvider::new(provider))
}
AwsAuthentication::Default { imds, region, .. } => Ok(SharedCredentialsProvider::new(
Expand Down
4 changes: 4 additions & 0 deletions website/content/en/releases/0.32.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Vector v0.32.2 release notes
weight: 21
---
4 changes: 4 additions & 0 deletions website/cue/reference/releases/0.32.0.cue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ releases: "0.32.0": {
it to `false` via `--openssl-legacy-provider=false`. Instead it complains of extra
arguments. This is fixed in v0.32.1.
""",
"""
For AWS components, using `assume_role` for authentication without an `external_id`
caused a panic. This is fixed in v0.32.2`.
Comment on lines +42 to +43
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small grammar nit, as the other known issues are in the present tense.

Suggested change
For AWS components, using `assume_role` for authentication without an `external_id`
caused a panic. This is fixed in v0.32.2`.
For AWS components, using `assume_role` for authentication without an `external_id`
causes a panic. This is fixed in v0.32.2`.

""",
]

changelog: [
Expand Down
36 changes: 36 additions & 0 deletions website/cue/reference/releases/0.32.2.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package metadata

releases: "0.32.2": {
date: "2023-09-20"
codename: ""

whats_next: []
description: """
This patch release contains a fix for a regression in 0.32.0.

**Note:** Please see the release notes for [`v0.32.0`](/releases/0.32.0/) for additional changes if upgrading from
`v0.31.X`. In particular, the upgrade guide for breaking changes.
"""

changelog: [
{
type: "fix"
scopes: ["aws provider"]
description: """
AWS components again allow use of `assume_role` for authentication without an
`external_id`. Previously, as of `v032.0`, Vector would panic when starting.
"""
pr_numbers: [18452]
},
]

commits: [
{sha: "3b9144cb411ea91446c445324db714908ccb814a", date: "2023-08-24 03:26:04 UTC", description: "Fix installer list for MacOS", pr_number: 18364, scopes: ["website"], type: "fix", breaking_change: false, author: "Jesse Szwedko", files_count: 1, insertions_count: 1, deletions_count: 0},
{sha: "3040ae250b36e5dedda6fd635d364cbd77d0fef8", date: "2023-08-25 08:29:56 UTC", description: "add PGO information", pr_number: 18369, scopes: [], type: "docs", breaking_change: false, author: "Alexander Zaitsev", files_count: 3, insertions_count: 36, deletions_count: 0},
{sha: "1164f5525780a9599864bdda46722e895a20fd4c", date: "2023-08-29 17:50:25 UTC", description: "fix some typos", pr_number: 18401, scopes: ["file source"], type: "docs", breaking_change: false, author: "geekvest", files_count: 7, insertions_count: 8, deletions_count: 8},
{sha: "dd460a0bf91d210e262b1953a6afcaf3aa8f3033", date: "2023-09-07 00:30:03 UTC", description: "Fix docs for `host` field for syslog source", pr_number: 18453, scopes: ["syslog source", "docs"], type: "fix", breaking_change: false, author: "Jesse Szwedko", files_count: 1, insertions_count: 8, deletions_count: 2},
{sha: "9356c56b86817fdca931168986b3e9c88aea1be9", date: "2023-09-09 01:06:01 UTC", description: "Update the AWS authentication documentation", pr_number: 18492, scopes: ["aws provider", "external_docs"], type: "chore", breaking_change: false, author: "Jesse Szwedko", files_count: 1, insertions_count: 17, deletions_count: 7},
{sha: "77d12ee88b17d4d71b3609299b356e050afe651a", date: "2023-09-02 00:24:47 UTC", description: "Don't unwap external_id", pr_number: 18452, scopes: ["aws provider"], type: "fix", breaking_change: false, author: "Jesse Szwedko", files_count: 1, insertions_count: 19, deletions_count: 10},
{sha: "badb64f451de9169a2b65cbd541427f0411c7764", date: "2023-08-23 06:04:04 UTC", description: "update `rustls-webpki` due to security advisory", pr_number: 18344, scopes: [], type: "chore", breaking_change: false, author: "Nathan Fox", files_count: 3, insertions_count: 5, deletions_count: 2},
]
}
1 change: 1 addition & 0 deletions website/cue/reference/versions.cue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package metadata

// This has to be maintained manually because there's currently no way to sort versions programmatically
versions: [string, ...string] & [
"0.32.2",
"0.32.1",
"0.32.0",
"0.31.0",
Expand Down