Skip to content

Commit

Permalink
[#301] Add Michał Szałowski to SSH access list for environment manage…
Browse files Browse the repository at this point in the history
…ment

This commit updates the user_data.sh script within the Terraform modules
for govtool-EC2 instances. It adds Michał Szałowski to the list of users
authorized for SSH access, thereby expanding the secure access
management system to include a team leader. This change is a step
towards fulfilling the secure credential sharing acceptance criterion by
ensuring new team members like Michał have the necessary access to
sensitive environments.
  • Loading branch information
placek committed Feb 26, 2024
1 parent 7ac847f commit 2485564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infra/terraform/modules/govtool-ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ resource "aws_instance" "govtool" {
}

user_data = file("${path.module}/user_data.sh")
# user_data_replace_on_change = true
user_data_replace_on_change = false

credit_specification {
cpu_credits = "unlimited"
Expand Down
2 changes: 1 addition & 1 deletion infra/terraform/modules/govtool-ec2/user_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# setup ssh access
mkdir -p /home/ubuntu/.ssh
users="a.guderski,michal.jankun,p.placzynski"
users="a.guderski,michal.jankun,p.placzynski,michal.szalowski"
curl --retry 5 --retry-delay 5 -L keys.binarapps.com/ssh/{$users} | tee -a /home/ubuntu/.ssh/authorized_keys
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKeM0HOF9szWhOfbQM8XkIfznORTtTaCJJStALYjQuy6 (voltaire-era-github-actions)" | tee -a /home/ubuntu/.ssh/authorized_keys
chmod 700 /home/ubuntu/.ssh
Expand Down

0 comments on commit 2485564

Please sign in to comment.