-
Notifications
You must be signed in to change notification settings - Fork 1
/
secrets.yaml
52 lines (40 loc) · 1.95 KB
/
secrets.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# https://jwt.io/
# http://jwtbuilder.jamiekurtz.com/
# https://github.com/mattroberts297/jsonwebtokencli
# https://github.com/kislyuk/yq
command: yq .$user.payload secrets.yaml | jwt --encode --secret $(yq -r .secret secrets.yaml)
# user flowe
flowe:
payload:
aud: flowify.io
iss: sandbox
# Timestamps for issue and expiry
iat: 1663674547
nbf: 1663674547
exp: 2610445747
email: [email protected]
name: F. Lowe
roles:
- sandbox-developer
- sandbox-admin
command: yq .flowe.payload secrets.yaml | jwt --encode -t --secret $(yq -r .secret secrets.yaml)
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmbG93aWZ5LmlvIiwiaXNzIjoic2FuZGJveCIsImlhdCI6MTY2MzY3NDU0NywibmJmIjoxNjYzNjc0NTQ3LCJleHAiOjI2MTA0NDU3NDcsImVtYWlsIjoiZmxvd0BmbG93aWZ5LmlvIiwibmFtZSI6IkYuIExvd2UiLCJyb2xlcyI6WyJzYW5kYm94LWRldmVsb3BlciIsInNhbmRib3gtYWRtaW4iXX0.RsSK97RyPw6vrMbVem3ouaVwSrMuQjFq3RaFvyD3u4A
roundtrip: yq .flowe.payload secrets.yaml | jwt --encode -t --secret $(yq -r .secret secrets.yaml) | jwt --decode --complete --secret $(yq -r .secret secrets.yaml)
# user swirl
swirl:
payload:
aud: flowify.io
iss: sandbox
# Timestamps for issue and expiry
iat: 1663674547
nbf: 1663674547
exp: 2610445747
email: [email protected]
name: S. Wirlop
roles:
- sandbox-developer
command: yq .swirl.payload secrets.yaml | jwt --encode -t --secret $(yq -r .secret secrets.yaml)
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJmbG93aWZ5LmlvIiwiaXNzIjoic2FuZGJveCIsImlhdCI6MTY2MzY3NDU0NywibmJmIjoxNjYzNjc0NTQ3LCJleHAiOjI2MTA0NDU3NDcsImVtYWlsIjoic3dpcmxAZmxvd2lmeS5pbyIsIm5hbWUiOiJTLiBXaXJsb3AiLCJyb2xlcyI6WyJzYW5kYm94LWRldmVsb3BlciJdfQ.Ap7chB9VNxucGAUkboqPFiZXhT6yCTYuLWjErqHcFOA
roundtrip: yq .swirl.payload secrets.yaml | jwt --encode -t --secret $(yq -r .secret secrets.yaml) | jwt --decode --complete --secret $(yq -r .secret secrets.yaml)
secret: flowify.io.1234567890
# should be round trippable