From f6a60f04752192f90e841cefb58d65a1694f0cc4 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 7 Mar 2025 09:06:30 +0100 Subject: [PATCH 1/3] docs: Update Rego rules to v1 --- .../trino/pages/usage-guide/operations/graceful-shutdown.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc b/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc index 1be2ac7d..4812096e 100644 --- a/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc +++ b/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc @@ -110,7 +110,7 @@ If you use your own custom rego rules, you can achieve this by adding the follow [source,rego] ---- -allow { +if allow { input.action.operation == "WriteSystemInformation" input.context.identity.user == "graceful-shutdown-user" } From 6a9e9ba84615c61f9333517181725f93c990ab9a Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 7 Mar 2025 09:10:11 +0100 Subject: [PATCH 2/3] typo --- .../trino/pages/usage-guide/operations/graceful-shutdown.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc b/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc index 4812096e..f24ce39e 100644 --- a/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc +++ b/docs/modules/trino/pages/usage-guide/operations/graceful-shutdown.adoc @@ -110,7 +110,8 @@ If you use your own custom rego rules, you can achieve this by adding the follow [source,rego] ---- -if allow { +# Allow graceful shutdown, see https://docs.stackable.tech/home/stable/trino/usage-guide/operations/graceful-shutdown/#_authorization_requirements +allow if { input.action.operation == "WriteSystemInformation" input.context.identity.user == "graceful-shutdown-user" } From 9ed1c3139f3d83e7cb2ee6c163975a00e861ccac Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 7 Mar 2025 09:11:12 +0100 Subject: [PATCH 3/3] Update ring for RUSTSEC-2025-0009 --- Cargo.lock | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b9798d40..a1a0e9c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -2179,15 +2179,14 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2" [[package]] name = "ring" -version = "0.17.8" +version = "0.17.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +checksum = "70ac5d832aa16abd7d1def883a8545280c20a60f523a370aa3a9617c2b8550ee" dependencies = [ "cc", "cfg-if", "getrandom", "libc", - "spin", "untrusted", "windows-sys 0.52.0", ] @@ -2585,12 +2584,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "spin" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" - [[package]] name = "stable_deref_trait" version = "1.2.0"