-
Notifications
You must be signed in to change notification settings - Fork 526
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
fix(server): change the arthas bind ip #2429
Closed
Closed
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ae90955
chore(server): update swagger info for default server profile
SunnyBoy-WYH bb67693
chore(server): update swagger info for default server profile
SunnyBoy-WYH 13f916f
fix(server): arthas default bind ip should not be 0.0.0.0
SunnyBoy-WYH 30f1821
Merge branch 'master' into arthas-bind-ip
SunnyBoy-WYH 2519b39
fix(server): arthas default bind ip should not be 0.0.0.0
SunnyBoy-WYH c787baf
Merge branch 'master' into arthas-bind-ip
SunnyBoy-WYH 7d75e0d
fix(server): fix the bug which promtheus cant collect hg metric
SunnyBoy-WYH 552dcb8
fix(server): fix the arthas default bind ip to 127.0.0.1
SunnyBoy-WYH fae15ca
Merge branch 'master' into arthas-bind-ip
SunnyBoy-WYH File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,16 +43,9 @@ public void testArthasApi() { | |
" \"command\": \"version\"\n" + | ||
"}"; | ||
RestClient arthasApiClient = new RestClient(ARTHAS_API_BASE_URL, false); | ||
// If the request header contains basic auth, | ||
// and if we are not set auth when arthas attach hg, arthas will auth it and return 401. | ||
// ref:https://arthas.aliyun.com/en/doc/auth.html#configure-username-and-password | ||
Response r = arthasApiClient.post(ARTHAS_API_PATH, body); | ||
String result = assertResponseStatus(200, r); | ||
assertJsonContains(result, "state"); | ||
assertJsonContains(result, "body"); | ||
|
||
RestClient arthasApiClientWithAuth = new RestClient(ARTHAS_API_BASE_URL); | ||
r = arthasApiClientWithAuth.post(ARTHAS_API_PATH, body); | ||
assertResponseStatus(401, r); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we add some exception cases for invalid requests There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes we will do later |
||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any context for it (change the IP to localhost)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the context you can see the introduction about this issue. i think 0.0.0.0 means any ip, and arthas will set default password, sometime the ci failed.
why prefer localhost not 127.0.0.1? the config item provided by arthas named 'arthas.ip',im not sure localhost as a domain will work.