Skip to content

Lecture 02 - 05/22/2025

Reminders

  • Last day to drop a full summer class without a W grade is May 25, 2025.

Agenda

  • Bastion Hosts / Jump Server
  • DNS Setup
    • Public Hosted Zones
    • Private Hosted Zones
    • Hosted Zones for Subdomains
  • Managing Secrets in Git Repositories with Mozilla SOPS
  • Introduction to Go

IDE Setup

Info

GoLand is free with student license.

Reading

Bastion Hosts

Go

VSCode Debug Go Template

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}/main.go",
            "args": [],
            "env": {},
            "cwd": "${workspaceFolder}",
            "showLog": true
        }
    ]
}

SSH Config

1
2
3
4
5
6
7
Host <ALIAS>
  HostName <PUBLIC_IP>
  Port 22
  User ubuntu
  IdentityFile ~/.ssh/id_rsa
  StrictHostKeyChecking no
  UserKnownHostsFile=/dev/null