-
Notifications
You must be signed in to change notification settings - Fork 2.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
fix: move conf/cert
to t/certs
and disable ssl by default
#2112
Merged
Merged
Changes from 22 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f8cfc85
move cert besides in Makefile
Yiyiyimu 2d503f5
move cert besides in Makefile
Yiyiyimu 71a3445
rm certs in Makefile
Yiyiyimu cf12693
merge master
Yiyiyimu 9c5ce68
turn default ssl off
Yiyiyimu 3d66357
fix typo
Yiyiyimu 095fa8c
merge master
Yiyiyimu 0400580
enable ssl for test
Yiyiyimu df91f35
fix test
Yiyiyimu f84eb6e
change crt path
Yiyiyimu b7a396d
1. made apisix.crt could be customizied 2. add cert/key path to 'enab…
Yiyiyimu b4fed44
change path for enable-ssl
Yiyiyimu 28eff9e
check pwd
Yiyiyimu 99626fa
move enbale_ssl path
Yiyiyimu 31bd449
sync change in test files
Yiyiyimu 948594f
add ca file
Yiyiyimu 1e7a7ed
fix error
Yiyiyimu 97417d0
fix error
Yiyiyimu 2fa0c5e
rm ca crt
Yiyiyimu 8daaf1e
fix typo
Yiyiyimu 727197c
fix cli test
Yiyiyimu 298237a
fix typo
Yiyiyimu 8266257
use mtls certs
Yiyiyimu 52afd00
fix typo
Yiyiyimu d1f5763
revert
Yiyiyimu 6e79957
ci: fix CI fail
johzchen 71c3a86
fix: mTLS case
johzchen adcf6a0
ci: fix CI fail
johzchen 70e1158
fix: revert
johzchen 3230611
enable ssl in one test
Yiyiyimu d4de547
add clearer guidance in config yaml
Yiyiyimu 0e86abf
add guidance to set ssl cert in config yaml
Yiyiyimu 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 |
---|---|---|
|
@@ -27,6 +27,7 @@ do_install() { | |
script() { | ||
export_or_prefix | ||
openresty -V | ||
enable_ssl | ||
|
||
sudo rm -rf /usr/local/apisix | ||
|
||
|
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 |
---|---|---|
|
@@ -101,6 +101,7 @@ script() { | |
export_or_prefix | ||
openresty -V | ||
|
||
enable_ssl | ||
|
||
./build-cache/grpc_server_example & | ||
|
||
|
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
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 |
---|---|---|
|
@@ -62,6 +62,7 @@ apisix: | |
# - "::/64" | ||
# port_admin: 9180 # use a separate port | ||
# https_admin: true # enable HTTPS when use a separate port for Admin API. | ||
# need to also enable SSL | ||
# Admin API will use conf/apisix_admin_api.crt and conf/apisix_admin_api.key as certificate. | ||
admin_api_mtls: # Depends on `port_admin` and `https_admin`. | ||
admin_ssl_cert: "" # Path of your self-signed server side cert. | ||
|
@@ -101,12 +102,14 @@ apisix: | |
dns_resolver_valid: 30 # valid time for dns result 30 seconds | ||
resolver_timeout: 5 # resolver timeout | ||
ssl: | ||
enable: true | ||
enable: false # ssl is disabled by default | ||
enable_http2: true | ||
listen_port: 9443 | ||
# ssl_trusted_certificate: /path/to/ca-cert # Specifies a file path with trusted CA certificates in the PEM format | ||
# used to verify the certificate when APISIX needs to do SSL/TLS handshaking | ||
# with external services (e.g. etcd) | ||
ssl_cert: "" | ||
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. Here is the path or content of the certificate? we need to add comments. 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. Thank you! fixed |
||
ssl_cert_key: "" | ||
ssl_protocols: "TLSv1.2 TLSv1.3" | ||
ssl_ciphers: "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384" | ||
ssl_session_tickets: false # disable ssl_session_tickets by default for 'ssl_session_tickets' would make Perfect Forward Secrecy useless. | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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.
What's the default value?
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.
nil I think