conduitio-labs / conduit-connector-gcp-pubsub Goto Github PK
View Code? Open in Web Editor NEWConduit connector for Google Cloud Pub/Sub
License: Apache License 2.0
Conduit connector for Google Cloud Pub/Sub
License: Apache License 2.0
When running conduit with the pipeline yaml below, the connector seems to be unable to authenticate and validate the PK provided.
version: 2.0
pipelines:
- id: clickhouse-to-google-pub
status: running
connectors:
- id: sf.in
type: source
plugin: standalone:[email protected]
settings:
url: # ex https://default:[email protected]:8443/default?secure
table: #test
orderingColumn: #name
batchSize: #10
- id: sf.out
type: destination
plugin: standalone:gcp-pubsub@0299d3b-dirty
settings:
privateKey: # the entirity of private key, must start with -----BEGIN PRIVATE KEY----- and end with -----END PRIVATE KEY-----\n
clientEmail: # ex - [email protected]
projectId: # meroxa
topicId: # test
However when passing following json as options in code manually in client/pubsub.go, the same private key provided seems to work.
`options := `{
"type": "service_account",
"project_id": "meroxa",
"private_key_id": "b5c7aa1bc56e1759bb781ca53406016b6c587cc1",
"private_key": "PRIVATEKEY",
"client_email": "[email protected]",
"client_id": "109884669801399525038",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/meroxatest%40meroxa.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}
`
cli, err := pubsub.NewClient(ctx, cfg.ProjectID, option.WithCredentialsJSON([]byte(options)))
`
v0.1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.