Skip to content

Commit 4123b2e

Browse files
Potential fix for code scanning alert no. 8: Clear-text storage of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 90e1cec commit 4123b2e

File tree

1 file changed

+2
-0
lines changed
  • custom-domain/dstack-ingress/scripts/dns_providers

1 file changed

+2
-0
lines changed

custom-domain/dstack-ingress/scripts/dns_providers/linode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def setup_certbot_credentials(self) -> bool:
4444

4545
# Write credentials file
4646
with open(credentials_file, "w") as f:
47+
f.write("# WARNING: This file contains sensitive credentials for Linode DNS API.\n")
48+
f.write("# Ensure this file is kept secure and not shared.\n")
4749
f.write(f"dns_linode_key = {self.api_token}\n")
4850

4951
# Set secure permissions

0 commit comments

Comments
 (0)