mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-03 23:14:52 +02:00
Add support for self-signed CA certificates (#2268)
Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Co-authored-by: Nikola Jokic <jokicnikola07@gmail.com> Co-authored-by: Tingluo Huang <tingluohuang@github.com>
This commit is contained in:
co-authored by
Bassem Dghaidi
Nikola Jokic
Tingluo Huang
parent
068f987238
commit
c569304271
@@ -198,6 +198,12 @@ func (c *Client) Identifier() string {
|
||||
)
|
||||
}
|
||||
|
||||
if c.rootCAs != nil {
|
||||
// ignoring because this cert pool is intended not to come from SystemCertPool
|
||||
// nolint:staticcheck
|
||||
identifier += fmt.Sprintf("rootCAs:%q", c.rootCAs.Subjects())
|
||||
}
|
||||
|
||||
return uuid.NewHash(sha256.New(), uuid.NameSpaceOID, []byte(identifier), 6).String()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user