Title: The data copy puts the source database URL, password included, on the command line of psql and pg_dump · Issue #355 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: The data copy puts the source database URL, password included, on the command line of psql and pg_dump · Issue #355 · cloudfall-dev/cloudfall
X Title: The data copy puts the source database URL, password included, on the command line of psql and pg_dump · Issue #355 · cloudfall-dev/cloudfall
Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem engine/ansible/roles/cloudfall_data_migration/tasks/main.yml passes the source URL to the PostgreSQL clients as an argument, in several tasks (about lines 53, 111, 206, 236)...
Open Graph Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem engine/ansible/roles/cloudfall_data_migration/tasks/main.yml passes the source URL to the PostgreSQL clients as an argument, in sever...
X Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem engine/ansible/roles/cloudfall_data_migration/tasks/main.yml passes the source URL to the PostgreSQL clients as an argument, in sever...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/355
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The data copy puts the source database URL, password included, on the command line of psql and pg_dump","articleBody":"Found in a whole-project review at 03e2faa (0.8.0rc45).\n\n## Problem\n\n`engine/ansible/roles/cloudfall_data_migration/tasks/main.yml` passes the source URL to the PostgreSQL clients as an argument, in several tasks (about lines 53, 111, 206, 236):\n\n```yaml\ncmd: >-\n psql\n --dbname \"$(cat {{ cloudfall_data_migration_url_path | quote }})\"\n```\n\nThe file is 0600 and the task is `no_log`, but the shell expands the URL into the argv of `psql` and `pg_dump`. For the length of the dump the source database password is readable in `/proc/\u003cpid>/cmdline` by every local user, application users included (component units set no `ProtectProc`).\n\n## Proposal\n\n- Hand the connection to the clients through a file or the environment of the task: `PGSERVICEFILE` with a 0600 service file, or `PGPASSFILE` plus a URL without the password\n- A test that no task of the role puts the URL file's content on a command line\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-15T16:02:28Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/355"}
| 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:eaa6fd6c-2b10-cec7-0fbc-117804174a57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A14E:29A85A:241283D:2F5203A:6B054E7A |
| html-safe-nonce | 76561f448a7ed928098213c9b5af53269c0101e2d820c5e0b901f231c1b2d433 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTRFOjI5QTg1QToyNDEyODNEOjJGNTIwM0E6NkIwNTRFN0EiLCJ2aXNpdG9yX2lkIjoiNjQzMjUxMDg1ODE2OTI0MTIxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 297b267958fe871798ff77b70ac1c5e98e3c155da3baf1848b52bd5185f6831a |
| hovercard-subject-tag | issue:6406205408 |
| 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/355/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17876d29b234a41c4134ec6fed156caaa61251b8189ad0484f457b4d1f94c36e/cloudfall-dev/cloudfall/issues/355 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17876d29b234a41c4134ec6fed156caaa61251b8189ad0484f457b4d1f94c36e/cloudfall-dev/cloudfall/issues/355 |
| og:image:alt | Found in a whole-project review at 03e2faa (0.8.0rc45). Problem engine/ansible/roles/cloudfall_data_migration/tasks/main.yml passes the source URL to the PostgreSQL clients as an argument, in sever... |
| 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