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

Update boringssl-fips to fips-20220613 tag #214

Draft
wants to merge 24 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
bf8a7f6
Add dependency-review CI action
jentfoo Jan 2, 2024
2ed46c1
Introduce X509CheckFlags::UNDERSCORE_WILDCARDS
nox Dec 18, 2023
c886929
Don't use self-signed certs in hyper-boring tests
nox Dec 20, 2023
ae37df7
Introduce HttpsLayer::set_ssl_callback
nox Dec 20, 2023
1245154
Rearrange imports in x509 module
nox Jan 2, 2024
dfd5474
Move x509 tests to a subdirectory
nox Jan 3, 2024
8e2597b
Introduce X509Flags
nox Jan 3, 2024
c9f071d
Release 4.3.0
nox Jan 3, 2024
ae65a3f
Fix support for fips-link-precompiled
nox Dec 20, 2023
5dbf0a5
Expose SSL_get_error
evanrittenhouse Jan 8, 2024
e963358
Merge pull request #5 from gravitational/reed/merge-in-upstream
reedloden Jan 16, 2024
f82f783
Use Ninja to build BoringSSL
reedloden Jan 16, 2024
6559c29
Merge pull request #4 from gravitational/reed/use-ninja-for-building
reedloden Jan 16, 2024
37836c4
Expose `set_compliance_policy` and `get_ciphers`
jhoyla Jan 16, 2024
2c70857
Release 4.4.0
nox Jan 17, 2024
04af912
Updates boringssl-fips to fips-20220613
Jan 2, 2024
5e4c9a6
Updates required clang version to 14.0.0
Jan 2, 2024
199bebd
updates to 14.0.6
Jan 3, 2024
79a2bc6
force cmake generator to Ninja
Jan 10, 2024
402c116
Require Clang 14.0.x, install Ninja, only require Ninja for FIPS
reedloden Jan 22, 2024
28b12c1
Enable compliance policy when in FIPS mode
reedloden Jan 22, 2024
048c8ec
removes duplicate Ninja setting, comply with formatting
Jan 23, 2024
69d4083
Gate compliance policy apis:
Jan 24, 2024
83055ff
Adds BORING_BSSL_CPLUS_INCLUDE_PATH env variable handling
Jan 24, 2024
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
54 changes: 34 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: CI
on:
pull_request:
branches:
- master
- teleport
push:
branches:
- master
- teleport

