Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use Secret for private git repository #76

Closed
10 tasks done
keigohtr opened this issue Feb 28, 2019 · 0 comments
Closed
10 tasks done

Use Secret for private git repository #76

keigohtr opened this issue Feb 28, 2019 · 0 comments

Comments

@keigohtr
Copy link
Member

keigohtr commented Feb 28, 2019

Motivation

For GitHub Enterprise.

Goal

  • Use Secret to store SSH key

Implementation

  • Add useSecret field to models/application table.
  • Allow 1 secret per 1 application.
    • Register the followings.
      • SSH key (id_rsa)
      • private git hostname (config)
      • private git username (config)
      • private git port number (config)
    • Mount Secret to /root/.ssh/.
    • Store id_rsa and config files with mode=600
  • testing

config

Host {{ hostname }}
  User {{ username }}
  Port {{ port number }}
  HostName {{ hostname }}
  IdentityFile /root/.ssh/id_rsa
  StrictHostKeyChecking no

id_rsa

-----BEGIN RSA PRIVATE KEY-----
{{ SSH key }}
-----END RSA PRIVATE KEY-----

Reference

@keigohtr keigohtr changed the title Use Secret for token/key Use Secret for private git repository Apr 19, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant