Skip to content

Commit

Permalink
The NoAccess hook should return an error when a user does not use Com…
Browse files Browse the repository at this point in the history
…mon Fate (#700)
  • Loading branch information
JoshuaWilkes authored Jul 17, 2024
1 parent 79cd39e commit 928c328
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/hook/accessrequesthook/accessrequesthook.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ type NoAccessInput struct {
func (h Hook) NoAccess(ctx context.Context, input NoAccessInput) (retry bool, err error) {
cfg, err := cfcfg.Load(ctx, input.Profile)
if err != nil {
return false, err
clio.Debugw("failed to load cfconfig, skipping check for active grants in a common fate deployment", "error", err)
return false, nil
}

target := eid.New("AWS::Account", input.Profile.AWSConfig.SSOAccountID)
Expand Down

0 comments on commit 928c328

Please sign in to comment.