env:
RUSTFLAGS: -Dwarnings
Expand All @@ -17,7 +17,7 @@ jobs:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable && rustup default stable
- name: Check formatting
Expand All @@ -27,16 +27,18 @@ jobs:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Rust
run: rustup update stable && rustup default stable
- name: Get rust version
id: rust-version
run: echo "::set-output name=version::$(rustc --version)"
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v4
- name: Cache cargo index
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cargo/registry/index
key: index-${{ runner.os }}-${{ github.run_number }}
Expand All @@ -45,14 +47,14 @@ jobs:
- name: Create lockfile
run: cargo generate-lockfile
- name: Cache cargo registry
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cargo/registry/cache
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- name: Fetch dependencies
run: cargo fetch
- name: Cache target directory
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: target
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
Expand Down Expand Up @@ -184,7 +186,7 @@ jobs:
extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Rust (rustup)
Expand Down Expand Up @@ -238,20 +240,22 @@ jobs:
name: Test FIPS integration
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Rust (rustup)
run: rustup update stable --no-self-update && rustup default stable
shell: bash
- name: Install Clang-12
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v4
- name: Install Clang-14
uses: KyleMayes/install-llvm-action@v1
with:
version: "12.0.0"
version: "14.0"
directory: ${{ runner.temp }}/llvm
- name: Add clang++-12 link
- name: Add clang++-14 link
working-directory: ${{ runner.temp }}/llvm/bin
run: ln -s clang clang++-12
run: ln -s clang clang++-14
- name: Run tests
run: cargo test --features fips
- name: Test boring-sys cargo publish (FIPS)
Expand All @@ -275,7 +279,7 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Rust (rustup)
Expand All @@ -299,20 +303,22 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Rust (rustup)
run: rustup update stable --no-self-update && rustup default stable && rustup target add ${{ matrix.target }}
shell: bash
- name: Install Clang-12
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v4
- name: Install Clang-14
uses: KyleMayes/install-llvm-action@v1
with:
version: "12.0.0"
version: "14.0"
directory: ${{ runner.temp }}/llvm
- name: Add clang++-12 link
- name: Add clang++-14 link
working-directory: ${{ runner.temp }}/llvm/bin
run: ln -s clang clang++-12
run: ln -s clang clang++-14
- name: Install ${{ matrix.target }} toolchain
run: brew tap messense/macos-cross-toolchains && brew install ${{ matrix.target }}
- name: Set BORING_BSSL_FIPS_COMPILER_EXTERNAL_TOOLCHAIN
Expand All @@ -330,7 +336,7 @@ jobs:
name: Test features
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Rust (rustup)
Expand All @@ -340,7 +346,15 @@ jobs:
name: Run `rpk` tests
- run: cargo test --features pq-experimental
name: Run `pq-experimental` tests
- run: cargo test --features underscore-wildcards
name: Run `underscore-wildcards` tests
- run: cargo test --features pq-experimental,rpk
name: Run `pq-experimental,rpk` tests
- run: cargo test --features kx-safe-default,pq-experimental
name: Run `kx-safe-default` tests
- run: cargo test --features pq-experimental,underscore-wildcards
name: Run `pq-experimental,underscore-wildcards` tests
- run: cargo test --features rpk,underscore-wildcards
name: Run `rpk,underscore-wildcards` tests
- run: cargo test --features pq-experimental,rpk,underscore-wildcards
name: Run `pq-experimental,rpk,underscore-wildcards` tests
12 changes: 12 additions & 0 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Dependency Review

on:
pull_request:
merge_group:

jobs:
dependency-review:
uses: gravitational/shared-workflows/.github/workflows/dependency-review.yaml@main
permissions:
contents: read
pull-requests: write
9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
resolver = "2"

[workspace.package]
version = "4.2.0"
version = "4.4.0"
repository = "https://github.com/cloudflare/boring"
edition = "2021"

Expand All @@ -19,9 +19,9 @@ tag-prefix = ""
publish = false

[workspace.dependencies]
boring-sys = { version = "4.2.0", path = "./boring-sys" }
boring = { version = "4.2.0", path = "./boring" }
tokio-boring = { version = "4.2.0", path = "./tokio-boring" }
boring-sys = { version = "4.4.0", path = "./boring-sys" }
boring = { version = "4.4.0", path = "./boring" }
tokio-boring = { version = "4.4.0", path = "./tokio-boring" }

bindgen = { version = "0.68.1", default-features = false, features = ["runtime"] }
cmake = "0.1.18"
Expand All @@ -40,4 +40,5 @@ http = "0.2"
hyper = { version = "0.14", default-features = false }
linked_hash_set = "0.1"
once_cell = "1.0"
tower = "0.4"
tower-layer = "0.3"
7 changes: 6 additions & 1 deletion boring-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ include = [
]

[package.metadata.docs.rs]
features = ["rpk", "pq-experimental"]
features = ["rpk", "pq-experimental", "underscore-wildcards"]
rustdoc-args = ["--cfg", "docsrs"]

[features]
Expand All @@ -71,6 +71,11 @@ rpk = []
# can be provided by setting `BORING_BSSL{,_FIPS}_SOURCE_PATH`.
pq-experimental = []

# Applies a patch (`patches/underscore-wildcards.patch`) to enable
# `ffi::X509_CHECK_FLAG_UNDERSCORE_WILDCARDS`. Same caveats as
# those for `pq-experimental` feature apply.
underscore-wildcards = []

[build-dependencies]
bindgen = { workspace = true }
cmake = { workspace = true }
Expand Down
Loading