Skip to content
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

zuul-core: Add overload for OriginName trust #1066

Merged
merged 1 commit into from May 20, 2021

Conversation

carl-mastrangelo
Copy link
Contributor

No description provided.

@carl-mastrangelo carl-mastrangelo merged commit 56fa761 into Netflix:master May 20, 2021
public OriginName withTrustedAuthority(String authority) {
return new OriginName(niwsClientName, target, authority, true);
public static OriginName fromVipAndApp(String vip, String appName) {
return fromVipAndApp(vip, appName, vip);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This isn't obvious without a comment explaining why the vip and niws name may or may not be the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Followed up here: #1067

@@ -27,13 +26,9 @@
@RunWith(JUnit4.class)
public class OriginNameTest {
Copy link
Collaborator

@argha-c argha-c May 21, 2021

Choose a reason for hiding this comment

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

This needs more unit tests, at least:

  • verification of equality check
  • Tests for when niws name and vip are different

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See above PR.

@carl-mastrangelo carl-mastrangelo deleted the authtru branch May 21, 2021 16:42
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.

None yet

2 participants