-
Notifications
You must be signed in to change notification settings - Fork 260
[Feature] Fallback gateway listener and remove legacy key support #6249
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
base: develop
Are you sure you want to change the base?
Changes from all commits
7cb2fbe
dae8240
871b150
fed65b5
799d493
371441b
470a43f
c30c0fd
cce2d44
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /* | ||
| * Copyright 2025 - Nym Technologies SA <contact@nymtech.net> | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| CREATE TABLE remote_gateway_details_temp | ||
| ( | ||
| gateway_id_bs58 TEXT NOT NULL UNIQUE PRIMARY KEY REFERENCES registered_gateway (gateway_id_bs58), | ||
| derived_aes256_gcm_siv_key BLOB NOT NULL, | ||
| gateway_listener TEXT NOT NULL, | ||
| fallback_listener TEXT, | ||
| expiration_timestamp DATETIME NOT NULL | ||
| ); | ||
|
|
||
| -- keep only registrations with a non null aes256 key | ||
| INSERT INTO remote_gateway_details_temp SELECT gateway_id_bs58, derived_aes256_gcm_siv_key, gateway_listener, NULL, datetime(0, 'unixepoch') FROM remote_gateway_details WHERE derived_aes256_gcm_siv_key IS NOT NULL; | ||
|
|
||
| -- delete others | ||
| DELETE FROM registered_gateway WHERE gateway_id_bs58 IN ( SELECT gateway_id_bs58 FROM remote_gateway_details WHERE derived_aes256_gcm_siv_key IS NULL); | ||
|
|
||
| DROP TABLE remote_gateway_details; | ||
| ALTER TABLE remote_gateway_details_temp RENAME TO remote_gateway_details; | ||
|
|
||
|
|
||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.