Skip to content

Commit 25661d6

Browse files
chore: Update templated files (f1f1a9e) (#583)
* chore: Generated commit to update templated files since the last template run up to stackabletech/operator-templating@f1f1a9e Reference-to: stackabletech/operator-templating@f1f1a9e (Bump Rust to 1.85.0) * fix: rustfmt lint * ci: use nightly toolchain for cargo udeps * ci: use nightly toolchain for cargo udeps * Revert "ci: use nightly toolchain for cargo udeps" This reverts commit ddced68. * Revert "ci: use nightly toolchain for cargo udeps" This reverts commit 645d356. --------- Co-authored-by: Nick Larsen <[email protected]>
1 parent 53945ea commit 25661d6

File tree

35 files changed

+150
-147
lines changed

35 files changed

+150
-147
lines changed

.github/PULL_REQUEST_TEMPLATE/pre-release-rust-deps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bump Rust Dependencies for Stackable Release XX.(X)X
1+
# Bump Rust Dependencies for Stackable Release YY.M.X
22

33
<!--
44
Make sure to update the link in 'issues/.github/ISSUE_TEMPLATE/pre-release-operator-rust-deps.md'
@@ -32,7 +32,7 @@ Part of <https://github.com/stackabletech/issues/issues/TRACKING_ISSUE>
3232
3333
```[tasklist]
3434
### Bump Rust Dependencies
35-
- [ ] Bump `stackable-operator` and friends.
36-
- [ ] Bump `product-version`.
37-
- [ ] Bump all other dependencies.
35+
- [ ] Bump `stackable-operator` and friends
36+
- [ ] Bump `product-config`
37+
- [ ] Bump all other dependencies
3838
```

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ env:
2626
CARGO_TERM_COLOR: always
2727
CARGO_INCREMENTAL: '0'
2828
CARGO_PROFILE_DEV_DEBUG: '0'
29-
RUST_TOOLCHAIN_VERSION: "1.84.1"
29+
RUST_TOOLCHAIN_VERSION: "1.85.0"
30+
RUST_NIGHTLY_TOOLCHAIN_VERSION: "nightly-2025-01-15"
3031
PYTHON_VERSION: "3.12"
3132
RUSTFLAGS: "-D warnings"
3233
RUSTDOCFLAGS: "-D warnings"
@@ -136,9 +137,11 @@ jobs:
136137
submodules: recursive
137138
- uses: dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
138139
with:
139-
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
140+
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
140141
components: rustfmt
141-
- run: cargo fmt --all -- --check
142+
- env:
143+
RUST_TOOLCHAIN_VERSION: ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
144+
run: cargo "+$RUST_TOOLCHAIN_VERSION" fmt --all -- --check
142145

143146
run_clippy:
144147
name: Run Clippy

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"rust-analyzer.rustfmt.overrideCommand": [
3+
"rustfmt",
4+
"+nightly-2025-01-15",
5+
"--"
6+
],
7+
}

deny.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ ignore = [
2929
#
3030
# TODO: Remove after https://github.com/kube-rs/kube/pull/1652 is merged
3131
"RUSTSEC-2024-0384",
32-
33-
# https://rustsec.org/advisories/RUSTSEC-2025-0012
34-
# "backoff" is unmainted.
35-
#
36-
# Upstream (kube) has switched to backon in 0.99.0, and an upgrade is scheduled on our end. In the meantime,
37-
# this is a very low-severity problem.
38-
#
39-
# TODO: Remove after upgrading to kube 0.99.
40-
"RUSTSEC-2025-0012",
4132
]
4233

4334
[bans]

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# DO NOT EDIT, this file is generated by operator-templating
22
[toolchain]
3-
channel = "1.84.1"
3+
channel = "1.85.0"

rust/krb5-provision-keytab/src/active_directory.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
use byteorder::{LittleEndian, WriteBytesExt};
88
use krb5::{Keyblock, Keytab, KrbContext, Principal, PrincipalUnparseOptions};
99
use ldap3::{Ldap, LdapConnAsync, LdapConnSettings, Scope, SearchEntry};
10-
use rand::{seq::IndexedRandom, CryptoRng};
10+
use rand::{CryptoRng, seq::IndexedRandom};
1111
use snafu::{OptionExt, ResultExt, Snafu};
1212
use stackable_krb5_provision_keytab::ActiveDirectorySamAccountNameRules;
1313
use stackable_operator::{
@@ -399,12 +399,9 @@ async fn get_user_kvno(
399399

400400
// Perform search with KVNO attribute
401401
let (search_results, _) = ldap
402-
.search(
403-
distinguished_name,
404-
Scope::Base,
405-
"(objectClass=user)",
406-
vec!["msDS-KeyVersionNumber"],
407-
)
402+
.search(distinguished_name, Scope::Base, "(objectClass=user)", vec![
403+
"msDS-KeyVersionNumber",
404+
])
408405
.await
409406
.context(SearchLdapSnafu)?
410407
.success()

rust/krb5-provision-keytab/src/credential_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use futures::{TryFuture, TryFutureExt};
22
use snafu::{OptionExt, ResultExt, Snafu};
33
use stackable_operator::{
4-
k8s_openapi::{api::core::v1::Secret, ByteString},
4+
k8s_openapi::{ByteString, api::core::v1::Secret},
55
kube::{
66
self,
77
api::{Patch, PatchParams},

rust/krb5-provision-keytab/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{
22
ffi::{CString, NulError},
33
fmt::Display,
4-
io::{stdin, BufReader},
4+
io::{BufReader, stdin},
55
};
66

77
use krb5::{Keyblock, Keytab};

rust/krb5-provision-keytab/src/mit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::ffi::CStr;
22

3-
use krb5::{kadm5, Keytab, Principal};
3+
use krb5::{Keytab, Principal, kadm5};
44
use snafu::{ResultExt, Snafu};
55

66
#[derive(Debug, Snafu)]

rust/krb5/src/kadm5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::{
2-
ffi::{c_char, c_int, CStr, CString},
2+
ffi::{CStr, CString, c_char, c_int},
33
fmt::Display,
44
slice,
55
};

0 commit comments

Comments
 (0)