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

DXCDT-333: Nest ips under ap sit ips #618

Merged
merged 2 commits into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 0 additions & 12 deletions docs/auth0_ips.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/auth0_protection_suspicious-ip-throttling.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ When Auth0 detects a high number of signup attempts or failed login attempts fro

## Commands

- [auth0 protection suspicious-ip-throttling ips](auth0_protection_suspicious-ip-throttling_ips.md) - Manage blocked IP addresses
- [auth0 protection suspicious-ip-throttling show](auth0_protection_suspicious-ip-throttling_show.md) - Show suspicious ip throttling settings
- [auth0 protection suspicious-ip-throttling update](auth0_protection_suspicious-ip-throttling_update.md) - Update suspicious ip throttling settings

12 changes: 12 additions & 0 deletions docs/auth0_protection_suspicious-ip-throttling_ips.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default
---
# auth0 protection suspicious-ip-throttling ips

Manually block or unblock an IP address that was blocked via the Suspicious IP Throttling due to multiple suspicious attempts.

## Commands

- [auth0 protection suspicious-ip-throttling ips check](auth0_protection_suspicious-ip-throttling_ips_check.md) - Check IP address
- [auth0 protection suspicious-ip-throttling ips unblock](auth0_protection_suspicious-ip-throttling_ips_unblock.md) - Unblock IP address

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
layout: default
---
# auth0 ips check
# auth0 protection suspicious-ip-throttling ips check

Check if a given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts.

## Usage
```
auth0 ips check [flags]
auth0 protection suspicious-ip-throttling ips check [flags]
```

## Examples
Expand All @@ -33,7 +33,7 @@ auth0 ips check [flags]

## Related Commands

- [auth0 ips check](auth0_ips_check.md) - Check IP address
- [auth0 ips unblock](auth0_ips_unblock.md) - Unblock IP address
- [auth0 protection suspicious-ip-throttling ips check](auth0_protection_suspicious-ip-throttling_ips_check.md) - Check IP address
- [auth0 protection suspicious-ip-throttling ips unblock](auth0_protection_suspicious-ip-throttling_ips_unblock.md) - Unblock IP address


Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
layout: default
---
# auth0 ips unblock
# auth0 protection suspicious-ip-throttling ips unblock

Unblock an IP address currently blocked by the Suspicious IP Throttling due to multiple suspicious attempts.

## Usage
```
auth0 ips unblock [flags]
auth0 protection suspicious-ip-throttling ips unblock [flags]
```

## Examples
Expand All @@ -33,7 +33,7 @@ auth0 ips unblock [flags]

## Related Commands

- [auth0 ips check](auth0_ips_check.md) - Check IP address
- [auth0 ips unblock](auth0_ips_unblock.md) - Unblock IP address
- [auth0 protection suspicious-ip-throttling ips check](auth0_protection_suspicious-ip-throttling_ips_check.md) - Check IP address
- [auth0 protection suspicious-ip-throttling ips unblock](auth0_protection_suspicious-ip-throttling_ips_unblock.md) - Unblock IP address


1 change: 1 addition & 0 deletions docs/auth0_protection_suspicious-ip-throttling_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ auth0 protection suspicious-ip-throttling show [flags]

## Related Commands

- [auth0 protection suspicious-ip-throttling ips](auth0_protection_suspicious-ip-throttling_ips.md) - Manage blocked IP addresses
- [auth0 protection suspicious-ip-throttling show](auth0_protection_suspicious-ip-throttling_show.md) - Show suspicious ip throttling settings
- [auth0 protection suspicious-ip-throttling update](auth0_protection_suspicious-ip-throttling_update.md) - Update suspicious ip throttling settings

Expand Down
1 change: 1 addition & 0 deletions docs/auth0_protection_suspicious-ip-throttling_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ auth0 protection suspicious-ip-throttling update [flags]

## Related Commands

- [auth0 protection suspicious-ip-throttling ips](auth0_protection_suspicious-ip-throttling_ips.md) - Manage blocked IP addresses
- [auth0 protection suspicious-ip-throttling show](auth0_protection_suspicious-ip-throttling_show.md) - Show suspicious ip throttling settings
- [auth0 protection suspicious-ip-throttling update](auth0_protection_suspicious-ip-throttling_update.md) - Update suspicious ip throttling settings

Expand Down
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ There are two ways to authenticate:
- [auth0 completion](auth0_completion.md) - Setup autocomplete features for this CLI on your terminal
- [auth0 domains](auth0_domains.md) - Manage custom domains
- [auth0 email](auth0_email.md) - Manage email settings
- [auth0 ips](auth0_ips.md) - Manage blocked IP addresses
- [auth0 login](auth0_login.md) - Authenticate the Auth0 CLI
- [auth0 logout](auth0_logout.md) - Log out of a tenant's session
- [auth0 logs](auth0_logs.md) - View tenant logs
Expand Down
1 change: 1 addition & 0 deletions internal/cli/attack_protection_suspicious_ip_throttling.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func suspiciousIPThrottlingCmd(cli *cli) *cobra.Command {

cmd.AddCommand(showSuspiciousIPThrottlingCmd(cli))
cmd.AddCommand(updateSuspiciousIPThrottlingCmd(cli))
cmd.AddCommand(ipsCmd(cli))

return cmd
}
Expand Down
3 changes: 2 additions & 1 deletion internal/cli/ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func ipsCmd(cli *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "ips",
Short: "Manage blocked IP addresses",
Long: "Manually block or unblock an IP address.",
Long: "Manually block or unblock an IP address that was blocked via the Suspicious IP Throttling " +
"due to multiple suspicious attempts.",
}

cmd.SetUsageTemplate(resourceUsageTemplate())
Expand Down
1 change: 0 additions & 1 deletion internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func addSubCommands(rootCmd *cobra.Command, cli *cli) {
rootCmd.AddCommand(universalLoginCmd(cli))
rootCmd.AddCommand(emailCmd(cli))
rootCmd.AddCommand(customDomainsCmd(cli))
rootCmd.AddCommand(ipsCmd(cli))
rootCmd.AddCommand(quickstartsCmd(cli))
rootCmd.AddCommand(attackProtectionCmd(cli))
rootCmd.AddCommand(testCmd(cli))
Expand Down