Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-carrots-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@guardian/cdk": major
---

Users must now provide at least one valid CIDR range when using the restricted and internal access scopes
4 changes: 2 additions & 2 deletions src/types/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface PublicAccess extends Access {
*/
export interface RestrictedAccess extends Access {
scope: AccessScope.RESTRICTED;
cidrRanges: IPeer[];
cidrRanges: [IPeer, ...IPeer[]];
}

/**
Expand All @@ -53,7 +53,7 @@ export interface RestrictedAccess extends Access {
*/
export interface InternalAccess extends Access {
scope: AccessScope.INTERNAL;
cidrRanges: IPeer[];
cidrRanges: [IPeer, ...IPeer[]];
}

export type AppAccess = PublicAccess | RestrictedAccess | InternalAccess;
Expand Down

0 comments on commit 5c92098

Please sign in to comment.