mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 19:41:17 +00:00
Restore legacy host config fetch compatibility (#1254)
This commit is contained in:
parent
4120d75359
commit
04a828264a
3 changed files with 70 additions and 1 deletions
|
|
@ -321,6 +321,9 @@ func (h *HostAgentHandlers) canReadConfig(record *config.APITokenRecord) bool {
|
|||
return true
|
||||
}
|
||||
return record.HasScope(config.ScopeHostConfigRead) ||
|
||||
// Older host-agent tokens may only carry host-agent:report.
|
||||
// Allow them to continue fetching their own config via token binding.
|
||||
record.HasScope(config.ScopeHostReport) ||
|
||||
record.HasScope(config.ScopeHostManage) ||
|
||||
record.HasScope(config.ScopeSettingsWrite)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue