Title: Locked MariaDB accounts are never unlocked: account_locked reads as 1, not 'true', on 11.8 · Issue #452 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Locked MariaDB accounts are never unlocked: account_locked reads as 1, not 'true', on 11.8 · Issue #452 · cloudfall-dev/cloudfall
X Title: Locked MariaDB accounts are never unlocked: account_locked reads as 1, not 'true', on 11.8 · Issue #452 · cloudfall-dev/cloudfall
Description: Found by the real-host proving run of #441 (MariaDB 11.8.9, main at c32ec5e). replication_account.yml:52 and defaults/main.yml (lines 114 and 230, the declared users' state) find locked accounts with JSON_VALUE(Priv, '$.account_locked') ...
Open Graph Description: Found by the real-host proving run of #441 (MariaDB 11.8.9, main at c32ec5e). replication_account.yml:52 and defaults/main.yml (lines 114 and 230, the declared users' state) find locked accounts wi...
X Description: Found by the real-host proving run of #441 (MariaDB 11.8.9, main at c32ec5e). replication_account.yml:52 and defaults/main.yml (lines 114 and 230, the declared users' state) find locked account...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/452
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Locked MariaDB accounts are never unlocked: account_locked reads as 1, not 'true', on 11.8","articleBody":"Found by the real-host proving run of #441 (MariaDB 11.8.9, `main` at c32ec5e).\n\n`replication_account.yml:52` and `defaults/main.yml` (lines 114 and 230, the declared users' state) find locked accounts with `JSON_VALUE(Priv, '$.account_locked') = 'true'`. On 11.8.9 that expression returns `1` for a locked account:\n\n```\nSELECT Host, JSON_VALUE(Priv, '$.account_locked') FROM mysql.global_priv WHERE User = 'cloudfall_repl'\n168.119.55.115 1\n168.119.52.6 1\n```\n\nSo the role never sees an account as locked, and the effects showed on real servers:\n\n- \"Unlock the replication account of a declared replica\" never runs. After the roles were swapped back, db2 came back as db1's replica, and its `cloudfall_repl@\u003cdb2>` account (locked earlier, when db2 was the primary) stayed locked. The link failed: `Access denied, this account is locked`. It was unlocked by hand to continue\n- \"Unlock a declared user that was locked\" was skipped for `billing` (`skipping: [db1] => (item=billing)`) while `billing@localhost` was locked, after the database was declared on the other service again. The application user stayed locked, and a socket client got `ERROR 4151 Access denied, this account is locked` until it was unlocked by hand\n- \"Lock the replication account of a server that left the pair\" reports `changed` on every converge of a primary, because the already-locked account is never filtered out. One more reason a second converge is not `changed=0` (S-019-13)\n\nComparing with `IN ('true', '1')`, or reading `JSON_EXTRACT(Priv, '$.account_locked')` as JSON, would cover both.\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-16T21:26:46Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/452"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fe612b0e-89a0-6e25-7865-a996e6705ea1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF0A:104CA3:DFD06E:13276C4:6B0554E4 |
| html-safe-nonce | 02516f49e38bf5c88a241060ee062bd43303a6aaecd46f91bd10664348ea4bc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjBBOjEwNENBMzpERkQwNkU6MTMyNzZDNDo2QjA1NTRFNCIsInZpc2l0b3JfaWQiOiI1ODIxMDQ3ODc4MDI0Nzc3OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 84d619c7fab6b4ae36fad129818cb7c2867edf0cdfd879384d822e13bb46d9dc |
| hovercard-subject-tag | issue:6431159155 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/452/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55f18b7fb7a38cf49e2ae3412cad8a132bce6779b248e4c0cc2ab266e507fe33/cloudfall-dev/cloudfall/issues/452 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55f18b7fb7a38cf49e2ae3412cad8a132bce6779b248e4c0cc2ab266e507fe33/cloudfall-dev/cloudfall/issues/452 |
| og:image:alt | Found by the real-host proving run of #441 (MariaDB 11.8.9, main at c32ec5e). replication_account.yml:52 and defaults/main.yml (lines 114 and 230, the declared users' state) find locked accounts wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width