Comments (6)
(This is broadly applicable, not just to runtimeconfig.)
from go-cloud.
Looks like messages are matched exactly.
The simplest thing is probably to inspect the protos and scrub them when they go in and when they go out.
This might be what we should do for HTTP too; just have a wrapper transport that scrubs rather than reloading the file.
from go-cloud.
It is not clear to me that rpcreplay
can be chained as it doesn't expose the invoking functions that it uses for interception. It's possible that DialOptions handle chained calls to WithUnaryInterceptor
correctly, but I am skeptical. I'll try and see.
from go-cloud.
As feared, chaining WithUnaryInterceptor
is not possible. I will need to open a PR on rpcreplay
that exposes the interceptors.
from go-cloud.
Exposing the interceptors doesn't help. The invoker
is what sends the RPC upstream. The invoker is passed by GRPC, so there's no way to wrap it. Without doing major surgery on rpcreplay
itself (which we could do by just forking it), the only thing to do is to expose the entry
struct so entries in the replay file can be unmarshaled, load the replay file, scrub the protos and then save them into a new file, delete the old one then move the new file into place.
I do not like either option.
from go-cloud.
This remains more involved than expected, but progress is being made.
@jba recommended modifying rpcreplay
to take callbacks for before/after messages are sent. That I have done, but am not going to send the change until I'm confident what I did was correct.
It looks like NewGCPDialOptions
will need to take a scrubber as an argument that is passed by the tests. The reason the tests need to define the scrubber is that you don't know what the possible protos are beforehand, nor where possible sensitive data might be.
from go-cloud.
Related Issues (20)
- blob/s3: Support Server Side encryption settings in bucket url HOT 2
- docstore/mongodocstore: pauses before getMore HOT 3
- docstore/gcpfirestore: ought to support non-default databases HOT 4
- S3 Blob Incompatibility with AWS S3 Issues? HOT 3
- docstore: should support (in) comparison operator HOT 3
- pubsub: support NATS jetstream HOT 1
- pubsub/awssnssqs: duplicate key in map literal HOT 3
- blob/s3: Add content length parameter in signing URL HOT 3
- pubsub/azuresb: support workload identity auth method HOT 3
- secrets/hashivault: read token from file HOT 3
- pubsub/azuresb: sending a message when unauthorized hangs HOT 1
- New Project: Docstore Query Gen for Go CDK HOT 1
- RabbitPubSub Queue Connection Closes Unexpectedly with FailedPrecondition Error HOT 2
- all: Request for new tag including 'Offset' feature in docstore HOT 1
- docstore/mongodocstore: Error update with only unset or increment modifier (recurring issue)
- pubsub/ AWS MSK Support HOT 6
- blob/s3blob: url encode CopySource
- docstore/awsdynamodb panics on iter.Next() HOT 15
- kafkapubsub topicName merge wrong HOT 4
- azblob: change in behaviour for falling back to `az login` credentials HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-cloud.