Skip to content

Commit d1d7a13

Browse files
authored
Merge pull request #8 from lyft/skip-lookup-for-arns
Skip key lookup if we already have arn
2 parents 8f909e7 + 5cb7ca9 commit d1d7a13

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

kmsauth/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ def _format_auth_key(self, keys):
122122
)
123123

124124
def _get_key_arn(self, key):
125+
if key.startswith('arn:aws:kms:'):
126+
self.KEY_METADATA[key] = {
127+
'KeyMetadata': {'Arn': key}
128+
}
125129
if key not in self.KEY_METADATA:
126130
self.KEY_METADATA[key] = self.kms_client.describe_key(
127131
KeyId='{0}'.format(key)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from setuptools import setup, find_packages
1515

16-
VERSION = "0.1.6"
16+
VERSION = "0.1.7"
1717

1818
requirements = [
1919
# Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK)

0 commit comments

Comments
 (0)