Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6fadbc6
feat(go): remove enrollment key cache;
VishalDalwadi Jun 1, 2026
d9230b2
feat(go): add internal schema;
VishalDalwadi Jun 1, 2026
1330131
feat(go): use the new internal table to fetch serverconf records;
VishalDalwadi Jun 1, 2026
d3091c6
feat(go): move internal key constants to schema/internal.go;
VishalDalwadi Jun 2, 2026
a106513
feat(go): add server conf table migration;
VishalDalwadi Jun 2, 2026
9e7997e
feat(go): use the new internal table for generated records;
VishalDalwadi Jun 2, 2026
2f158d5
feat(go): add generated table migration;
VishalDalwadi Jun 2, 2026
80a7e87
feat(go): use the new internal table for serveruuid records;
VishalDalwadi Jun 2, 2026
f08e940
feat(go): add server uuid table migration;
VishalDalwadi Jun 2, 2026
aa70e1d
chore(go): remove empty file;
VishalDalwadi Jun 2, 2026
db9de3a
feat(go): store license validation cached response in the new interna…
VishalDalwadi Jun 2, 2026
b161967
chore(go): move table name constants;
VishalDalwadi Jun 2, 2026
e4becdb
feat(go): use migration job name v1.7.0;
VishalDalwadi Jun 16, 2026
c71b7c3
wip(go): add schema definition for enrollment keys;
VishalDalwadi Jun 17, 2026
37e7a19
wip(go): use schema.EnrollmentKey in orchestrator pkg;
VishalDalwadi Jun 17, 2026
b003c4a
wip(go): use schema.EnrollmentKey in host registration and pending ho…
VishalDalwadi Jun 17, 2026
46e3407
wip(go): use schema.EnrollmentKey in gateway/node cleanup;
VishalDalwadi Jun 17, 2026
9f64f59
wip(go): use schema.EnrollmentKey in network cleanup;
VishalDalwadi Jun 17, 2026
62f0f80
wip(go): use schema.EnrollmentKey in creating default network enrollm…
VishalDalwadi Jun 17, 2026
95b2ba6
wip(go): use schema.EnrollmentKey in enrollment key logic/controller;
VishalDalwadi Jun 17, 2026
ebecb46
wip(go): add schema migration for enrollment keys;
VishalDalwadi Jun 17, 2026
b7c76db
fix(go): remove ref to non-existent constant;
VishalDalwadi Jun 18, 2026
7b9826c
fix(go): use correct package+type for orchestrator test;
VishalDalwadi Jun 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions auth/host_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func SessionHandler(conn *websocket.Conn) {
if err = conn.WriteMessage(messageType, responseData); err != nil {
logger.Log(0, "error during message writing:", err.Error())
}
go CheckNetRegAndHostUpdate(models.EnrollmentKey{Networks: netsToAdd}, &host, result.User)
go CheckNetRegAndHostUpdate(schema.EnrollmentKey{Networks: netsToAdd}, &host, result.User)
case <-timeout: // the read from req.answerCh has timed out
logger.Log(0, "timeout signal recv,exiting oauth socket conn")
break
Expand All @@ -229,14 +229,12 @@ func SessionHandler(conn *websocket.Conn) {
}

// CheckNetRegAndHostUpdate - run through networks and send a host update
func CheckNetRegAndHostUpdate(key models.EnrollmentKey, host *schema.Host, username string) {
func CheckNetRegAndHostUpdate(key schema.EnrollmentKey, host *schema.Host, username string) {
// publish host update through MQ
featureFlags := logic.GetFeatureFlags()
keyTags := make(map[models.TagID]struct{})
if len(key.Groups) > 0 {
for _, tagI := range key.Groups {
keyTags[tagI] = struct{}{}
}
for _, tagI := range key.Tags {
keyTags[models.TagID(tagI)] = struct{}{}
}
for _, netID := range key.Networks {
network := &schema.Network{Name: netID}
Expand Down Expand Up @@ -329,7 +327,7 @@ func CheckNetRegAndHostUpdate(key models.EnrollmentKey, host *schema.Host, usern
Action: schema.JoinHostToNet,
Source: models.Subject{
ID: key.Value,
Name: key.Tags[0],
Name: key.Name,
Type: schema.EnrollmentKeySub,
},
TriggeredBy: username,
Expand Down
Loading