Skip to content

Commit

Permalink
Add default allowlist to dbinit.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaecker committed May 5, 2024
1 parent 90ca30b commit 96f1010
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions schema/crdb/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3818,6 +3818,19 @@ CREATE TABLE IF NOT EXISTS omicron.public.allow_list (
allowed_ips INET[] CHECK (array_length(allowed_ips, 1) > 0)
);

-- Insert default allowlist, allowing all traffic.
-- See `schema/crdb/insert-default-allowlist/up.sql` for details.
INSERT INTO omicron.public.allow_list (id, time_created, time_modified, allowed_ips)
VALUES (
'001de000-a110-4000-8000-000000000000',
NOW(),
NOW(),
NULL
)
ON CONFLICT (id)
DO NOTHING;


/*
* Keep this at the end of file so that the database does not contain a version
* until it is fully populated.
Expand Down

0 comments on commit 96f1010

Please sign in to comment.