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

Add CertLoader as application option #2722

Merged
merged 4 commits into from
Mar 20, 2023
Merged

Add CertLoader as application option #2722

merged 4 commits into from
Mar 20, 2023

Conversation

ahopkins
Copy link
Member

Closes #2655

from sanic.worker.loader import CertLoader


class MyCertLoader(CertLoader):
    def load(self, app: Sanic) -> SSLContext:
        ...


app = Sanic(..., certloader_class=MyCertLoader)

@ahopkins ahopkins requested a review from a team as a code owner March 20, 2023 09:51
@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Patch coverage: 100.000% and project coverage change: +0.170 🎉

Comparison is base (a245ab3) 88.617% compared to head (0ac462f) 88.788%.

Additional details and impacted files
@@              Coverage Diff              @@
##              main     #2722       +/-   ##
=============================================
+ Coverage   88.617%   88.788%   +0.170%     
=============================================
  Files           87        87               
  Lines         6844      6850        +6     
  Branches      1178      1179        +1     
=============================================
+ Hits          6065      6082       +17     
+ Misses         537       530        -7     
+ Partials       242       238        -4     
Impacted Files Coverage Δ
sanic/app.py 90.102% <100.000%> (+0.033%) ⬆️
sanic/worker/loader.py 94.666% <100.000%> (+3.117%) ⬆️
sanic/worker/serve.py 98.571% <100.000%> (+7.142%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ahopkins ahopkins merged commit 89188f5 into main Mar 20, 2023
@ahopkins ahopkins deleted the issue2655 branch March 20, 2023 12:05
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.

Can't run normally when using SSLContext
2 participants