Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Add document about what to do with untrusted requests. #104

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

bogdandrutu
Copy link
Contributor

This is an early draft and I would like to get feedback, we need to do the following:

  • decide how do we allow users to control the sampler for untrusted requests (see the comment in the text about this)
  • decide how the tags filter should look like, but that will happen when solving this tags: implement spec for gRPC propagation #66
  • decide what configs we support in the plugins (grpc, http).

@basvanbeek
Copy link
Member

I think we should also document what to do with outgoing requests to untrusted destinations. This is as much about egress as it is ingress.

`Sampler` interface to allow users to implement smart Samplers (e.g. high sampling probability if
the incoming untrusted request is sampled).

// DO_NOT_SUBMIT: take feedback what is better 2 default samplers in TraceConfig (one for trusted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User still needs to configure the entry points to tell the library incoming requests are not trusted. They can simply set a custom sampler at this point. I think we need to document it with examples for now rather than having two default samplers.

customer request).

## How does OpenCensus know if a request is trusted or not?
The OpenCensus library does not have a mechanism to determine if an incoming request is trusted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a paragraph explaining that the starting options should take an isTrusted bool option.

@sebright sebright removed their request for review July 19, 2018 21:49
@bogdandrutu
Copy link
Contributor Author

/cc @rghetia You will continue this work. Can I submit as it is and you deal with comments and make necessary changes?

@rghetia
Copy link
Contributor

rghetia commented Sep 17, 2018

/cc @rghetia You will continue this work. Can I submit as it is and you deal with comments and make necessary changes?

sure.

@bogdandrutu bogdandrutu merged commit 8600b74 into census-instrumentation:master Sep 17, 2018
@bogdandrutu bogdandrutu deleted the trusting branch September 17, 2018 01:54
@bogdandrutu
Copy link
Contributor Author

@rghetia all your now. thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants