You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by aa...@apache.org on 2026/09/08 16:00:48 UTC

(kyuubi) branch branch-1.12 updated: [KYUUBI #7676][DOCS] Recommend multi-tenant session config safeguards

This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/branch-1.12 by this push:
     new 7df6ed4379 [KYUUBI #7676][DOCS] Recommend multi-tenant session config safeguards
7df6ed4379 is described below

commit 7df6ed4379a7d9744341d45b69b976856fa6154b
Author: nightcityblade <ja...@haloailabs.com>
AuthorDate: Wed Sep 9 00:59:56 2026 +0900

    [KYUUBI #7676][DOCS] Recommend multi-tenant session config safeguards
    
    ### Why are the changes needed?
    
    The session configuration ignore and restrict lists are empty by default. In a
    multi-tenant deployment, leaving both lists empty lets clients override
    sensitive session-level configuration during engine bootstrap and connection
    setup. This adds an explicit administrator recommendation to the existing
    security documentation.
    
    Closes #7676.
    
    ### How was this patch tested?
    
    - `env PATH=/usr/bin:/bin:/usr/sbin:/sbin dev/reformat`
    - `sphinx-build -W --keep-going -D suppress_warnings=myst.xref_missing,misc.highlighting_failure -b html docs /tmp/kyuubi-docs-build-7676-focused`
    - Confirmed the generated `security/authorization/spark/overview.html` contains
      the recommendation.
    
    The Sphinx suppression covers existing warnings in unrelated documentation;
    the changed page builds without warnings.
    
    ### Was this patch assisted by generative AI tooling?
    
    Assisted-by: OpenAI Codex:GPT-5
    
    Closes #7677 from nightcityblade/kyuubi-7676-recommend-session-config.
    
    Closes #7676
    
    a861a7763 [nightcityblade] docs: fix security index formatting
    95c480efd [nightcityblade] docs: separate session configuration guidance
    9bf6e91f8 [nightcityblade] docs: move session config guidance to security overview
    44994a27f [nightcityblade] [KYUUBI #7676][DOCS] Add session config baseline
    efb623931 [nightcityblade] [KYUUBI #7676][DOCS] Recommend multi-tenant session config safeguards
    
    Lead-authored-by: nightcityblade <ja...@haloailabs.com>
    Co-authored-by: nightcityblade <ni...@gmail.com>
    Signed-off-by: Akira Ajisaka <aa...@apache.org>
    (cherry picked from commit 503aa4f17b2b353b96f0530477ff6639a88bfadd)
    Signed-off-by: Akira Ajisaka <aa...@apache.org>
---
 docs/security/index.md                 |  1 +
 docs/security/session_configuration.md | 40 ++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/docs/security/index.md b/docs/security/index.md
index eca3416188..0c85c49916 100644
--- a/docs/security/index.md
+++ b/docs/security/index.md
@@ -25,6 +25,7 @@ and encryption, etc.
 
 Authentication <authentication>
 Authorization <authorization/index>
+Session Configuration <session_configuration>
 kinit
 hadoop_credentials_manager
 internal_secure_access
diff --git a/docs/security/session_configuration.md b/docs/security/session_configuration.md
new file mode 100644
index 0000000000..b61f71b759
--- /dev/null
+++ b/docs/security/session_configuration.md
@@ -0,0 +1,40 @@
+<!--
+- Licensed to the Apache Software Foundation (ASF) under one or more
+- contributor license agreements.  See the NOTICE file distributed with
+- this work for additional information regarding copyright ownership.
+- The ASF licenses this file to You under the Apache License, Version 2.0
+- (the "License"); you may not use this file except in compliance with
+- the License.  You may obtain a copy of the License at
+-
+-   http://www.apache.org/licenses/LICENSE-2.0
+-
+- Unless required by applicable law or agreed to in writing, software
+- distributed under the License is distributed on an "AS IS" BASIS,
+- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+- See the License for the specific language governing permissions and
+- limitations under the License.
+-->
+
+# Protect Session Configurations
+
+For a multi-tenant deployment, configure at least one of
+`kyuubi.session.conf.ignore.list` or `kyuubi.session.conf.restrict.list`. Both
+lists are empty by default, so clients can otherwise override sensitive
+session-level configurations during engine bootstrap and connection setup.
+
+One conservative starting point is:
+
+```properties
+kyuubi.session.conf.ignore.list=spark.driver.memory,spark.executor.memory
+kyuubi.session.conf.restrict.list=kyuubi.session.engine.spark.main.resource,kyuubi.engine.share.level,spark.master,spark.submit.deployMode,spark.sql.extensions,spark.sql.optimizer.excludedRules
+```
+
+This example is not comprehensive. Tailor both lists to the deployment. The
+ignore list silently drops matching client values, while the restrict list
+rejects the connection. Some settings are static or consumed during engine
+startup and therefore cannot be changed later. For other settings, configure
+the engine's operation-level restrictions when changes through `SET` statements
+must also be prevented.
+
+See the [session configuration settings](../configuration/settings.md#session)
+for details.