D
D
DVoropaev2017-10-01 18:52:06
git
DVoropaev, 2017-10-01 18:52:06

How to protect a git repository from being compromised?

How to prevent a leak if the server on which the git repository is compromised? Does git support encryption on the server?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mafusailmagoga, 2017-10-01
@mafusailmagoga

like git does not even support any rights-authorization by itself.
That is unnecessary.
encryption is supported by external means. the same OS.

S
Sly_tom_cat ., 2017-10-02
@Sly_tom_cat

You can compromise a server in different ways.
If you received root remotely on the server, then nothing will help you get everything that is hosted on the server from the server.
And such issues need to be resolved not at the level of application software (which GIT belongs to), but at the level of protecting the server itself from threats. In other words, you do not need to think about encryption in the git, but about how to protect the server from being compromised.

X
Xeli, 2017-10-01
@Xeli

How to prevent leakage

You mean a leak? Stealing a source repository? You need to encrypt files. Preferably on the fly. Boxcryptor can do this, though I don’t know if it can do it for an individual server. Therefore, I think you should look towards LUKS. Firstly, the GPL, and secondly, the program is native to Linux, so it can be easily automated using bash and cron.
help.ubuntu.ru/wiki/luks_cloud

M
Mikhail Grigoriev, 2017-10-05
@Sleuthhound

git-secret.io or https://www.agwa.name/projects/git-crypt/ to help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question