Skip to content

docs(security): add an authentication and privilege management page - #400

Closed
qwer381 wants to merge 1 commit into
IvorySQL:masterfrom
qwer381:docs/security-privileges
Closed

qwer381 wants to merge 1 commit into
IvorySQL:masterfrom
qwer381:docs/security-privileges

Conversation

@qwer381

@qwer381 qwer381 commented Nov 12, 2026 •

Copy link
Copy Markdown

Closes #396

What this changes

Adds a new page, master/security/authentication_and_privileges.adoc (345 lines), in both the Chinese and the English tree, and links it from nav.adoc in each tree as a new top-level section placed immediately before the FAQ: 2 added lines per tree. Nothing else changes — no existing page or navigation entry is modified. 694 inserted lines in total, no deletions.

The page has six sections:

  1. Authentication Overview — the five fields of a pg_hba.conf rule, and why a reload is enough after editing it.
  2. Passwords and Encryption — the values password_encryption accepts, and what is actually stored for a password.
  3. Transport Encryption — the ssl* parameters, with a note that their number and their defaults depend on how the binary was built.
  4. Roles and Privileges — role attributes, GRANT/REVOKE, object ownership and default privileges.
  5. Differences in Oracle Compatible Mode — the mode is decided by the listener you connect to, plus Oracle-style DDL and role statements.
  6. Privilege Troubleshooting Checklist.

Why

The documentation had nothing on authentication or privilege management: there was no security/ directory under master/, password_encryption appeared three times on a single page and never in the English tree, and the Oracle-specific behaviour — that the compatibility mode follows the listener, and that CREATE USER ... IDENTIFIED BY is rejected — was documented nowhere. Administrators ended up reading pg_hba.conf comments and source code.

Verification

  • The patch applies cleanly on master (7d4ad9d); git apply --check and git apply both exit 0, and the resulting blob hashes are identical to the ones recorded in the patch index, so the committed bytes are exactly the reviewed ones.
  • Rendered with asciidoctor 4.2.1 in both trees: zero warnings, one h1, six h2, nine h3, one table and eighteen listing blocks.
  • Every statement was checked against a running 5.6 instance initialised in Oracle mode: the column list and column order of pg_hba_file_rules, the line numbers of the default rules, password_encryption defaulting to scram-sha-256 with enumvals {md5,scram-sha-256}, the mode reported on each of the two listeners, to_char(sysdate, ...) FROM dual, the default public ACL of a database, and the error returned by CREATE USER ... IDENTIFIED BY on both ports.
  • The navigation entry points at a page that is created in the same commit, so no xref is left dangling.

Refs #164
Refs #165

  • I have signed the CLA

There was no page on authentication methods or privilege management: the
master tree had no security/ directory and password_encryption was mentioned
on a single page. Add a page covering the fields of a pg_hba.conf rule and
why a reload is enough, the values of password_encryption and how a password
is stored, transport encryption, roles, GRANT/REVOKE, ownership and default
privileges, the differences in Oracle compatible mode, and a troubleshooting
checklist; link it from the navigation in both trees.

Assisted-by: DSH:deepseek-v4.1
Percentage of AI-generated code: 100%
@github-actions
github-actions Bot temporarily deployed to pull request November 12, 2026 15:13 Inactive
@github-actions

Copy link
Copy Markdown

🚀 IvorySQL-Docs Preview Ready

@qwer381

qwer381 commented Nov 12, 2026

Copy link
Copy Markdown
Author

Duplicate of #399, opened seconds apart with an identical patch (+694 −0, the same four files: CN/EN nav.adoc plus the new master/security/authentication_and_privileges.adoc) against the same issue. #399 carries the verification notes and a green build-and-deploy / Netlify run, so the review should happen there. Closing this copy rather than splitting the review attention between two identical diffs.

This branch was previously deployed

1 inactive deployment
pull request — dd70ad7f Deployed Nov 12, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant