Skip to content

Commit 5ce7a6e

Browse files
Update comment on secret reference handling
Clarified comment regarding the handling of secret references in signed data.
1 parent 055b131 commit 5ce7a6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pkg/agent/application/actions/handlers/handler_action_migrate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ func (h *Migrate) Handle(ctx context.Context, a fleetapi.Action, ack acker.Acker
7777
return err
7878
}
7979

80-
// signed data contains secret reference in a form of $co.elastic.secret{secret_id}
81-
// this is replaced by fleet server on serve
80+
// signed data contains secret reference to the enrollment token so we extract the cleartext value
81+
// out of action.Data and replace it after unmarshalling the signed data into action.Data
8282
// see: https://github.com/elastic/fleet-server/blob/22f1f7a0474080d3f56c7148a6505cff0957f549/internal/pkg/secret/secret.go#L75
8383
enrollmentToken := action.Data.EnrollmentToken
8484

0 commit comments

Comments
 (0)