swift-service-context icon indicating copy to clipboard operation
swift-service-context copied to clipboard

Access control per baggage item key

Open ktoso opened this issue 5 years ago • 2 comments

This mirrors the https://github.com/slashmo/gsoc-swift-baggage-context/issues/35 ticket

--

Additional capability similar to privacy in os_log to be added to baggage keys.

A key has to define if it wants to be included in forEach and if it wants to be logged.

[...] mark a key as containing sensitive information . for example, you may have a key that carries sensitive user information and that you never want the collectors to log

via @tomerd

ktoso avatar Sep 25 '20 02:09 ktoso

Existing PR on old repo https://github.com/ktoso/gsoc-swift-baggage-context/pull/2

ktoso avatar Sep 25 '20 02:09 ktoso

This could be handled with static properties on the keys, right? We can default them to true but if you don't want them to be logged/enumerated/... you set them to false. Something like static var allowsEnumeration: Bool { return false }

weissi avatar Dec 16 '22 12:12 weissi