refactor: move aws policy vocabulary to foundation

This commit is contained in:
joshsiv-mulga
2026-10-02 10:39:03 +10:00
parent c8baaea71c
commit d3cd6d5208
7 changed files with 7 additions and 4 deletions
@@ -1,3 +1,4 @@
// Package policy defines shared AWS IAM action vocabulary.
package policy
// bedrockIAMFamily lists the Bedrock wire/signing service names that all
@@ -1,3 +1,4 @@
// Package policy tests the shared AWS IAM action vocabulary.
package policy
import "testing"
@@ -1,3 +1,4 @@
// Package policy tests IAM evaluation against the shared AWS action vocabulary.
package policy
import (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
ecrregistry "github.com/mulgadc/spinifex/spinifex/domains/ecr/registry"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/errors"
"github.com/mulgadc/spinifex/spinifex/gateway/policy"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/policy"
)
// ecrOperationAuthorization runs after ecrAuthBridge has rehydrated and
+1 -1
View File
@@ -31,11 +31,11 @@ import (
awsapi "github.com/mulgadc/spinifex/spinifex/domains/ecr/awsapi"
ecrregistry "github.com/mulgadc/spinifex/spinifex/domains/ecr/registry"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/errors"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/policy"
"github.com/mulgadc/spinifex/spinifex/foundation/telemetry"
gateway_bedrock "github.com/mulgadc/spinifex/spinifex/gateway/bedrock"
gateway_ec2_instance "github.com/mulgadc/spinifex/spinifex/gateway/ec2/instance"
gateway_eks "github.com/mulgadc/spinifex/spinifex/gateway/eks"
"github.com/mulgadc/spinifex/spinifex/gateway/policy"
gateway_sts "github.com/mulgadc/spinifex/spinifex/gateway/sts"
handlers_iam "github.com/mulgadc/spinifex/spinifex/handlers/iam"
handlers_ochrevector "github.com/mulgadc/spinifex/spinifex/handlers/ochrevector"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/mulgadc/bluebottle/pkg/iampolicy"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/errors"
"github.com/mulgadc/spinifex/spinifex/gateway/policy"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/policy"
handlers_rds "github.com/mulgadc/spinifex/spinifex/handlers/rds"
"github.com/mulgadc/spinifex/spinifex/utils"
"github.com/stretchr/testify/assert"
+1 -1
View File
@@ -21,11 +21,11 @@ import (
acmawsapi "github.com/mulgadc/spinifex/spinifex/domains/acm/awsapi"
awsapi "github.com/mulgadc/spinifex/spinifex/domains/ecr/awsapi"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/errors"
"github.com/mulgadc/spinifex/spinifex/foundation/aws/policy"
gateway_ecs "github.com/mulgadc/spinifex/spinifex/gateway/ecs"
gateway_eks "github.com/mulgadc/spinifex/spinifex/gateway/eks"
gateway_elbv2 "github.com/mulgadc/spinifex/spinifex/gateway/elbv2"
gateway_iam "github.com/mulgadc/spinifex/spinifex/gateway/iam"
"github.com/mulgadc/spinifex/spinifex/gateway/policy"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)