@@ -11,7 +11,7 @@ package trust
1111import (
1212 sdkErrors "github.com/spiffe/spike-sdk-go/errors"
1313 "github.com/spiffe/spike-sdk-go/log"
14- svid "github.com/spiffe/spike-sdk-go/spiffeid"
14+ "github.com/spiffe/spike-sdk-go/spiffeid"
1515)
1616
1717// AuthenticateForPilot verifies if the provided SPIFFE ID belongs to a
@@ -20,7 +20,7 @@ import (
2020// SPIFFEID is the SPIFFE ID string to authenticate for pilot access.
2121func AuthenticateForPilot (SPIFFEID string ) {
2222 const fName = "AuthenticateForPilot"
23- if ! svid . IsPilot (SPIFFEID ) {
23+ if ! spiffeid . IsPilotOperator (SPIFFEID ) {
2424 failErr := * sdkErrors .ErrAccessUnauthorized .Clone ()
2525 failErr .Msg = "you need a 'pilot' SPIFFE ID to use this command"
2626 log .FatalErr (fName , failErr )
@@ -33,7 +33,7 @@ func AuthenticateForPilot(SPIFFEID string) {
3333// SPIFFEID is the SPIFFE ID string to authenticate for pilot recover access.
3434func AuthenticateForPilotRecover (SPIFFEID string ) {
3535 const fName = "AuthenticateForPilotRecover"
36- if ! svid .IsPilotRecover (SPIFFEID ) {
36+ if ! spiffeid .IsPilotRecover (SPIFFEID ) {
3737 failErr := * sdkErrors .ErrAccessUnauthorized .Clone ()
3838 failErr .Msg = "you need a 'recover' SPIFFE ID to use this command"
3939 log .FatalErr (fName , failErr )
@@ -46,7 +46,7 @@ func AuthenticateForPilotRecover(SPIFFEID string) {
4646// SPIFFEID is the SPIFFE ID string to authenticate for restore access.
4747func AuthenticateForPilotRestore (SPIFFEID string ) {
4848 const fName = "AuthenticateForPilotRestore"
49- if ! svid .IsPilotRestore (SPIFFEID ) {
49+ if ! spiffeid .IsPilotRestore (SPIFFEID ) {
5050 failErr := * sdkErrors .ErrAccessUnauthorized .Clone ()
5151 failErr .Msg = "you need a 'restore' SPIFFE ID to use this command"
5252 log .FatalErr (fName , failErr )
0 commit comments