Gitlab Add the part of the deployment public key is a bit strange, although the gitlab of the deployment public key is in the database, but actually directly add database records can not be used, there will be no access, and usually do third-party access is generally directly added to the database, so this is a headache
The preliminary estimate is that Gitlab treats the public key more cautiously, it must be examined before it can be used, although the review is done by the system itself, but it is not directly with the database record this behavior can not be direct use, to solve this problem, in fact, not complicated, That's the way to call the original Web page to add the deployment public key: Project.deploy_key, there's no problem with calling the shipment.
About resolving Gitlab to add a public key to a Web page by using a different method of directly inserting the database public key record permissions