Skip to content

Commit

Permalink
fix(cert validation): Decode principals as a list
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrewe committed Jul 24, 2020
1 parent 2853872 commit 074366b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vault_ssh_renew/cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_limits(self, msg: Message) -> Tuple[datetime, datetime]:
_serial = msg.get_int64()
_key_type = msg.get_int()
_key_id = msg.get_string()
_principals = msg.get_string()
_principals = msg.get_list()
return self._as_datetime_tuple(msg.get_int64(), msg.get_int64())


Expand All @@ -155,7 +155,7 @@ def get_limits(self, msg: Message) -> Tuple[datetime, datetime]:
_serial = msg.get_int64()
_key_type = msg.get_int()
_key_id = msg.get_string()
_principals = msg.get_string()
_principals = msg.get_list()
return self._as_datetime_tuple(msg.get_int64(), msg.get_int64())


Expand All @@ -172,7 +172,7 @@ def get_limits(self, msg: Message) -> Tuple[datetime, datetime]:
_serial = msg.get_int64()
_key_type = msg.get_int()
_key_id = msg.get_string()
_principals = msg.get_string()
_principals = msg.get_list()
return self._as_datetime_tuple(msg.get_int64(), msg.get_int64())


Expand All @@ -184,7 +184,7 @@ def get_limits(self, msg: Message) -> Tuple[datetime, datetime]:
_serial = msg.get_int64()
_key_type = msg.get_int()
_key_id = msg.get_string()
_principals = msg.get_string()
_principals = msg.get_list()
return self._as_datetime_tuple(msg.get_int64(), msg.get_int64())


Expand Down

0 comments on commit 074366b

Please sign in to comment.