mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-27 15:08:14 +02:00
config: detect changes to the kubernetes service account token file (#2767)
This commit is contained in:
parent
370d8c53bb
commit
d90d4caf1a
2 changed files with 29 additions and 0 deletions
|
@ -238,6 +238,16 @@ func (src *FileWatcherSource) check(ctx context.Context, cfg *Config) {
|
|||
fs = append(fs, pair.CertFile, pair.KeyFile)
|
||||
}
|
||||
|
||||
for _, policy := range cfg.Options.Policies {
|
||||
fs = append(fs,
|
||||
policy.KubernetesServiceAccountTokenFile,
|
||||
policy.TLSClientCertFile,
|
||||
policy.TLSClientKeyFile,
|
||||
policy.TLSCustomCAFile,
|
||||
policy.TLSDownstreamClientCAFile,
|
||||
)
|
||||
}
|
||||
|
||||
for _, f := range fs {
|
||||
_, _ = h.Write([]byte{0})
|
||||
bs, err := ioutil.ReadFile(f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue