2024-09-19 11:14:34 -04:00
|
|
|
CREATE TABLE docker_credentials (
|
|
|
|
id BLOB UNIQUE NOT NULL,
|
|
|
|
-- The Docker credential helper protocol only sends the server_url, so
|
|
|
|
-- we should guarantee that we will only ever have one matching credential.
|
|
|
|
-- Also, it's easier to go from unique -> not-unique than vice versa if we
|
|
|
|
-- decide that's necessary in the future
|
|
|
|
server_url TEXT UNIQUE NOT NULL,
|
|
|
|
username TEXT NOT NULL,
|
|
|
|
secret_enc BLOB NOT NULL,
|
2024-11-25 07:57:59 -05:00
|
|
|
nonce BLOB NOT NULL,
|
|
|
|
FOREIGN KEY(id) REFERENCES credentials(id) ON DELETE CASCADE
|
2024-09-19 11:14:34 -04:00
|
|
|
);
|