Skip to content

Commit

Permalink
ARO-9712 fix setSasPolicy correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeepc2792 committed Oct 18, 2024
1 parent c11d8e3 commit 3eb641a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/cluster/deploybaseresources_additional.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ func (m *manager) storageAccount(name, region string, ocpSubnets []string, encry
}

// For Workload Identity Cluster disable shared access keys, only User Delegated SAS are allowed
if m.doc.OpenShiftCluster.UsesWorkloadIdentity() && setSasPolicy {
if m.doc.OpenShiftCluster.UsesWorkloadIdentity() {
sa.AllowSharedKeyAccess = to.BoolPtr(false)
sa.SasPolicy = &mgmtstorage.SasPolicy{
SasExpirationPeriod: to.StringPtr("0.01:00:00"),
ExpirationAction: to.StringPtr("Log"),
if setSasPolicy {
sa.SasPolicy = &mgmtstorage.SasPolicy{
SasExpirationPeriod: to.StringPtr("0.01:00:00"),
ExpirationAction: to.StringPtr("Log"),
}
}
}

Expand Down

0 comments on commit 3eb641a

Please sign in to comment.