Skip to content

Conversation

@kevin-bates
Copy link
Member

The current implementation does not honor the configured HTTP policy within yarn-site.xml. As a result, if the HTTP policy reflects HTTPS_ONLY, the ResourceManager object will fail. These changes allow for installations to leverage HTTPS when using the default configuration. That is, HTTPS is still not supported if an address is provided to ResourceManager due to the fact that the protocol is not conveyed in the request.

Once PR #34 is merged (requires a new release), we can then interrogate the protocol to determine that HTTPS has been requested. (Note: these changes will likely be warranted following #34's merge.)

In order to allow clients to have a means of using https for their
resource manager, this change enables that behavior ONLY in cases
where no resource manager address is provided.  In this case, the
module will first check if the http policy is HTTPS_ONLY and, in
such case, construct the appropriate endpoint.

Note that the changes are minimally evasive so as to prevent clients
from having to change code.
Copy link
Collaborator

@lresende lresende left a comment

Choose a reason for hiding this comment

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

LGTM

@lresende lresende merged commit 39ee476 into gateway-experiments:master Sep 17, 2019
@kevin-bates kevin-bates deleted the honor-http-policy branch September 19, 2019 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants