Hello,
I'm preparing Bitbucket server for a migration from SVN to Git with bitbucket.
I will need to crypt some files in order to hide "secret" files for some people. Note that the people that won't add the "key", won't have access to Bitbucket too.
I test the transcrypt extension (which used OpenSSL), and it works very easily on my computer. https://github.com/elasticdog/transcrypt
I think that the problem is exactly the same with git-crypt extension.
So I try to add transcrypt to bucket server in order to be able to view the diff and make comment inside pull request that will have encrypted file.
The problem is that I'm not able to create/modified a .gitattributes on the bitbucket server.
If go on my server repo, "C:\Atlassian\ApplicationData\Bitbucket\shared\data\repositories\32", change the config file to add these lines :
"[transcrypt]
version = 0.9.7
cipher = aes-256-cbc
password = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[filter "crypt"]
clean = \"$(git rev-parse --show-toplevel)\"/crypt/clean %f
smudge = \"$(git rev-parse --show-toplevel)\"/crypt/smudge
[diff "crypt"]
textconv = \"$(git rev-parse --show-toplevel)\"/crypt/textconv
[alias]
ls-crypt = "!git ls-files | git check-attr --stdin filter | awk 'BEGIN { FS = \":\" }; /crypt$/{ print $1 }'"
"
After that, I create a "crypt" folder that will host the clean/smudge script/hook (like it is on my local git repo).
But I didn't see where putting my ".gitattributes" that will tell to git which files are crypted or not. Here the .gitattributes file I want to add:
"#pattern filter=crypt diff=crypt
SDK/** filter=crypt diff=crypt
Protected/** filter=crypt diff=crypt"
I try to create a folder "attributes" in "info" folder and put the .gitattributes, but it doesn't work.
Someone can help me about that ?