Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf676ba4

Browse files
committed
format
1 parent0f60bc9 commitf676ba4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎enterprise/coderd/provisionerdaemons.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ func (p *provisionerDaemonAuth) authorize(r *http.Request, orgID uuid.UUID, tags
132132
returnuuid.Nil,nil,xerrors.New("user unauthorized")
133133
}
134134

135-
// Allow fallback to PSK auth if the user is not allowed to create provisioner daemons.
136-
// This is to preserve backwards compatibility with existing user provisioner daemons.
137-
// If using PSK auth, the daemon is, by definition, scoped to the organization.
138-
tags=provisionersdk.MutateTags(uuid.Nil,tags)
139-
140135
pskKey,err:=uuid.Parse(codersdk.ProvisionerKeyIDPSK)
141136
iferr!=nil {
142137
returnuuid.Nil,nil,xerrors.Errorf("parse psk provisioner key id: %w",err)
143138
}
144139

140+
// Allow fallback to PSK auth if the user is not allowed to create provisioner daemons.
141+
// This is to preserve backwards compatibility with existing user provisioner daemons.
142+
// If using PSK auth, the daemon is, by definition, scoped to the organization.
143+
tags=provisionersdk.MutateTags(uuid.Nil,tags)
144+
145145
returnpskKey,tags,nil
146146
}
147147

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp