Skip to content

AAP-81224 : Fix controller postgres password encryption SECRET_KEY load order - #6032

Open
nikhjain14 wants to merge 1 commit into
ansible:mainfrom
nikhjain14:fix-encrypt-postgres-password-secret-key
Open

AAP-81224 : Fix controller postgres password encryption SECRET_KEY load order#6032
nikhjain14 wants to merge 1 commit into
ansible:mainfrom
nikhjain14:fix-encrypt-postgres-password-secret-key

Conversation

@nikhjain14

@nikhjain14 nikhjain14 commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • Update proc-encrypt-postgres-password.adoc so automation controller docs load /etc/tower/SECRET_KEY and pass secret_key= to get_encryption_key() before decrypting the PostgreSQL password in /etc/tower/conf.d/postgres.py.
  • Without this, following the published steps fails with ImproperlyConfigured: The SECRET_KEY setting must not be empty during settings import.
  • Fix the broken one-line example and $encrytpted typo, and add backup, awx-manage check, restart, and verification steps.
  • Cross-link KCS: https://access.redhat.com/solutions/7145931

Test plan

  • Validated on RPM automation controller: get_encryption_key('value') alone fails; secret_key=_secret_key from /etc/tower/SECRET_KEY succeeds (awx-manage check reports no issues; services restart cleanly).
  • Docs preview / peer review of AsciiDoc rendering for the procedure and note.
  • Confirm assembly include order still shows hash-creation procedure before this encrypt procedure.

… order

Document loading /etc/tower/SECRET_KEY and passing secret_key= to
get_encryption_key(), matching the working RPM controller procedure and
KCS https://access.redhat.com/solutions/7145931. Also fix the broken
example, typo, and add validation/restart/verification steps.

Co-authored-by: Cursor <cursoragent@cursor.com>
@nikhjain14 nikhjain14 changed the title Fix controller postgres password encryption SECRET_KEY load order AAP-81224 : Fix controller postgres password encryption SECRET_KEY load order Jul 28, 2026
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