Skip to content

Commit

Permalink
disallow http keys
Browse files Browse the repository at this point in the history
  • Loading branch information
elikoga committed Sep 12, 2023
1 parent 1372ae3 commit 8e51f76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/batou/secrets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ def process_age_recipients(members, environment_path):
# and add it to the key meta file
if key.startswith("http://"):
print("WARNING: Downloading public keys over http is insecure!")
raise ValueError(
"Downloading public keys over http is insecure!"
)
key_meta_file_content += f"# ssh key file from {key}\n"
if debug:
print(f"Downloading key file from `{key}`")
Expand Down

0 comments on commit 8e51f76

Please sign in to comment.