-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make showing algo configurable? #20
Comments
I'm open to it! It could internally be a
Let me know if this is something you'd like to contribute; otherwise it'll be something I can get to only when time permits. |
I like the idea of the different constructors. I was thinking of some way of doing it in our fork and thought maybe branches at first but this is much better. I can see if I can put something together. Actually @cjslep, looking around at the code: wouldn't it be simpler to just have a branch for the draft? Because work involved then is just to reset back to the pre algo hiding commit, push and we're done. Across the board bug fixes will be more tedious I guess. But the complexity in general would be lower. |
We might be talking about the same thing, and I probably wasn't being clear! If I understand your suggestion of a "branch" to mean "branching statements" in
where both the
And the new Did I understand you correctly, or is this more work than what you had in mind? |
I actually meant a git branch since I thought those kind of conditions could increase complexity. |
Ah I see! Sorry for misunderstanding. I think I'd prefer the code complexity over the organizational complexity of maintaining two git branches. |
Hi all, seeing this discussion for the first time, a bit late :) I was about to report the same issue. While the specification says to hide the algorithm, in practice most implementations rely on the algorithm name. Thus, using I am not clear on what is being said in this reply. Are you saying that this functionality is already being done? |
I used the following hand-jam to replace req.Header["Signature"][0] = strings.Replace(req.Header["Signature"][0], "algorithm=\"hs2019\"", "algorithm=\"rsa-sha256\"", 1) In my opinion the specification should be reverted. |
This commit 221cfc4
hides the algo from the receiver.
I'm integrating against apis that don't expect this.
Are we open for making this behaviour configurable?
The text was updated successfully, but these errors were encountered: