• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 19497490251

19 Nov 2025 10:07AM UTC coverage: 55.082% (+0.006%) from 55.076%
19497490251

Pull #4420

github

web-flow
Merge 7439d428c into 28425f504
Pull Request #4420: feat: support append mode when updating network restrictions

25 of 38 new or added lines in 3 files covered. (65.79%)

57 existing lines in 3 files now uncovered.

6530 of 11855 relevant lines covered (55.08%)

6.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/restrictions/get/get.go
1
package get
2

3
import (
4
        "context"
5
        "fmt"
6

7
        "github.com/go-errors/errors"
8
        "github.com/supabase/cli/internal/utils"
9
        "github.com/supabase/cli/pkg/api"
10
)
11

12
func Run(ctx context.Context, projectRef string) error {
×
13
        resp, err := utils.GetSupabase().V1GetNetworkRestrictionsWithResponse(ctx, projectRef)
×
14
        if err != nil {
×
15
                return errors.Errorf("failed to retrieve network restrictions: %w", err)
×
16
        }
×
17
        if resp.JSON200 == nil {
×
18
                return errors.New("failed to retrieve network restrictions; received: " + string(resp.Body))
×
19
        }
×
20

21
        fmt.Printf("DB Allowed IPv4 CIDRs: %+v\n", resp.JSON200.Config.DbAllowedCidrs)
×
22
        fmt.Printf("DB Allowed IPv6 CIDRs: %+v\n", resp.JSON200.Config.DbAllowedCidrsV6)
×
NEW
23
        fmt.Printf("Restrictions applied successfully: %+v\n", resp.JSON200.Status == api.NetworkRestrictionsResponseStatusApplied)
×
24
        return nil
×
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc