Support Forums

Generate a deploy key for private submodules on Netlify now in the UI

We’re excited to announce we’ve just released a new feature allowing you to generate a deploy key for your site.

A deploy key is needed if your site repo includes private submodules. Until now, a key could only be created by requesting it from our Support team but, to improve this experience, we’ve added a section in a site’s settings to allow you to generate one yourself.

To access this feature, log into the app, navigate to a site, select the Settings tab, click on the Build & Deploy section and scroll down to Deploy key.
Click on the Generate public key button to create a new public deploy key. You can then copy & paste it in your git provider.

Check out the docs to learn more, and comment below if you have further questions.


I’ve just tried to add a second submodule to my site, and it seem that it’s not going to work. Netlify only lets you generate a single deploy key, and github doesn’t let you use the same deploy key more than once.

Is there a solution?

1 Like

I have a similar issue - did you get anywhere with this?

Hi, @johtso and @dpcY. We do explain a workaround for this in the support guide below:


4. You can use this workflow with multiple private submodules attached to the same repository, but that does take some extra work since GitHub does not allow Deploy Keys to be used in multiple places. You’ll have to instead add them to a user (perhaps you? or maybe a robot-account that you create on GitHub) that has access to all repos.

Will that solution work for you? If there are other questions, please let us know.