Skip to content

Commit

Permalink
feat(static-route): add support for IP Whitelisting
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitrgadiya committed Feb 26, 2024
1 parent 15a0659 commit 85010ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion riocli/apply/manifests/staticroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ metadata:
project: "project-guid"
# region: us
labels:
app: test
app: test
spec:
sourceIPRange:
- 10.0.0.0/8
7 changes: 7 additions & 0 deletions riocli/jsonschema/schemas/static_route-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,18 @@ definitions:
uuid:
type: string
pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
ipRange:
type: string
pattern: '^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}/([1-9]|1\d|2\d|3[0-2])$'
staticRouteSpec:
type: object
properties:
url:
type: string
sourceIPRange:
type: array
items:
"$ref": "#/definitions/ipRange"
staticRouteStatus:
type: object
properties:
Expand Down

0 comments on commit 85010ed

Please sign in to comment.