Skip to content

Document authentication without a user name for gRPC and Arrow Flight - #132536

Merged
Blargian merged 5 commits into
masterfrom
auth-without-user-name-docs
Nov 18, 2026
Merged

Blargian merged 5 commits into
masterfrom
auth-without-user-name-docs

Conversation

@cv4g

@cv4g cv4g commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Documents how the gRPC and Arrow Flight interfaces authenticate requests that don't name a user. This covers a gRPC query without user_name, and an Arrow Flight call without an authorization header or with an empty Basic user name.

Such a request is authenticated as the user named by the default_session_user server setting, like an HTTP request without the user parameter. The password, networks and other access checks apply as usual. If default_session_user is empty, the request is rejected, and with session_log enabled the rejection is recorded as a LoginFailure.

Also adds a note to the shipped config.xml that the substituted user is authenticated as usual.

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Workflow [PR]
Sync PR [sync-upstream/pr/132536]

Version info

  • Merged into: 26.11.1.2795-master (included in 26.11 and later)

A gRPC query without user_name, and an Arrow Flight call without an
authorization header or with Basic credentials with an empty user name, is
authenticated as the `default_session_user`, like an HTTP request without the
user parameter. Document this on both interface pages, and note in the shipped
config.xml that the substituted user is authenticated as usual.
@mintlify

mintlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
ClickHouse-docs 🟢 Ready View Preview Nov 18, 2026, 8:41 PM

@clickhouse-gh

clickhouse-gh Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1839ba1]

Summary: ✅


AI Review

Summary

Documents how gRPC and Arrow Flight resolve omitted or empty user names through default_session_user, including normal authentication checks and audited rejection when the setting is empty. No actionable findings in PR head 1839ba1f7239e322c5f63d50331a41dfaabf281d.

Final Verdict

✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-documentation Documentation PRs for the specific code PR label Nov 18, 2026
clickhouse-gh[bot]
clickhouse-gh Bot previously approved these changes Nov 18, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-documentation Documentation (docs, examples, READMEs). label Nov 18, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 1839ba1f7 with master b92770f43 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

7 translation units recompiled, 12 s compile time in total, 7 of them have a recent master baseline.

Job report

@Blargian Blargian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you @cv4g. I'll push a minor formatting change.

clickhouse-gh[bot]
clickhouse-gh Bot previously approved these changes Nov 18, 2026
@clickhouse-gh
clickhouse-gh Bot dismissed stale reviews from themself November 18, 2026 20:48

AI review of a later commit does not approve the PR, see the AI Review comment.

@Blargian
Blargian added this pull request to the merge queue Nov 18, 2026
Merged via the queue into master with commit f1ac9d1 Nov 18, 2026
193 checks passed
@Blargian
Blargian deleted the auth-without-user-name-docs branch November 18, 2026 23:37
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 18, 2026

This branch was successfully deployed

1 active deployment
staging - docs — 1839ba1f Deployed Nov 18, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-documentation Documentation (docs, examples, READMEs). pr-documentation Documentation PRs for the specific code PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants