Skip to content

Commit 0e8388a

Browse files
authored
Remove the signing keys DB table and API (#2252)
It is completely unused now.
1 parent 8873f9b commit 0e8388a

File tree

7 files changed

+40
-188
lines changed

7 files changed

+40
-188
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
-- Copyright 2024 Stacklok, Inc
2+
--
3+
-- Licensed under the Apache License, Version 2.0 (the "License");
4+
-- you may not use this file except in compliance with the License.
5+
-- You may obtain a copy of the License at
6+
--
7+
-- http://www.apache.org/licenses/LICENSE-2.0
8+
--
9+
-- Unless required by applicable law or agreed to in writing, software
10+
-- distributed under the License is distributed on an "AS IS" BASIS,
11+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
-- See the License for the specific language governing permissions and
13+
-- limitations under the License.
14+
15+
-- signing_keys table
16+
CREATE TABLE signing_keys (
17+
id SERIAL PRIMARY KEY,
18+
project_id UUID NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
19+
private_key TEXT NOT NULL,
20+
public_key TEXT NOT NULL,
21+
passphrase TEXT NOT NULL,
22+
key_identifier TEXT NOT NULL,
23+
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
24+
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
25+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-- Copyright 2024 Stacklok, Inc
2+
--
3+
-- Licensed under the Apache License, Version 2.0 (the "License");
4+
-- you may not use this file except in compliance with the License.
5+
-- You may obtain a copy of the License at
6+
--
7+
-- http://www.apache.org/licenses/LICENSE-2.0
8+
--
9+
-- Unless required by applicable law or agreed to in writing, software
10+
-- distributed under the License is distributed on an "AS IS" BASIS,
11+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
-- See the License for the specific language governing permissions and
13+
-- limitations under the License.
14+
15+
DROP TABLE IF EXISTS signing_keys;

database/mock/store.go

-59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

database/query/signing_keys.sql

-11
This file was deleted.

internal/db/models.go

-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/db/querier.go

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/db/signing_keys.sql.go

-103
This file was deleted.

0 commit comments

Comments
 (0)