Skip to content

Commit

Permalink
add support to secrets containing dots in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
gburiola committed Jan 5, 2018
1 parent 2c56d9d commit 969eeb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kapitan/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

logger = logging.getLogger(__name__)

SECRET_TOKEN_TAG_PATTERN = r"(\?{([\w\:\-\/]+)})" # e.g. ?{gpg:my/secret/token}
SECRET_TOKEN_ATTR_PATTERN = r"(\w+):([\w\-\/]+)" # e.g. gpg:my/secret/token
SECRET_TOKEN_COMPILED_ATTR_PATTERN = r"(\w+):([\w\-\/]+):(\w+)" # e.g. gpg:my/secret/token:1deadbeef
SECRET_TOKEN_TAG_PATTERN = r"(\?{([\w\:\.\-\/]+)})" # e.g. ?{gpg:my/secret/token}
SECRET_TOKEN_ATTR_PATTERN = r"(\w+):([\w\.\-\/]+)" # e.g. gpg:my/secret/token
SECRET_TOKEN_COMPILED_ATTR_PATTERN = r"(\w+):([\w\.\-\/]+):(\w+)" # e.g. gpg:my/secret/token:1deadbeef

class GPGError(Exception):
"Generic GPG errors"
Expand Down

0 comments on commit 969eeb6

Please sign in to comment.