Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

[THORN-2160] Including JWE key encryption alias as a header by default #1153

Merged
merged 2 commits into from Oct 17, 2018

Conversation

sberyozkin
Copy link
Contributor

No description provided.

@sberyozkin
Copy link
Contributor Author

Jose4J examples page says it is a 'polite thing to do' to report a (public) JWE encryption key alias :-), hence, as we agreed with David, that should be done by default

@sberyozkin
Copy link
Contributor Author

Michal or Ladislav, please have a quick look, these are just minor updates across two tested implementations (the default one and Jose4j)

* Include Encryption Key Alias as Header.
*/
@Configurable("thorntail.jose.encryption.include.alias")
@AttributeDocumentation("Include the encryption key alias as a 'kid' header: true (default)")
Copy link
Contributor

Choose a reason for hiding this comment

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

What "header"? It's not an HTTP header, right?

Also, I'd replace : true (default) with (defaults to true).

Copy link
Contributor

Choose a reason for hiding this comment

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

It is the JWE(JSON Web Encryption) header it is referring to. Described in detail here
https://tools.ietf.org/html/rfc7516

Copy link
Contributor

Choose a reason for hiding this comment

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

That RFC uses a term "JOSE header", so if this read "Include the encryption key alias as the JOSE kid header", or something like that, that would be great IMHO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, np, will update shortly

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me!

@Ladicek
Copy link
Contributor

Ladicek commented Oct 17, 2018

I don't quite understand what "header" are we talking about, but if you clarify that in the attribute documentation, I think that would be enough.

Otherwise LGTM.

@sberyozkin
Copy link
Contributor Author

retest this please

@sberyozkin
Copy link
Contributor Author

Lets see what happens to https://ci.wildfly-swarm.io/job/thorntail-pull-request-linux/717/ :-)

@sberyozkin
Copy link
Contributor Author

Jose tests are green

@sberyozkin sberyozkin merged commit e768ea7 into thorntail:master Oct 17, 2018
@sberyozkin sberyozkin deleted the THORN-2160 branch October 17, 2018 19:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
3 participants