Are multiple HMAC Redactors/options supposed to be supported? #6602
Unanswered
pinkfloydx33
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been playing around with redaction. Reading through the XML doc, etc. it sounds to me like one should be able to register multiple HMAC Redactors with different
KeyId
's for different classifications. This would be similar to how you can register multiple "normal" redactor implementations if you wanted the behavior to vary for whatever reason. This does not seem to be the case though; a call toSetHmacRedactor
will overwrite the configuration/options from any previous calls as it uses the default/un-named options.So my question as in the title: was the intent to support multiple HMAC Redactors with differing configuration? If not, I think it should be clarified somewhere that you may only add one. It might also be worth pointing out that if you do something like
SetFallbackRedactor<HmacRedactor>()
that you'd be using the options from theSetHmacRedactor
call.Note that I personally don't need this functionality. I stumbled upon the behavior while testing out the various features of redaction and was surprised that it didn't work just based on the limited documentation. I searched around a bit and didn't find anything explicitly stating one or the other, so I figured I would ask.
Beta Was this translation helpful? Give feedback.
All reactions