Commit graph

7 commits

Author SHA1 Message Date
Samuel Beaulieu
356dfb3f52
fix spec test yaml 2021-12-09 18:53:25 -06:00
Samuel Beaulieu
5c67073dad
rubocop fixes 2021-12-09 18:43:36 -06:00
Samuel Beaulieu
662f965c0f
refactor the connection and add debug logs 2021-12-09 17:59:15 -06:00
Samuel Beaulieu
8594160fbe
Implementing the tag_vm_user method
This method gets the user name based on the token:user metadata in redis,
cleans it up to be safe for a label name (lowercase, numbers and dash or underscore only),
and update the existing instance labels adding a new one called token-user
2021-12-09 11:35:29 -06:00
Samuel Beaulieu
f6791baba0
Adding support for fully qualified allow list eg user=bob
before thhis change the allow list would only support checking the 'pool' label value
we can now specify a different label name by using the format labename=value where
the equal sign '=' is considered the separator
2021-12-09 11:33:10 -06:00
Samuel Beaulieu
fc7a628063
spec the purge method and align it with the new base method signature 2021-12-08 10:33:25 -06:00
Samuel Beaulieu
2a0e9f5bdc
adding spec tests 2021-12-07 08:41:55 -06:00