-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
clarification on mTLS verification with curl #925
Merged
+7
−2
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,8 @@ There are several steps: | |
``` | ||
```bash | ||
... | ||
* error fetching CN from cert:The requested data were not available. | ||
... | ||
< HTTP/1.1 200 OK | ||
< content-type: text/html; charset=utf-8 | ||
< content-length: 1867 | ||
|
@@ -111,11 +113,14 @@ Note that Istio uses [Kubernetes service account](https://kubernetes.io/docs/tas | |
as service identity, which offers stronger security than service name | ||
(refer [here]({{home}}/docs/concepts/security/mutual-tls.html#identity) for more information). | ||
Thus the certificates used in Istio do not have service name, which is the information that curl needs to verify | ||
server identity. As a result, we use curl option '-k' to prevent the curl client from verifying service identity | ||
in server's (i.e., productpage) certificate. | ||
server identity. As a result, we use curl option '-k' to prevent the curl client from aborting when failing to | ||
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. @wattli I rephrased a bit - what do you think ? 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. lgtm, thanks for fixing this up |
||
find and verify the server name (i.e., productpage.ns.svc.cluster.local) in the certificate provided by the server. | ||
|
||
Please check secure naming [here]({{home}}/docs/concepts/security/mutual-tls.html#workflow) for more information | ||
about how the client verifies the server's identity in Istio. | ||
|
||
What we are demonstrating and verifying above is that the server accepts the connection from the client. Try not giving the client `--key` and `--cert` and observe you are not allowed to connect and you do not get an HTTP 200. | ||
|
||
## Further reading | ||
|
||
* Learn more about the design principles behind Istio's automatic mTLS authentication | ||
|
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.
this to show the expected error