Drop the bot_user-derived root identity and the empty-identity sentinel. System polls forge connections and owns instance-level work; a polled task stores the polling identity, task_queued and work_request_submitted carry task id, actor and principal, and an empty task identity is refused. Migration 0072 moves empty tasks.identity, the identity-grants root key and the old root's connection permits to System so a re-poll dedups.
13 lines
334 B
Go
13 lines
334 B
Go
package servicekit
|
|
|
|
import "github.com/samcharles93/archie-core/internal/config"
|
|
|
|
// IdentityNames is the agent identities the config names.
|
|
func IdentityNames(cfg config.Config) []string {
|
|
names := make([]string, 0, len(cfg.Identities))
|
|
for _, value := range cfg.Identities {
|
|
names = append(names, value.Name)
|
|
}
|
|
return names
|
|
}
|