-
Notifications
You must be signed in to change notification settings - Fork 6.5k
migrate code from googleapis/python-kms #8470
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
136 commits
Select commit
Hold shift + click to select a range
c3dae48
Python KMS Apiary P1 samples [(#779)](https://github.com/GoogleCloudP…
ryanmats c031a34
random generation of keyring / cryptokey names [(#786)](https://githu…
ryanmats cc8e1b4
Auto-update dependencies. [(#790)](https://github.com/GoogleCloudPlat…
dpebot 7147ccf
Remove usage of GoogleCredentials [(#810)](https://github.com/GoogleC…
69a7649
Updates Could-KMS sample code to use V1 libraries. [(#856)](https://g…
philcoakley e67c399
Remove cloud config fixture [(#887)](https://github.com/GoogleCloudPl…
5b298d5
Re-generate all readmes
480435a
KMS: Clean up base64 logic in the encrypt and decrypt functions. [(#1…
adefefe
KMS: Make the samples consistent with the other languages. [(#1075)](…
b97884f
Auto-update dependencies. [(#1094)](https://github.com/GoogleCloudPla…
dpebot 38d062d
Update all generated readme auth instructions [(#1121)](https://githu…
832a6be
Auto-update dependencies. [(#1133)](https://github.com/GoogleCloudPla…
dpebot d65342d
Added Link to Python Setup Guide [(#1158)](https://github.com/GoogleC…
409a57f
Auto-update dependencies. [(#1186)](https://github.com/GoogleCloudPla…
dpebot 6d2a5f9
Adds snippets for enabling and restoring a key version [(#1196)](http…
WalterHub 38da194
Auto-update dependencies. [(#1217)](https://github.com/GoogleCloudPla…
dpebot 515d306
Added "Open in Cloud Shell" buttons to README files [(#1254)](https:/…
a4fe396
Auto-update dependencies. [(#1309)](https://github.com/GoogleCloudPla…
dpebot 6db525e
Auto-update dependencies. [(#1320)](https://github.com/GoogleCloudPla…
dpebot 650cc53
Auto-update dependencies. [(#1355)](https://github.com/GoogleCloudPla…
dpebot 3ad2bc0
Auto-update dependencies. [(#1359)](https://github.com/GoogleCloudPla…
dpebot 3161da4
Auto-update dependencies.
dpebot 00bcfc8
Regenerate the README files and fix the Open in Cloud Shell link for …
72fee98
Update READMEs to fix numbering and add git clone [(#1464)](https://g…
frankyn 8aa3024
added kms asymmetric samples [(#1638)](https://github.com/GoogleCloud…
daniel-sanche 366fa72
kms text fixes [(#1647)](https://github.com/GoogleCloudPlatform/pytho…
daniel-sanche 887f48f
KMS test fix [(#1690)](https://github.com/GoogleCloudPlatform/python-…
daniel-sanche 909a24b
KMS changes [(#1723)](https://github.com/GoogleCloudPlatform/python-d…
daniel-sanche ce34f10
KMS import comments [(#1771)](https://github.com/GoogleCloudPlatform/…
daniel-sanche d889421
Auto-update dependencies. [(#1846)](https://github.com/GoogleCloudPla…
dpebot 4f159ea
Auto-update dependencies. [(#1862)](https://github.com/GoogleCloudPla…
dpebot df03dc0
KMS: Updated for new client library [(#1903)](https://github.com/Goog…
daniel-sanche 6f2c0dc
Auto-update dependencies. [(#1980)](https://github.com/GoogleCloudPla…
dpebot ac7a0aa
Move import statements into tagged regions [(#2219)](https://github.c…
engelke 821e6aa
Adds split updates for Firebase ... opencensus [(#2438)](https://gith…
gguuss ef44d09
Auto-update dependencies. [(#2005)](https://github.com/GoogleCloudPla…
dpebot eecdc66
chore(deps): update dependency google-cloud-kms to v1.3.0 [(#3160)](h…
renovate-bot 2dd0308
Simplify noxfile setup. [(#2806)](https://github.com/GoogleCloudPlatf…
kurtisvg 6f8f31d
[kms] fix flaky test [(#3268)](https://github.com/GoogleCloudPlatform…
daniel-sanche 966796a
Update dependency google-cloud-kms to v1.4.0 [(#3410)](https://github…
renovate-bot 5fb1511
chore(deps): update dependency cryptography to v2.9 [(#3266)](https:/…
renovate-bot 48170cb
fix: use `crypto_key_path` instead of `crypto_key_path_path` [(#3319)…
busunkim96 5c1926a
chore(deps): update dependency cryptography to v2.9.1 [(#3463)](https…
renovate-bot e6944ef
[kms] chore: remove gcp-devrel-py-tools [(#3479)](https://github.com/…
c6a8bfa
Update dependency cryptography to v2.9.2 [(#3473)](https://github.com…
renovate-bot 9992fab
[kms] fix: use unique ids for test [(#3563)](https://github.com/Googl…
c24b425
Update and add Cloud KMS samples [(#3690)](https://github.com/GoogleC…
sethvargo 005b35b
chore: some lint fixes [(#3748)](https://github.com/GoogleCloudPlatfo…
cd445b9
chore: update templates
busunkim96 b7f9366
chore: update templates
busunkim96 aecda49
Add kms/attestations/ directory with sample script to verify attestat…
bkuang c6a6f28
chore(deps): update dependency cryptography to v2.9.2 [(#3666)](https…
renovate-bot 6360704
Update and add Cloud KMS samples [(#3690)](https://github.com/GoogleC…
sethvargo 7084ad4
Add main function to attestation verification script [(#3705)](https:…
bkuang 1bdb253
test: add noxfile
busunkim96 cd68144
chore(deps): update dependency cryptography to v3 (#24)
renovate-bot 656593d
feat!: migrate to microgenerator. (#16)
busunkim96 7624359
docs: Generate using new common.py_samples() synthtool functionality …
runargs 64056c1
chore: update templates (#42)
yoshi-automation f59e62c
chore(deps): update dependency cryptography to v3.1 (#44)
renovate-bot deeaedc
feat: regenerate client lib to pick up new mtls env (#55)
arithmetic1728 03427d8
chore(deps): update dependency google-cloud-kms to v2 (#29)
renovate-bot 35d6e90
chore(deps): update dependency cryptography to v3.1.1 (#61)
renovate-bot bc54668
chore(deps): update dependency google-cloud-kms to v2.2.0 (#57)
renovate-bot 9d82d9a
chore(deps): update dependency cryptography to v3.2.1 (#64)
renovate-bot d8e0fdf
samples: Add Python code snippets for importing-a-key doc (#67)
lwolfowitz-google 3dd5d05
samples: Minor fixes for importing-a-key snippets (#68)
lwolfowitz-google abe0570
samples: add request/response integrity verification to encrypt_symme…
iamtamjam fb39d76
samples: Add request/response integrity verification to crypto operat…
iamtamjam 057017e
chore(deps): update dependency cryptography to v3.3.1 (#78)
renovate-bot 2b39571
chore(deps): update dependency pem to v21 (#82)
renovate-bot 391284a
chore(deps): update dependency cryptography to v3.4.4 (#85)
renovate-bot 6101b1f
chore(deps): update dependency cryptography to v3.4.5 (#88)
renovate-bot ea46a5e
chore(deps): update dependency cryptography to v3.4.6 (#89)
renovate-bot 31fdee1
chore(deps): update dependency cryptography to v3.4.7 (#93)
renovate-bot 462b1f7
chore(deps): update dependency pem to v21.2.0 (#96)
renovate-bot 277ffb8
feat: add script to verify attestations with certificate chains (#99)
bkuang 2597804
chore(deps): update dependency pytest to v6 (#110)
renovate-bot bcb80c6
chore(deps): update dependency google-cloud-kms to v2.3.0 (#121)
renovate-bot e695b22
docs: Include verify_attestation_chains.py help text to attestations …
bkuang 079922c
chore(deps): update dependency google-cloud-kms to v2.4.0 (#135)
renovate-bot b88b9ba
chore(deps): update dependency google-cloud-kms to v2.4.1 (#146)
renovate-bot bf615fd
chore(deps): update dependency google-cloud-kms to v2.4.2 (#153)
renovate-bot 8911a48
docs: update README for attestation verification scripts (#151)
bkuang 4d72d4d
chore(deps): update dependency google-cloud-kms to v2.4.3 (#155)
renovate-bot af529ec
chore(deps): update dependency google-cloud-kms to v2.5.0 (#159)
renovate-bot 8653eeb
feat(kms): add samples for new hmac and rng apis (#161)
sethvargo d52bbd8
chore(deps): update dependency cryptography to v3.4.8 (#164)
renovate-bot 802d4c0
chore(deps): update dependency pytest to v6.2.5 (#169)
renovate-bot 5378370
chore(deps): update dependency google-cloud-kms to v2.6.0 (#171)
renovate-bot 06dbf90
chore: google-cloud-python now uses 'main' for default branch (#175)
gcf-owl-bot[bot] dec3cc3
chore(deps): update dependency google-cloud-kms to v2.6.1 (#180)
renovate-bot 89a6f2e
chore(deps): update dependency cryptography to v35 (#182)
renovate-bot 8121d9d
chore(deps): update dependency google-cloud-kms to v2.7.0 (#185)
renovate-bot 7944d96
chore(deps): update dependency google-cloud-kms to v2.8.0 (#188)
renovate-bot 5005d26
chore(deps): update dependency google-cloud-kms to v2.9.0 (#194)
renovate-bot f0c5cb5
chore(deps): update dependency google-cloud-kms to v2.10.0 (#199)
renovate-bot 4b8836d
chore(deps): update dependency google-cloud-kms to v2.10.1 (#202)
renovate-bot 804e44a
chore: update README and fix typos in attestation scripts (#203)
bkuang 1473fc6
chore(deps): update dependency cryptography to v36 (#210)
renovate-bot 8b949e3
chore(deps): update dependency cryptography to v36.0.1 (#216)
renovate-bot 29c75d7
chore(samples): Add check for tests in directory (#221)
gcf-owl-bot[bot] df10185
chore(python): Noxfile recognizes that tests can live in a folder (#225)
gcf-owl-bot[bot] a0e8ddd
docs(samples): fix typo in verify_asymmetric_ec.py (#227)
pedroysb 221607b
docs(samples): updated var name to avoid shadowing built-in (#238)
Sita04 c34019d
chore(deps): update all dependencies (#234)
renovate-bot 55042fe
chore: Adding support for pytest-xdist and pytest-parallel (#248)
gcf-owl-bot[bot] c943350
chore(deps): update dependency google-cloud-kms to v2.11.1 (#250)
renovate-bot 4d1ac92
chore(deps): update dependency pytest to v7.1.0 (#252)
renovate-bot 7b81f6a
chore(deps): update all dependencies (#253)
renovate-bot 0774515
chore(python): use black==22.3.0 (#256)
gcf-owl-bot[bot] 62646ba
chore(python): add nox session to sort python imports (#267)
gcf-owl-bot[bot] 4589f95
chore(deps): update dependency pytest to v7.1.2 (#270)
renovate-bot d52681b
chore(deps): update dependency cryptography to v37 (#271)
renovate-bot e897dad
chore(deps): update dependency cryptography to v37.0.1 (#273)
renovate-bot 1ae0ad3
chore(deps): update dependency cryptography to v37.0.2 (#274)
renovate-bot f392f41
fix: require python 3.7+ (#313)
gcf-owl-bot[bot] d5a2f11
chore(deps): update all dependencies (#303)
renovate-bot a91c0cf
chore(deps): update all dependencies (#319)
renovate-bot 955d67e
chore(deps): update dependency google-cloud-kms to v2.12.1 (#326)
renovate-bot f9e23a0
chore(deps): update dependency pytest to v7.1.3 (#338)
renovate-bot ba0fe23
chore(deps): update dependency cryptography to v38 (#339)
renovate-bot 040450d
chore(deps): update dependency cryptography to v38.0.1 (#341)
renovate-bot 181e085
chore: detect samples tests in nested directories (#345)
gcf-owl-bot[bot] 74d51f2
chore(deps): update dependency google-cloud-kms to v2.12.2 (#349)
renovate-bot b9d6082
chore(deps): update all dependencies (#352)
renovate-bot e1e35bf
chore(deps): update dependency pytest to v7.2.0 (#353)
renovate-bot 40dfca1
Updates to READMEs and CODEOWNERS
rsamborski 81dd63a
Update requirements.txt to include requests module
rsamborski 73b0204
License header updates and region tag rename
rsamborski 062ea7c
Fix CODEOWNERS newline at the end of file
rsamborski b735728
Removed noxfile.py and added noxfile_config.py
rsamborski 0fa2468
Turn off type hints enforcing for old samples
rsamborski 5b8496c
Turn off type hints enforcing for old samples
rsamborski 01ca228
Added kms label to blunderbuss.yml
rsamborski bb58291
Update blunderbuss.yml with cloudkms label
rsamborski 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 was deleted.
Oops, something went wrong.
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,120 @@ | ||
Google Cloud Key Management Service Python Samples | ||
=============================================================================== | ||
|
||
.. image:: https://gstatic.com/cloudssh/images/open-btn.png | ||
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/attestations/README.rst | ||
|
||
|
||
This directory contains samples for Google Cloud Key Management Service. The `Cloud Key Management Service`_ allows you to create, import, and manage cryptographic keys and perform cryptographic operations in a single centralized cloud service. | ||
|
||
|
||
|
||
|
||
.. _Cloud Key Management Service: https://cloud.google.com/kms/docs/ | ||
|
||
|
||
|
||
|
||
|
||
Setup | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
Install Dependencies | ||
++++++++++++++++++++ | ||
|
||
#. Clone python-kms and change directory to the sample directory you want to use. | ||
|
||
.. code-block:: bash | ||
|
||
$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git | ||
|
||
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. | ||
|
||
.. _Python Development Environment Setup Guide: | ||
https://cloud.google.com/python/setup | ||
|
||
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. | ||
|
||
.. code-block:: bash | ||
|
||
$ virtualenv env | ||
$ source env/bin/activate | ||
|
||
#. Install the dependencies needed to run the samples. | ||
|
||
.. code-block:: bash | ||
|
||
$ pip install -r requirements.txt | ||
|
||
.. _pip: https://pip.pypa.io/ | ||
.. _virtualenv: https://virtualenv.pypa.io/ | ||
|
||
Samples | ||
------------------------------------------------------------------------------- | ||
|
||
Verify attestations and certificate chains for keys generated by Cloud HSM | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
.. image:: https://gstatic.com/cloudssh/images/open-btn.png | ||
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/attestations/verify_attestation_chains.py,kms/attestations/README.rst | ||
|
||
|
||
|
||
|
||
To run this sample: | ||
|
||
.. code-block:: bash | ||
|
||
$ python verify_attestation_chains.py | ||
|
||
usage: verify_attestation_chains.py [-h] [--certificates CERTIFICATES] | ||
[--attestation ATTESTATION] | ||
|
||
This application verifies HSM attestations using certificate chains | ||
obtained from Cloud HSM and the HSM manufacturer. | ||
|
||
For more information, visit https://cloud.google.com/kms/docs/attest-key. | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--certificates CERTIFICATES | ||
The certificate chains filename. | ||
--attestation ATTESTATION | ||
The attestation filename. | ||
|
||
|
||
|
||
Verify attestations for keys generated by Cloud HSM | ||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
.. image:: https://gstatic.com/cloudssh/images/open-btn.png | ||
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/attestations/verify_attestation.py,kms/attestations/README.rst | ||
|
||
|
||
|
||
|
||
To run this sample: | ||
|
||
.. code-block:: bash | ||
|
||
$ python verify_attestation.py | ||
|
||
usage: verify_attestation.py [-h] attestation_file bundle_file | ||
|
||
This application verifies HSM attestations using certificate bundles obtained | ||
from Cloud HSM. For more information, visit https://cloud.google.com/kms/docs | ||
/attest-key. | ||
|
||
positional arguments: | ||
attestation_file Name of attestation file. | ||
bundle_file Name of certificate bundle file. | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
|
||
|
||
|
||
|
||
|
||
.. _Google Cloud SDK: https://cloud.google.com/sdk/ |
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,42 @@ | ||
# Copyright 2021 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Default TEST_CONFIG_OVERRIDE for python repos. | ||
|
||
# You can copy this file into your directory, then it will be imported from | ||
# the noxfile.py. | ||
|
||
# The source of truth: | ||
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py | ||
|
||
TEST_CONFIG_OVERRIDE = { | ||
# You can opt out from the test for specific Python versions. | ||
"ignored_versions": ["2.7"], | ||
# Old samples are opted out of enforcing Python type hints | ||
# All new samples should feature them | ||
"enforce_type_hints": False, | ||
# An envvar key for determining the project id to use. Change it | ||
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a | ||
# build specific Cloud project. You can also use your own string | ||
# to use your own Cloud project. | ||
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT", | ||
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', | ||
# If you need to use a specific version of pip, | ||
# change pip_version_override to the string representation | ||
# of the version number, for example, "20.2.4" | ||
"pip_version_override": None, | ||
# A dictionary you want to inject into your test. Don't put any | ||
# secrets here. These values will override predefined values. | ||
"envs": {}, | ||
} |
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 @@ | ||
pytest==7.2.0 |
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,3 @@ | ||
cryptography==38.0.2 | ||
pem==21.2.0 | ||
requests==2.28.1 |
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,86 @@ | ||
#!/usr/bin/env python | ||
|
||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""This application verifies HSM attestations using certificate bundles | ||
obtained from Cloud HSM. | ||
|
||
For more information, visit https://cloud.google.com/kms/docs/attest-key. | ||
""" | ||
|
||
# [START kms_verify_attestations] | ||
import argparse | ||
import gzip | ||
|
||
from cryptography import exceptions | ||
from cryptography import x509 | ||
from cryptography.hazmat import backends | ||
from cryptography.hazmat.primitives.asymmetric import padding | ||
import pem | ||
|
||
|
||
def verify(attestation_file, bundle_file): | ||
"""Verifies an attestation using a bundle of certificates. | ||
|
||
Args: | ||
attestation_file: The name of the attestation file. | ||
bundle_file: The name of the bundle file containing the certificates | ||
used to verify the attestation. | ||
|
||
Returns: | ||
True if at least one of the certificates in bundle_file can verify the | ||
attestation data and its signature. | ||
""" | ||
with gzip.open(attestation_file, 'rb') as f: | ||
# An attestation file consists of a data portion and a 256 byte | ||
# signature portion concatenated together. | ||
attestation = f.read() | ||
# Separate the components. | ||
data = attestation[:-256] | ||
signature = attestation[-256:] | ||
|
||
# Verify the attestation with one of the certificates in the bundle | ||
for cert in pem.parse_file(bundle_file): | ||
cert_obj = x509.load_pem_x509_certificate( | ||
str(cert).encode('utf-8'), backends.default_backend()) | ||
try: | ||
# Check if the data was signed by the private key associated | ||
# with the public key in the certificate. The data should have | ||
# been signed with PKCS1v15 padding. | ||
cert_obj.public_key().verify( | ||
signature, data, padding.PKCS1v15(), | ||
cert_obj.signature_hash_algorithm) | ||
return True | ||
except exceptions.InvalidSignature: | ||
# Certificate bundles contain certificates that will not be | ||
# able to verify the attestation, so the InvalidSignature | ||
# errors can be ignored. | ||
continue | ||
return False | ||
# [END kms_verify_attestations] | ||
|
||
|
||
if __name__ == '__main__': | ||
parser = argparse.ArgumentParser( | ||
description=__doc__) | ||
parser.add_argument('attestation_file', help="Name of attestation file.") | ||
parser.add_argument('bundle_file', help="Name of certificate bundle file.") | ||
|
||
args = parser.parse_args() | ||
|
||
if verify(args.attestation_file, args.bundle_file): | ||
print('Signature verified.') | ||
else: | ||
print('Signature verification failed.') |
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.