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

Allow ip command #376

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Allow ip command #376

wants to merge 4 commits into from

Conversation

Westwooo
Copy link
Contributor

@Westwooo Westwooo commented Aug 5, 2024

WIP - needs rebase once register cluster on creation is merged

@Westwooo Westwooo force-pushed the allow_ip_command branch 2 times, most recently from a81ed02 to 2b7ab17 Compare August 7, 2024 10:41
}

fn usage(&self) -> &str {
"Whitelists an IP address on a Capella cluster"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Adds an IP address to the allowlist on a Capella cluster" maybe? I think we've moved away from using whitelist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

}

fn format_ip_address(ip_address: String) -> String {
if !ip_address.ends_with("/32") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ip address can't be any other format can it? Just checking that we aren't blocking some usage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addresses required a subnet mask, and if not given the UI defaults to try and use '/32', so I've changed this to behave the same.

@Westwooo Westwooo force-pushed the allow_ip_command branch 2 times, most recently from ef38752 to e036f8c Compare August 7, 2024 13:52
@Westwooo Westwooo force-pushed the allow_ip_command branch 2 times, most recently from fbe4913 to cf8f5e7 Compare August 22, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants