Skip to content

restrict permissions on teradata credential files written for ssh runs - #71766

Open
Samin061 wants to merge 1 commit into
apache:mainfrom
Samin061:teradata-credential-file-perms
Open

restrict permissions on teradata credential files written for ssh runs#71766
Samin061 wants to merge 1 commit into
apache:mainfrom
Samin061:teradata-credential-file-perms

Conversation

@Samin061

Copy link
Copy Markdown
Contributor

The Teradata remote-execution paths write the tbuild script, the tdload job-variable file, and the BTEQ script to a local temp file before encrypting and transferring them, and each of those embeds the connection password (UserPassword/TargetUserPassword for TPT, .LOGON <host>/<user>,<password> for BTEQ). The local-execution siblings already restrict those files to the owner through set_local_file_permissions, but the three SSH paths left them at the process umask, so under a common umask the credential files are group- and world-readable on disk before transfer. This applies the same owner-only restriction at the three remote-execution sites and adds regression tests.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

The remote (SSH) execution paths wrote the tbuild script, tdload job-variable
file, and BTEQ script (all embedding the connection password) at the process
umask, while the local-execution siblings already narrow the same files to
owner-only. Apply the same restriction so credentials are not left group- or
world-readable before encryption and transfer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant