From fd070483688b68ab7c0fef4bfbf2cdc2defd5f63 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Mon, 30 Jun 2025 17:15:48 +0300 Subject: kcidb: convert from Google PubSub to plain REST interface KCIDB removing Google PubSub and start to accept REST submissions. This will require new configuration options, such as REST URL and token. Signed-off-by: Denys Fedoryshchenko --- tools/syz-kcidb/kcidb.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/syz-kcidb/kcidb.go b/tools/syz-kcidb/kcidb.go index 81504c654..8d1255cce 100644 --- a/tools/syz-kcidb/kcidb.go +++ b/tools/syz-kcidb/kcidb.go @@ -6,7 +6,6 @@ package main import ( "context" "flag" - "os" "github.com/google/syzkaller/dashboard/dashapi" "github.com/google/syzkaller/pkg/kcidb" @@ -20,7 +19,8 @@ func main() { topicName = "playground_kernelci_new" ) var ( - flagCred = flag.String("cred", "", "application credentials file for KCIDB") + flagRestURI = flag.String("rest", "", "REST API endpoint for KCIDB") + flagToken = flag.String("token", "", "KCIDB API token") flagDashClient = flag.String("client", "", "dashboard client") flagDashAddr = flag.String("addr", "", "dashboard address") flagDashKey = flag.String("key", "", "dashboard API key") @@ -37,12 +37,8 @@ func main() { tool.Fail(err) } - cred, err := os.ReadFile(*flagCred) - if err != nil { - tool.Fail(err) - } kcidb.Validate = true - client, err := kcidb.NewClient(context.Background(), origin, projectID, topicName, cred) + client, err := kcidb.NewClient(context.Background(), origin, *flagRestURI, *flagToken) if err != nil { tool.Fail(err) } -- cgit mrf-deployment