René's URL Explorer Experiment


Title: Set a PostgreSQL owner's password only when it changed by shipmill-romamo[bot] · Pull Request #413 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Set a PostgreSQL owner's password only when it changed by shipmill-romamo[bot] · Pull Request #413 · cloudfall-dev/cloudfall

X Title: Set a PostgreSQL owner's password only when it changed by shipmill-romamo[bot] · Pull Request #413 · cloudfall-dev/cloudfall

Description: Summary A PostgreSQL owner role with a passwordRef reported a change on every services converge: the store task had changed_when: true, and the controller staged a verifier with a fresh random salt each run, so it could never equal the stored one. This implements D-25 (decided on #398, recorded in #412): The role reads the owner's rolcanlogin and stored rolpassword from pg_authid (no_log) A new controller-side filter, cloudfall_scram_verifier (roles/cloudfall_postgresql/filter_plugins/scram.py, stdlib only like the other role plugins), computes the password's SCRAM-SHA-256 verifier with the stored verifier's salt and iteration count, or a fresh 16-byte salt and 4096 iterations when the role has no SCRAM verifier (none, or md5) The verifier is copied to the host and ALTER ROLE runs, reporting a change, only when the role can't log in or the verifiers differ; otherwise nothing runs and nothing changes A stored password of any other shape (a broken SCRAM verifier, cleartext, no role row) stops the run through an assert whose message names the role and the problem, never the value The controller now stages the owner's password itself in its private 0600 temp file (it never leaves the controller) so the filter can compute the verifier mid-play; only a verifier reaches the host, as D-9 requires The converge fixture's postgresql-main gets a second database, ledger, owned by ledger with a passwordRef; the converge job installs sops (pinned by SHA-256) and age, encrypts a random password to a throwaway age key, logs in as ledger over TCP to prove the verifier works, and the second converge must still report changed=0 Plan Serves: quality bar Files: engine/ansible/roles/cloudfall_postgresql/tasks/owner_password.yml, a new engine/ansible/roles/cloudfall_postgresql/filter_plugins/scram.py, sdk/src/cloudfall/secrets.py (stage the owner password in its controller-only 0600 file), engine/tests/test_postgresql_owner_role.py, sdk/tests/test_owned_postgresql_converge.py, the converge fixture (engine/tests/converge/project/services/postgresql-main.yaml, .github/workflows/converge.yml), docs/secrets-guide.md, docs/specs/006-standalone-postgresql.md, a changelog.d fragment Order: first the failing replay test (an unchanged password reports no change, a changed one does), then the filter and the role's read-compare-alter tasks, then the SDK staging, then the fixture's passwordRef and docs Proof: the replay test of the role's tasks at -vvv --diff (unchanged: no ALTER and no change; changed: ALTER and a change; malformed stored verifier: the play fails; neither the password nor either verifier in any output, argv or stdin); the filter's unit tests against the SDK's scram_sha256_verifier; the converge job's second run reporting changed=0 with an owner that has a passwordRef Test plan engine/tests/test_postgresql_owner_role.py replays the owner password tasks on localhost with a stand-in psql at -vvv --diff: an unchanged password reports changed=0 and never runs the ALTER; a rotated password (same stored salt) runs it with the verifier computed from the stored salt; a role that can't log in, has no password, or has an md5 verifier gets a fresh verifier; a broken SCRAM verifier, cleartext, or no role row fails the play; in every case neither the password nor any verifier appears in Ansible's output or any psql argv/stdin. The new tests fail on the old task file The filter's verifier equals cloudfall.secrets.scram_sha256_verifier for ASCII and SASLprep passwords, keeps a stored non-default iteration count, and its problem messages never quote the stored value sdk/tests/test_owned_postgresql_converge.py adapted: the staged controller file holds the password, 0600 in a 0700 dir outside the project, removed after the run; the password is still in no argv, environment, answer, receipt or project file Run locally: uv run ruff check ., uv run mypy (root and demo/), uv run ansible-lint engine/ansible, and the touched test files (88 passed). The full suite and the converge job are left to CI Fixes #398 🤖 Generated with Claude Code

Open Graph Description: Summary A PostgreSQL owner role with a passwordRef reported a change on every services converge: the store task had changed_when: true, and the controller staged a verifier with a fresh random salt...

X Description: Summary A PostgreSQL owner role with a passwordRef reported a change on every services converge: the store task had changed_when: true, and the controller staged a verifier with a fresh random salt...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/413

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cd137d90-8ff3-0b5d-71d9-d2e29e64c3d8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD748:3B27CE:19AF2EB:21B42D8:6B0556A7
html-safe-nonce1b6d1c8ea7ed81cff1bab518a03f2214b847c9d61a7610a653556f386ae5c39d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQ4OjNCMjdDRToxOUFGMkVCOjIxQjQyRDg6NkIwNTU2QTciLCJ2aXNpdG9yX2lkIjoiNDAwMTkzODY3ODY2OTk4OTU0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac931f12a067a3c8a4e72ba969ee8a7dbea2f4e5e21c7536a3def8a033b6ae71eb
hovercard-subject-tagpull_request:5332637834
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/413/files
twitter:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
og:image:altSummary A PostgreSQL owner role with a passwordRef reported a change on every services converge: the store task had changed_when: true, and the controller staged a verifier with a fresh random salt...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/413/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F413%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F413%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/413/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/413/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/413/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues78 (78)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests10 (10)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
shipmill-romamohttps://github.com/apps/shipmill-romamo
mainhttps://github.com/cloudfall-dev/cloudfall/tree/main
fix/398-owner-password-idempotenthttps://github.com/cloudfall-dev/cloudfall/tree/fix/398-owner-password-idempotent
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/413
Commits 2 https://github.com/cloudfall-dev/cloudfall/pull/413/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/413/checks
Files changed 10 https://github.com/cloudfall-dev/cloudfall/pull/413/files
Set a PostgreSQL owner's password only when it changed https://github.com/cloudfall-dev/cloudfall/pull/413/files#top
Show all changes 2 commits https://github.com/cloudfall-dev/cloudfall/pull/413/files
551b0ae Set a PostgreSQL owner's password only when it changed shipmill-romamo[bot] Nov 16, 2026 https://github.com/cloudfall-dev/cloudfall/pull/413/commits/551b0ae2241e4768a3e55dcdad7cc10fd825f685
be27d20 Refuse a stored SCRAM iteration count above PostgreSQL's int range shipmill-romamo[bot] Nov 16, 2026 https://github.com/cloudfall-dev/cloudfall/pull/413/commits/be27d207936b21edeb6a5ec0a68b7f0a2dc8b50b
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/413/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/413/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/413/files
converge.yml https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
398-owner-password-idempotent.md https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-2821d7cc5a50e22e6eba2c9c53c15da0f1ab745e57cc87c7a6450aba64b94adf
secrets-guide.md https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-24d0e3f56ed829c3adf6ee3e75cf605e6dbd61ac74fd9332d24ca0c99ddf14f5
006-standalone-postgresql.md https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-35c41c67c849e388147e087eecfdf9af99525bae42f6224fc81cc9c797062c71
scram.py https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-e80e1c2077ca5559736e525dc9116f95c9203db68601141187b30c24324a6bbc
owner_password.yml https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-28a42f4a24c848198bd1ef584a84ddc049ed5bbd9a3e4f197ad5ab21b03e8c9d
postgresql-main.yaml https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-e3a9e6c57188b983685bb6958164403d623a19e1a0e1beffbf36046a98514fd4
test_postgresql_owner_role.py https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-45a76d4d432b2a70a51c6013bf32c0ea0500a7e457bf99baf99f527d054ae5a6
secrets.py https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-f77ae089a11c3a96306e385f24dee9e944d0884205af2bd0f87172c652aecc1f
test_owned_postgresql_converge.py https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-86a389b9bbf7d2dc090a90c0e540cbbd5c3fdfab3a048986e3ea8291f0656cf8
.github/workflows/converge.ymlhttps://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
View file https://github.com/cloudfall-dev/cloudfall/blob/be27d207936b21edeb6a5ec0a68b7f0a2dc8b50b/.github/workflows/converge.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/413/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-3056fa53568d2572c9832cc9b63cd181a8e880ec40d38da4d107c22dabf8462f
changelog.d/398-owner-password-idempotent.mdhttps://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-2821d7cc5a50e22e6eba2c9c53c15da0f1ab745e57cc87c7a6450aba64b94adf
View file https://github.com/cloudfall-dev/cloudfall/blob/be27d207936b21edeb6a5ec0a68b7f0a2dc8b50b/changelog.d/398-owner-password-idempotent.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/413/{{ revealButtonHref }}
docs/secrets-guide.mdhttps://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-24d0e3f56ed829c3adf6ee3e75cf605e6dbd61ac74fd9332d24ca0c99ddf14f5
View file https://github.com/cloudfall-dev/cloudfall/blob/be27d207936b21edeb6a5ec0a68b7f0a2dc8b50b/docs/secrets-guide.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/413/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-24d0e3f56ed829c3adf6ee3e75cf605e6dbd61ac74fd9332d24ca0c99ddf14f5
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-24d0e3f56ed829c3adf6ee3e75cf605e6dbd61ac74fd9332d24ca0c99ddf14f5
docs/specs/006-standalone-postgresql.mdhttps://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-35c41c67c849e388147e087eecfdf9af99525bae42f6224fc81cc9c797062c71
View file https://github.com/cloudfall-dev/cloudfall/blob/be27d207936b21edeb6a5ec0a68b7f0a2dc8b50b/docs/specs/006-standalone-postgresql.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/413/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-35c41c67c849e388147e087eecfdf9af99525bae42f6224fc81cc9c797062c71
https://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-35c41c67c849e388147e087eecfdf9af99525bae42f6224fc81cc9c797062c71
engine/ansible/roles/cloudfall_postgresql/filter_plugins/scram.pyhttps://github.com/cloudfall-dev/cloudfall/pull/413/files#diff-e80e1c2077ca5559736e525dc9116f95c9203db68601141187b30c24324a6bbc
View file https://github.com/cloudfall-dev/cloudfall/blob/be27d207936b21edeb6a5ec0a68b7f0a2dc8b50b/engine/ansible/roles/cloudfall_postgresql/filter_plugins/scram.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/413/{{ revealButtonHref }}
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/413/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/413/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.