vault icon indicating copy to clipboard operation
vault copied to clipboard

Add 'pss_salt_length' parameter in transit/sign endpoint (#7531)

Open mbreban opened this issue 6 years ago • 10 comments
trafficstars

mbreban avatar Sep 30 '19 13:09 mbreban

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Sep 30 '19 13:09 hashicorp-cla

I think this could be significantly simplified by passing the string value from the parameter into the sign function and doing a simple switch on the string value, without needing to define the constants and constant maps. Or, alternately, keep the map but map to the existing Go stdlib constants instead of redefining them locally.

I also think if this is being implemented we should accept a string number as well. So we check if the string is "auto" or "hash" and if it's not either we attempt to parse (a non empty string) as a number, and if successful use that as the length.

jefferai avatar Oct 02 '19 14:10 jefferai

Hello @jefferai I fixed my previous PR. Please let me know about the new implementation.

mbreban avatar Oct 28 '19 12:10 mbreban

I think it'd be better with a different type that can allow both integers and strings At this point though the CLA is outstanding so until that's signed I'm going to hold off on any further review.

jefferai avatar Oct 28 '19 21:10 jefferai

I did sign the CLA one month ago.

mbreban avatar Oct 29 '19 08:10 mbreban

Hmm it's showing here as not signed. I can ask someone to look into it. Could you also try it again just to be sure?

jefferai avatar Oct 29 '19 12:10 jefferai

When it is showing as not signed, it usually means the email attached to the commit does not match your github account. It will require you to force push so that the history only shows the matching email address.

chrishoffman avatar Oct 29 '19 12:10 chrishoffman

Oh good point @chrishoffman , forgot about that

jefferai avatar Oct 29 '19 13:10 jefferai

Hi @jefferai, By saying "a different type that can allow both integers and strings", do you mean using the interface type? Should the function pathSignWrite pre-process the data or should it be done only by the Sign function?

mbreban avatar Nov 04 '19 11:11 mbreban

@jefferai I would like to pick this up, how to approach this best - should I simply start a new pull request?

grembo avatar Aug 26 '21 13:08 grembo

Hello @mbreban, thanks for the original contribution. I'm closing this PR out as it has been implemented and merged within #16549.

stevendpclark avatar Aug 31 '22 16:08 stevendpclark