Repository navigation
Conversation
…sed logins) Milestone 44's coverage run found failed logins never run (AuthFailedBecause 0 of 14 lines), nor user expiry dates, nor users changed while the database runs. With --security, each LOGIN check adds a user of its own through @SetYamlConfiguration (YAML in plain text or masked, or assignments), which @GetYamlConfiguration must list with its password's digest; the user must log in with its password and be refused with another, as must a user that does not exist. Then a new password, an expiry date in the past and in the future, another role, or a change VoltDB must refuse; finally the user is removed and must be refused. Logins use the native client, which says "Authentication rejected" where the JDBC driver only says it could not connect. Changes take turns with CONFIG's (its lock, now shared). run-coverage.sh runs LOGIN, and run-sqlancer.sh's summary prints its counts. A masked password in lowercase hex gives a user that never logs in; while avoiding known bugs LOGIN masks in uppercase (MASKED_CASE_BUG, to be filed).
…o a lowercase one fails at its login (the bug), not at the listing
This was referenced Nov 10, 2026
Author
|
Superseded by #51, which combines every ENG-30396 PR of this repo into one. This PR's branch is kept, and its description still has this milestone's details and lab results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Milestone 44's coverage run found failed logins never run:
AuthFailedBecause0 of 14 lines, and none of the log lines for a refused login. Nothing changed users while the database ran, and nothing used an expiry date.What it changes
--security. Each check works with a user of its own,loginN:@SetYamlConfiguration, in one of three ways: a YAML document with the password in plain text, a YAML document with it masked (its SHA-256 digest,plaintext: false), or assignments.@GetYamlConfiguration('deployment.users')must list the user with its role and its masked password..users[loginN]=null). It must no longer be listed, and must be refused.run-coverage.shruns LOGIN.run-sqlancer.sh's summary prints LOGIN's counts: checks, logins accepted and refused, and user changes refused.Bugs found
repros/ENG-30695.sh. While avoiding known bugs, LOGIN masks passwords in uppercase.Coverage (
run-coverage.sh's 10-minute security run, against milestone 44's six runs)AuthFailedBecauseAuthUserHashAuthenticationRequestSetYamlConfigurationYamlUtils.PropertyParserMost of what security still misses is LDAP and Kerberos, which need servers of their own.
Testing
mvn verify -DskipTestspasses: formatter, Checkstyle, PMD and SpotBugs. Two tests error locally:TestUsageNamingConvention(a JDK 17 reflection error, and it errors on the base branch too) andTestPostgresQueryPlan(it needs a Postgres server).matrix-systemtest-apprunner-sqlancer(branch jobENG-30396-sqlancer-nightly, a replay) ran fork 3a80cb3 against 16.1.0-SNAPSHOT (master kit 400): the security run (1 node over TLS, 45 minutes, all thirty-two oracles) passed. LOGIN made 366 checks, with 734 logins accepted, 1,232 refused and 85 user changes refused; PERMS checked 146 allowed and 152 refused statements, and CONFIG 334 changes. No database failed.