This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23:16 $ http POST http://localhost:8080/key "Authorization: Bearer ${TOKEN}" < req.json | jq -r . | |
{ | |
"id": "142a0660afc86c197e156c76bbceb804", | |
"name": "mock-key-1", | |
"description": "just a mock... nothing to see here", | |
"users": { | |
"adriano.selaviles@gmail.com": 2 | |
}, | |
"pem": "-----BEGIN RSA PRIVATE KEY-----\nMIIJJwIBAAKCAgEA0N4dKsehjJ4AyqvkNrkMwNh/GzK9kDYOnSF3r+WbzFgGs6L2\nej/ywi+WhCxPvVsXLwpzDe/mRppmsACOBxZFHtRxRJngap0ltDuShwCwczFSJcnI\nfxpv0nBUYe1Bi6eJ+iyqSbfDv1xR1mH2XLZs0nsWgg4Ii4yO41hDTZyWmPlXOGF+\nsJuzBEAv9vBIHb67ZPvYcpgqna8mmMcDKG+5qKORKDwSVvI1ZK5Hgj6Opj44yMaP\niM/52K/9G46b3coQQGYXxGYSMTMSs+c+FfI1UUr/oetfN3aCb7E3L10dxSMBX42f\nVyz0f3WCOO/Akmc9KIo5DtF/J993ZYjhLT3YJvyY52yV3Mcp5pdK4jwV40R86MEN\n6+5cdsu8ITgHHBVhkOqBV5S1CJ9DEY0u2VtGiZUaafPPo2oEqYuw495NBAhd1vOm\nXZV2ZUgSh9cc5NPjBjLK1wRK8Ik0wNbPTzdjkG0mkrUqh+DVB4cubDXaXydfaYnG\nxyK0th1uZNHAi/9V5dirqJdriIOoTNgpCAepH3rbmOObbOS2RKjMNkrBj3H+TsWo\nDihKdkyICk/IKWLoGBErdPboTVbTS2Uwg2Xv2inbn0k1/sNjCC7QYMsYdwhWt6TH\npdiv7bbw/ZoAuAN2urr4JWrooQlOcujd/6sk4Gw1e+y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✔ ~/go/src/github.com/adrianosela/padl/api [master|✚ 1] | |
13:32 $ padl config set --url https://padl.adrianosela.com | |
✔ ~/go/src/github.com/adrianosela/padl/api [master|✚ 1] | |
13:33 $ padl account create --email adriano@protonmail.com --password somepass | |
registered user adriano@protonmail.com successfully! | |
✔ ~/go/src/github.com/adrianosela/padl/api [master|✚ 1] | |
13:33 $ padl account login --email adriano@protonmail.com --password somepass | |
user adriano@protonmail.com logged in successfully! | |
✔ ~/go/src/github.com/adrianosela/padl/api [master|✚ 1] | |
13:34 $ padl project create --name myProj --description firstproj --bits 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✔ ~/go/src/github.com/adrianosela/padl/cli [addSec|✔] | |
21:06 $ padl project list | |
+--------+-------------+ | |
| NAME | DESCRIPTION | | |
+--------+-------------+ | |
| myProj | firstproj | | |
+--------+-------------+ | |
✔ ~/go/src/github.com/adrianosela/padl/cli [addSec|✔] | |
21:06 $ padl project get --name myProj | |
+-------------+----------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✔ ~/go/src/github.com/adrianosela/padl/api [padl|✚ 1…1] | |
22:43 $ padl account login --email adriano@protonmail.com --password somepass | |
user adriano@protonmail.com logged in successfully! | |
✔ ~/go/src/github.com/adrianosela/padl/api [padl|✚ 1…1] | |
22:43 $ padl project list | |
+-------------+------------------------------+ | |
| NAME | DESCRIPTION | | |
+-------------+------------------------------+ | |
| key-testing | used to test decryption keys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12:06 $ cat .padlfile.yaml | |
data: | |
project_id: mynewproj | |
variables: {} | |
keys: | |
- 9189061bed7715c9eef606a0b280f9b2 | |
shared_key: 085742c9aeefb705bd01ae63b1eacef1 | |
HMAC: 35b3b3fcd91a50e8a4503a7bc3185f9c7d652bc7c17a33a6b7970c0c941cac485f49e5ad9db49c5f77c398621a61e9e023359a72741d4f82447da10267aa933c | |
✔ ~/go/src/github.com/adrianosela/padl/cli [master|✚ 1…1] | |
12:06 $ padl project secret add --name MOCK_VAR --secret MOCK_SECRET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15:16 $ padl project secret set --name MONGODB_CONNSTR --secret 'mongodb+srv://mongo-user:XfQ6W4wxMBgX4Bh4!d0VWopL@cluster0-sivkn.mongodb.net' | |
padlfile updated! | |
✔ ~/go/src/github.com/adrianosela/padl/cli [master|…1] | |
15:16 $ cat .padlfile.yaml | |
data: | |
project_id: my-sample-project | |
variables: | |
MONGODB_CONNSTR: | | |
-----BEGIN PADL ENCRYPTED SECRET----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11:56 $ padl account show | |
+-----+--------------------------------------+ | |
| aud | api | | |
| iss | padl.adrianosela.com | | |
| sub | adriano.selaviles@gmail.com | | |
| iat | 1574364111 | | |
| exp | 1574407311 | | |
| jti | b2fd17f6-c0fd-4118-8a59-1c67c61bcd3d | | |
+-----+--------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p✔ ~/go/src/github.com/adrianosela/padl/cli [master|✔] | |
22:18 $ padl project create --name demo-project --description "just our very first project :')" | |
project demo-project initialized successfully! | |
✔ ~/go/src/github.com/adrianosela/padl/cli [master|…1] | |
22:18 $ padl project list | |
+--------------+--------------------------------+ | |
| NAME | DESCRIPTION | | |
+--------------+--------------------------------+ | |
| demo-project | just our very first project | | |
| | :') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:08 $ padl project user add --project demo-project --email nicholas@gmail.com --privilege 1 | |
error adding user: error: user nicholas@gmail.com does not exist | |
✘-1 ~/go/src/github.com/adrianosela | |
18:08 $ padl project user add --project demo-project --email adriano.selaviles@gmail.com --privilege 1 | |
user adriano.selaviles@gmail.com added to project demo-project successfully! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13:06 $ padl project create --name my.project --description "testing with ." | |
error creating project: error: could not validate new project request: no . characters allowed for project name |