does docker compose exec appwrite vars show the correct value?
"Signing key cannot be empty" with GitHub Integration on 1.4.2
Votes
0
Replies
24
Participants
Unknown
Messages
25
you should use single line
also, here's a script to test the env var:
#!/bin/sh
CODE='if (openssl_pkey_get_private(getenv("_APP_VCS_GITHUB_PRIVATE_KEY")) === false) { echo "Invalid Private Key\n"; exit(1);} else { echo "Valid Private Key\n"; exit(0);}'
docker compose exec appwrite php -r "$CODE"After you update the env var, run docker compose up -d to apply the env var change and then run the script to test if it's a valid value
Rank 2: Process
updated the code to use \n again.
did docker compose down && docker compose up -d
and ran the script:
with key that was generated using ssh-keyggen:
Invalid Private Key
using ssh-keygen -t rsa -b 4096
Invalid Private Key
same...
Rank 2: Process
- its also in appwrite main container but image wont help to prove it as var list is to long 🙂
Rank 2: Process
Rank 2: Process
i think i found the issue!!!
Rank 2: Process
it a STUPID USER issue!! (me)
Rank 2: Process
yep... its me
Rank 2: Process
Valid Private Key
I hope this isn't your actual docker hub password 💀
Rank 2: Process
long story (very) short:
the key needs to be generated from the app itself and not self generated...
*thnx for the help
** il go sit myself in the corner for 10m...
Rank 2: Process
tnx,
it is (but not any more 🙂
Rank 2: Process
works like a charm 🙂
Rank 2: Process
@Steven a suggestion:
its not an option to generate the key in the github app its a must.
you could add to the documentation:
- its a must and not an option
- the format should be single line string with
\nfor multi line seperater.
Rank 2: Process
yep.
i would point to a document/image
- state its a mandatory to take it from GITHUB
What if the first sentence says RSA private key from GitHub?
Rank 2: Process
sound legit.
but i would Bold the GitHub
Rank 2: Process
and not "you can"
but "you must"
Rank 2: Process
as for github integration, should it automaticly deploy commits to the main branch ?
i pushed few commits and nothing happened/... 😦
Rank 2: Process
and i dont see errorrs anywhere 😦
Yes, if you configured the webhook parts correctly
Please create a new post for help with webhooks
I ran into the same problem with the key not being the correct RSA PRIVATE KEY format, even though I'd created and downloaded it from GitHub. My issue was because I stored it in 1Password after download, and exported the private key from there, which mucked it up. Copying straight from the .pem file resolved it: https://discordapp.com/channels/564160730845151244/1147708406849876079/1150266669990682634