redmine_git_remote
redmine_git_remote copied to clipboard
Auto "disable" repo, if can't connect via SSH
Hey Alex!
I've found a problem..
- I've migrated my redmine installation from one server to another
- I setup cron task on new one, to sync repos
- I didn't import all necessary keys in proper time (so I couldn't clone all repos) .. And I've got "abuse" warning from hosting, since my IP address is trying to "attack" some server. That was because of combination of cron task and incorrect setup of repository.
My suggestion is:
- Add "disabled" key into extra column hash (i meant disabled attribute to GitRemote class)
- Add "disabled" checkbox into settings
- mark any repository as "disabled" after first SSH fail (user can enable again at any time from settings - then it will check everything just like when creation new repo)
I think that's safer in term of "abuse" warnings.
What do you think?