diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2025-06-30 17:15:48 +0300 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-10-06 08:29:13 +0000 |
| commit | fd070483688b68ab7c0fef4bfbf2cdc2defd5f63 (patch) | |
| tree | a162020d38528c1d6f19f3aeec1a71eefcc6673a /tools | |
| parent | dfce4a517db03fbd9bd29560bfb17b7ecfeccda2 (diff) | |
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 <denys.f@collabora.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-kcidb/kcidb.go | 10 |
1 files changed, 3 insertions, 7 deletions
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) } |
