-
Notifications
You must be signed in to change notification settings - Fork 0
feat: migrate initialization to cloud-init with UFW and Docker hardening #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yxtay
merged 24 commits into
main
from
migrate-to-cloud-init-hardening-6435355215220674744
May 30, 2026
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
df57517
feat: migrate initialization to cloud-init with UFW and Docker hardening
google-labs-jules[bot] fd4eaec
feat: migrate initialization to cloud-init with UFW and Docker hardening
google-labs-jules[bot] 5d8d9d3
feat: migrate initialization to cloud-init with iptables and Docker h…
google-labs-jules[bot] a28c72c
feat: configure unattended-upgrades to remove unused packages
google-labs-jules[bot] 3842a10
feat: migrate initialization to cloud-init with iptables and Docker h…
google-labs-jules[bot] 9ef16b5
feat: simplify cloud-init and enhance unattended-upgrades
google-labs-jules[bot] 2016b28
feat: use native cloud-init keys for unattended-upgrades
google-labs-jules[bot] 90a68b7
fix(cloud-init): replace invalid apt config with proper unattended-up…
yxtay 70f5f46
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5939c59
fix: apply megalinter fixes
pre-commit-ci[bot] ccfc250
refactor(cloud-init): remove unattended-upgrades config
yxtay 9ca7dbb
Update cloud-init.yaml
yxtay 962862b
Update cloud-init.yaml
yxtay e6516fe
Update cloud-init.yaml
yxtay 81d0fba
style(readme): fix markdown list formatting
yxtay f008568
refactor(oci-rm): remove Oracle Linux support
yxtay bcc0406
refactor(oci-rm): remove instance_image_os variable
yxtay 4459ae9
fix: apply megalinter fixes
yxtay 066901b
fix(oci-rm): address PR review comments
yxtay 4804189
fix: apply megalinter fixes
yxtay 2227735
Update cloud-init.yaml
yxtay 4ab6fcf
Update cloud-init.yaml
yxtay 5106ab2
Update cloud-init.yaml
yxtay 0380927
Update oci-rm/templates/cloud-init.yaml
yxtay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| locals { | ||
| ssh_username = var.instance_image_os == "Canonical Ubuntu" ? "ubuntu" : "opc" | ||
| ssh_username = "ubuntu" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #cloud-config | ||
| package_update: true | ||
| package_upgrade: true | ||
|
|
||
| packages: | ||
| - curl | ||
| - iptables-persistent | ||
|
|
||
| runcmd: | ||
| # Configure iptables | ||
| - [iptables, -I, INPUT, "1", -p, tcp, --dport, "80", -j, ACCEPT] | ||
| - [iptables, -I, INPUT, "1", -p, tcp, --dport, "443", -j, ACCEPT] | ||
| - [iptables, -I, INPUT, "1", -p, udp, --dport, "443", -j, ACCEPT] | ||
| - [iptables, -I, INPUT, "1", -p, tcp, --dport, "9443", -j, ACCEPT] | ||
| - [netfilter-persistent, save] | ||
|
|
||
| # Install Docker | ||
| - [curl, -fsSL, "https://get.docker.com", -o, /tmp/get-docker.sh] | ||
| - [sh, /tmp/get-docker.sh] | ||
| - [usermod, -aG, docker, ubuntu] | ||
| - [rm, /tmp/get-docker.sh] | ||
|
|
||
| power_state: | ||
| mode: reboot | ||
| message: Rebooting after cloud-init setup | ||
| condition: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.