Harden production workflows and agent admission
This commit is contained in:
@@ -19,7 +19,7 @@ func ResolveAgentID(configured, hostname string) (string, error) {
|
||||
if id == "" {
|
||||
return "", fmt.Errorf("hostname is empty")
|
||||
}
|
||||
if err := config.ValidateID("hostname as agent_id", id); err != nil {
|
||||
if err := config.ValidateID("OS hostname as agent_id", id); err != nil {
|
||||
return "", err
|
||||
}
|
||||
return id, nil
|
||||
|
||||
Reference in New Issue
Block a user