-
Notifications
You must be signed in to change notification settings - Fork 70
PYTHON-5195 Allow OCSP server to be run as a daemon #626
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1ab965e
cleanup
blink1073 864b483
add ocsp test
blink1073 09cb3cd
set OCSP_SERVER_TYPE
blink1073 3144c53
simplify options
blink1073 7b086eb
fix option handling
blink1073 de1ad93
fix startup command
blink1073 c992876
use unbuffered
blink1073 6a4cac6
use a longer timeout
blink1073 2ad50d3
fix option handling
blink1073 45ea095
increase timeout
blink1073 4c13182
try with waitress
blink1073 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Test aws setup function for different inputs. | ||
set -eu | ||
|
||
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]}) | ||
. $SCRIPT_DIR/../handle-paths.sh | ||
|
||
if [[ $(uname -s) = "Linux" ]]; then | ||
ORCHESTRATION_FILE="ecdsa-basic-tls-ocsp-mustStaple.json" | ||
OCSP_ALGORITHM="ecdsa" | ||
SERVER_TYPE="valid-delegate" | ||
else | ||
ORCHESTRATION_FILE="rsa-basic-tls-ocsp-disableStapling.json" | ||
OCSP_ALGORITHM="rsa" | ||
SERVER_TYPE="valid" | ||
fi | ||
|
||
export ORCHESTRATION_FILE | ||
export OCSP_ALGORITHM | ||
export SERVER_TYPE | ||
|
||
# # Start a MongoDB server with ocsp enabled. | ||
SSL="ssl" make -C ${DRIVERS_TOOLS} run-server | ||
|
||
pushd $SCRIPT_DIR/../ocsp | ||
|
||
# # Start the ocsp server. | ||
bash ./setup.sh | ||
|
||
# Connect to the MongoDB server. | ||
echo "Connecting to server..." | ||
TLS_OPTS=("--tls --tlsCertificateKeyFile \"${DRIVERS_TOOLS}/.evergreen/ocsp/${OCSP_ALGORITHM}/server.pem\"") | ||
TLS_OPTS+=("--tlsCAFile \"${DRIVERS_TOOLS}/.evergreen/ocsp/${OCSP_ALGORITHM}/ca.pem\"") | ||
URI="mongodb://localhost/?serverSelectionTimeoutMS=10000" | ||
# shellcheck disable=SC2068 | ||
$MONGODB_BINARIES/mongosh $URI ${TLS_OPTS[@]} --eval "db.runCommand({\"ping\":1})" | ||
echo "Connecting to server... done." | ||
|
||
bash ./teardown.sh | ||
|
||
popd | ||
|
||
make -C ${DRIVERS_TOOLS} stop-server | ||
make -C ${DRIVERS_TOOLS} test |
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
@blink1073: This removal is what appears to have caused the regression in PHPC. I noticed that this commit was mentioned in wbond/oscrypto#78 (comment) as a workaround for the upstream issue with oscrypto 1.3.0.
The original context for this change was #452, but it looks like we'd do well to include a comment here for future reference. Might be a good idea to reference the upstream issue.
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.
Hmm, I had removed the specific tag because I was seeing a warning from pip. I'll revert to use the tag.