Documentation
¶
Overview ¶
Package ca owns postern's SSH certificate authority: the CA key's lifecycle and (from S2.2 on) certificate signing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
CA holds the signing key. Bir postern kurulumunda tek bir CA vardır.
func (*CA) AuthorizedKey ¶
AuthorizedKey returns the public key as a single authorized-keys line, ready to be pasted into /etc/ssh/postern_ca.pub.
func (*CA) PublicKey ¶
PublicKey returns the CA's public half — the content targets put in TrustedUserCAKeys.
func (*CA) Sign ¶
func (c *CA) Sign(req CertRequest) (*ssh.Certificate, error)
type CertRequest ¶
type CertRequest struct {
PublicKey ssh.PublicKey
KeyID string
Principals []string
ValidFor time.Duration
Extensions map[string]string
/*
* WithoutPTY, sertifikanın varsayılan permit-pty iznini kaldırır.
*
* ⚠️ SIFIR DEĞER BUGÜNKÜ DAVRANIŞ. İnsanlar kabuk açıyor ve PTY'siz
* bir oturum çalışmıyor; alanı tersine ("Interactive") kurmak, onu
* doldurmayı unutan her çağıranın kullanıcı oturumunu sessizce
* bozardı. Kaldırmak isteyen açıkça söylüyor.
*
* Kullanan tek yer yönetim bağlantısı (upstream.DialManagement):
* komut çalıştırıyor, kabuk açmıyor, ve filodaki her makinede root
* tutan bir kimliğe gerekmeyen hiçbir izin verilmemeli.
*/
WithoutPTY bool
}
Click to show internal directories.
Click to hide internal directories.