Skip to content

feat: add atlas access list tools #32

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
merged 3 commits into from
Apr 10, 2025
Merged

Conversation

fmenezes
Copy link
Collaborator

@fmenezes fmenezes commented Apr 9, 2025

fixes #30

  • added atlas-inspect-access-list tool
  • added atlas-create-access-list tool

@fmenezes fmenezes marked this pull request as ready for review April 9, 2025 17:10
await this.ensureAuthenticated();

if (!ipAddresses?.length && !cidrBlocks?.length) {
throw new Error("Either ipAddresses or cidrBlocks must be provided.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we default to the device's public IP address? Alternatively, we can lookup the current IP address and respond with a prompt whether to add it - something like:

return {
  content: [{
    type: "text",
    text: "Either an IP address or a CIDR block must be provided. The current device's public IP address is: a.b.c.d - do you want to use that?"
  }]
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks for pointing out, I'll handle current ips on a follow up PR, I'll check if makes sense to have a resource for this one

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added #36

@fmenezes fmenezes merged commit 27bc07b into main Apr 10, 2025
1 check passed
@fmenezes fmenezes deleted the fmenezes/add_access_list_tools branch April 10, 2025 08:57
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.

[Atlas] Implement tool to add IP/CIDR access to Clusters/Projects
2 participants