dokku-deployment-keys

Provides a Dokku Plugin for injecting SSH deployment keys as well as injecting hostkeys to the container

  • 所有者: cedricziel/dokku-deployment-keys
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

SSH Deployment Keys Plugin for Dokku Build Status

Provides a Dokku Plugin for injecting SSH deployment keys to the container.

This is useful if you hide your sourcecode in private repositories at VCS providers such as GitHub or Bitbucket.

requirements

  • dokku 0.4.0+
  • docker 1.8.x

Optionally, if you need host keys to be added, install the host-keys plugin as well.

installation

# on 0.3.x
cd /var/lib/dokku/plugins
git clone https://github.com/cedricziel/dokku-deployment-keys.git deployment-keys
dokku plugins-install

# on 0.4.x
dokku plugin:install https://github.com/cedricziel/dokku-deployment-keys.git deployment-keys

How does it work?

On installation, this plugin generates a pair of SSH Keys (rsa, 2048b) and will echo the resulting public key.
You can add this public key to your VCS Provider-which often allow read-only SSH keys to be added to a project for CI.

The exact command used for the key generation is ssh-keygen -q -t rsa -b 2048 -f "$shared_key_folder/id_rsa" -N ""

The generated key at this point is a shared one, which means it is valid for any app on your Dokku host.

After generation, every subsequent container being built will get the shared key injected if it doesnt have its own pair.

FAQ

Q: Can I replace it with an existing keypair?

A: Of course. But its a matter of lazyness. Every user-host combination should have its own keys so they can be revoked easily. Place existing ones in $DOKKU_ROOT/.deployment-keys/shared/.ssh. Be careful with the permissions. chmod 600` is mandatory for some ssh-executables and this is for a good reason!

概覽

名稱與所有者cedricziel/dokku-deployment-keys
主編程語言Shell
編程語言Shell (語言數: 2)
平台
許可證MIT License
發布數2
最新版本名稱0.3.0 (發布於 )
第一版名稱0.2.0 (發布於 )
創建於2014-01-14 15:47:16
推送於2023-12-07 05:26:10
最后一次提交2023-12-07 00:26:04
星數57
關注者數6
派生數21
提交數63
已啟用問題?
問題數14
打開的問題數1
拉請求數9
打開的拉請求數0
關閉的拉請求數6
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部