This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eduardo
authored
Aug 2, 2018
1 parent
3e635f5
commit f245ae0
Showing
2,465 changed files
with
118,412 additions
and
108,790 deletions.
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.2.1 | ||
0.2.2 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file added
BIN
+369 Bytes
bless_lambda/bless_ca/asn1crypto/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added
BIN
+7.66 KB
bless_lambda/bless_ca/asn1crypto/__pycache__/_elliptic_curve.cpython-36.pyc
Binary file not shown.
Binary file added
BIN
+1017 Bytes
bless_lambda/bless_ca/asn1crypto/__pycache__/_errors.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.59 KB
bless_lambda/bless_ca/asn1crypto/__pycache__/_ordereddict.cpython-36.pyc
Binary file not shown.
Binary file added
BIN
+2.91 KB
bless_lambda/bless_ca/asn1crypto/__pycache__/_teletex_codec.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+335 Bytes
bless_lambda/bless_ca/asn1crypto/__pycache__/version.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+148 Bytes
bless_lambda/bless_ca/asn1crypto/_perf/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added
BIN
+1.51 KB
bless_lambda/bless_ca/asn1crypto/_perf/__pycache__/_big_num_ctypes.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from __future__ import absolute_import, division, print_function | ||
|
||
__all__ = [ | ||
"__title__", "__summary__", "__uri__", "__version__", "__author__", | ||
"__email__", "__license__", "__copyright__", | ||
|
@@ -11,7 +9,7 @@ | |
"sign SSH public keys.") | ||
__uri__ = "https://github.com/Netflix/bless" | ||
|
||
__version__ = "0.2.0" | ||
__version__ = "0.3.0" | ||
|
||
__author__ = "The BLESS developers" | ||
__email__ = "[email protected]" | ||
|
Binary file not shown.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import base64 | ||
import os | ||
|
||
import boto3 | ||
from bless.config.bless_config import BlessConfig | ||
from botocore.exceptions import ClientError | ||
|
||
|
||
class BlessLambdaCache: | ||
region = None | ||
config = None | ||
ca_private_key_password = None | ||
ca_private_key_password_error = None | ||
|
||
def __init__(self, ca_private_key_password=None, | ||
config_file=None): | ||
""" | ||
:param ca_private_key_password: For local testing, if the password is provided, skip the KMS | ||
decrypt. | ||
:param config_file: The config file to load the SSH CA private key from, and additional settings. | ||
""" | ||
# AWS Region determines configs related to KMS | ||
if 'AWS_REGION' in os.environ: | ||
self.region = os.environ['AWS_REGION'] | ||
else: | ||
self.region = 'us-west-2' | ||
|
||
# Load the deployment config values | ||
self.config = BlessConfig(self.region, config_file=config_file) | ||
|
||
password_ciphertext_b64 = self.config.getpassword() | ||
|
||
# decrypt ca private key password | ||
if ca_private_key_password is None: | ||
kms_client = boto3.client('kms', region_name=self.region) | ||
try: | ||
ca_password = kms_client.decrypt( | ||
CiphertextBlob=base64.b64decode(password_ciphertext_b64)) | ||
self.ca_private_key_password = ca_password['Plaintext'] | ||
except ClientError as e: | ||
self.ca_private_key_password_error = str(e) | ||
else: | ||
self.ca_private_key_password = ca_private_key_password |
Binary file removed
BIN
-187 Bytes
bless_lambda/bless_ca/bless/config/__pycache__/__init__.cpython-35.pyc
Binary file not shown.
Binary file removed
BIN
-5.73 KB
bless_lambda/bless_ca/bless/config/__pycache__/bless_config.cpython-35.pyc
Binary file not shown.
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
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.