Browse Source

gpg-encrypt credentials.json instead

master
Yorick van Pelt 2 years ago
parent
commit
4c4d03adef
Signed by: yorick GPG Key ID: A36E70F9DC014A15
  1. 3
      .git-crypt/.gitattributes
  2. BIN
      .git-crypt/keys/default/0/609B26697F7D6E3D3A25BECD594E97B135DCDF46.gpg
  3. 2
      .git-crypt/keys/default/0/6EFD1053ADB6ABF50DF64792A36E70F9DC014A15.gpg
  4. 1
      .gitattributes
  5. 3
      README.md
  6. BIN
      credentials.json
  7. BIN
      credentials.json.gpg
  8. 4
      index.js

3
.git-crypt/.gitattributes

@ -1,3 +0,0 @@
# Do not edit this file. To specify the files to encrypt, create your own
# .gitattributes file in the directory where your files are.
* !filter !diff

BIN
.git-crypt/keys/default/0/609B26697F7D6E3D3A25BECD594E97B135DCDF46.gpg

2
.git-crypt/keys/default/0/6EFD1053ADB6ABF50DF64792A36E70F9DC014A15.gpg

@ -1,2 +0,0 @@
„^ž¥ƒ¹—œ_@SÞÜÊÌØ—&m*„K‰-NZâݺ÷OŠ °ÿâR0ý.ÞMX_Q£ëqŽÜ®tÎá\îû;j`¢ºD¦]?ÿ%
·\t„õ9¿ÃÜfÚÏ’ÒÀï6=œU=œz µÌw¤ì7C³¨Ò`nD*Òu«§y•ÙÃQ·³ »ä[éÂ}»T¨†dHVÉ`CMÄɶO Í`©è]3 ¸ aÏN‡_ïNLüx¾­LA°{Ü{�C›lÜÄ¿üͽ1TPº}ù7ÝYLiAbX•çN]\iL� ¢ý’Û]óþ::@ÇÃYˆ’¶^¡jC5toñÆðG>¼¶î]t¼*9wþˆáÕÙK.•Ê™Ùa¨Áö0›�¯

1
.gitattributes

@ -1 +0,0 @@
credentials.json filter=git-crypt diff=git-crypt

3
README.md

@ -1,4 +1,3 @@
```bash
git crypt unlock
node index.js auto <hours>
bin/skl-auto-payslip.js auto <hours>
```

BIN
credentials.json

BIN
credentials.json.gpg

4
index.js

@ -27,8 +27,8 @@ const config = {
}
async function authAll() {
const content = await readFile('credentials.json')
return authorize(JSON.parse(content))
const {stdout, stderr} = await exec(`gpg --decrypt < ${__dirname}/credentials.json.gpg`)
return authorize(JSON.parse(stdout))
}
async function authorize(credentials) {

Loading…
Cancel
Save