Skip to content
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

[IMDS Lockdown] Add example of usage to imds-access.sh helper. #2868

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ function help() {
--unset <user1,...,userN> Remove iptables rules related to IMDS for the given list of users
--flush Restore default IMDS access
--help Print this help message

Examples:

Allow access for USER1 and USER2, without changing other users
${cmd} --allow USER1,USER2

Deny access for USER1 and USER2, without changing other users
${cmd} --deny USER1,USER2

Allow access only for USER1 and USER2, removing every other user from the allowlist
${cmd} --flush
${cmd} --allow USER1,USER2

Remove rules for USER1 and USER2, without changing other users
${cmd} --unset USER1,USER2

Remove IMDS lockdown, so that all users will be able to access IMDS
${cmd} --flush
EOF
}

Expand Down
Loading