Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9592e69
add protos and generate
ryanulit Apr 15, 2025
d47cdc4
fix missed rename
ryanulit Apr 15, 2025
4c57dfa
add reg res db client methods except list and initial test setup
ryanulit Apr 15, 2025
62ddb7a
add list sql queries and client methods
ryanulit Apr 16, 2025
ba348b5
add integration tests for create db client methods
ryanulit Apr 16, 2025
ff8596e
Merge branch 'main' into DSPX-901-ndr-database-crud
ryanulit Apr 16, 2025
093c19d
add delete integration tests
ryanulit Apr 16, 2025
5dd05d2
add update integration tests
ryanulit Apr 16, 2025
e13fc7d
Merge branch 'main' into DSPX-901-ndr-database-crud
ryanulit Apr 16, 2025
569d0fb
fix proto lint errors
ryanulit Apr 16, 2025
1f8bd21
more lint fixes
ryanulit Apr 16, 2025
dd571fb
Merge branch 'main' into DSPX-901-ndr-database-crud
ryanulit Apr 17, 2025
f1101fc
add get integration tests
ryanulit Apr 17, 2025
c73118a
Merge branch 'main' into DSPX-901-ndr-database-crud
ryanulit Apr 17, 2025
56d6e5a
Merge branch 'main' into DSPX-901-ndr-database-crud
ryanulit Apr 17, 2025
9647b24
lint fix
ryanulit Apr 17, 2025
dd17373
add list sql filter and fix bugs
ryanulit Apr 17, 2025
e05a007
refactor integration tests to not modify fixture data
ryanulit Apr 17, 2025
6acd110
add list integration tests
ryanulit Apr 18, 2025
5fff148
fix lint issues
ryanulit Apr 18, 2025
25e55a1
Merge branch 'main' into DSPX-901-ndr-database-crud
ryanulit Apr 18, 2025
e2b17db
add service proto and proto tests
ryanulit Apr 18, 2025
58f47c9
implement service methods
ryanulit Apr 18, 2025
8234149
Merge branch 'main' into DSPX-902-ndr-service-crud
ryanulit Apr 22, 2025
92114a9
Merge branch 'main' into DSPX-902-ndr-service-crud
ryanulit Apr 22, 2025
9244101
use pointer receiver and update gets to use request msg correcly
ryanulit Apr 22, 2025
4cbe1cb
Merge branch 'main' into DSPX-902-ndr-service-crud
ryanulit Apr 22, 2025
3ef2569
fix failing services tests
ryanulit Apr 22, 2025
073249f
add missing code and refactor per discussions with jake
ryanulit Apr 23, 2025
4f9e7d5
Merge branch 'main' into DSPX-902-ndr-service-crud
jakedoublev Apr 23, 2025
d8b192d
Merge branch 'main' into DSPX-902-ndr-service-crud
ryanulit Apr 23, 2025
61e14c6
add client instantiation
ryanulit Apr 23, 2025
cc86548
Merge branch 'main' into DSPX-902-ndr-service-crud
ryanulit Apr 23, 2025
79aaf79
fix failing test
ryanulit Apr 23, 2025
091bb38
Merge branch 'main' into DSPX-902-ndr-service-crud
ryanulit Apr 23, 2025
eefa41b
bump protocol/go version
ryanulit Apr 23, 2025
4934ad9
Merge branch 'main' into DSPX-902-ndr-service-crud
jakedoublev Apr 23, 2025
4483b21
Merge branch 'main' into DSPX-902-ndr-service-crud
jakedoublev Apr 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/opentdf/platform/protocol/go/policy/attributes"
"github.com/opentdf/platform/protocol/go/policy/kasregistry"
"github.com/opentdf/platform/protocol/go/policy/namespaces"
"github.com/opentdf/platform/protocol/go/policy/registeredresources"
"github.com/opentdf/platform/protocol/go/policy/resourcemapping"
"github.com/opentdf/platform/protocol/go/policy/subjectmapping"
"github.com/opentdf/platform/protocol/go/policy/unsafe"
Expand Down Expand Up @@ -70,6 +71,7 @@ type SDK struct {
EntityResoution entityresolution.EntityResolutionServiceClient
KeyAccessServerRegistry kasregistry.KeyAccessServerRegistryServiceClient
Namespaces namespaces.NamespaceServiceClient
RegisteredResources registeredresources.RegisteredResourcesServiceClient
ResourceMapping resourcemapping.ResourceMappingServiceClient
SubjectMapping subjectmapping.SubjectMappingServiceClient
Unsafe unsafe.UnsafeServiceClient
Expand Down Expand Up @@ -198,6 +200,7 @@ func New(platformEndpoint string, opts ...Option) (*SDK, error) {
Actions: actions.NewActionServiceClient(platformConn),
Attributes: attributes.NewAttributesServiceClient(platformConn),
Namespaces: namespaces.NewNamespaceServiceClient(platformConn),
RegisteredResources: registeredresources.NewRegisteredResourcesServiceClient(platformConn),
ResourceMapping: resourcemapping.NewResourceMappingServiceClient(platformConn),
SubjectMapping: subjectmapping.NewSubjectMappingServiceClient(platformConn),
Unsafe: unsafe.NewUnsafeServiceClient(platformConn),
Expand Down
4 changes: 4 additions & 0 deletions service/logger/audit/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const (
ObjectTypeResourceMappingGroup
ObjectTypePublicKey
ObjectTypeAction
ObjectTypeRegisteredResource
ObjectTypeRegisteredResourceValue
)

func (ot ObjectType) String() string {
Expand All @@ -41,6 +43,8 @@ func (ot ObjectType) String() string {
"resource_mapping_group",
"public_key",
"action",
"registered_resource",
"registered_resource_value",
}[ot]
}

Expand Down
2 changes: 1 addition & 1 deletion service/pkg/server/services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type mockTestServiceOptions struct {
dbRegister serviceregistry.DBRegister
}

const numExpectedPolicyServices = 7
const numExpectedPolicyServices = 8

func mockTestServiceRegistry(opts mockTestServiceOptions) (serviceregistry.IService, *spyTestService) {
spy := &spyTestService{}
Expand Down
2 changes: 2 additions & 0 deletions service/policy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/opentdf/platform/service/policy/db/migrations"
"github.com/opentdf/platform/service/policy/kasregistry"
"github.com/opentdf/platform/service/policy/namespaces"
"github.com/opentdf/platform/service/policy/registeredresources"
"github.com/opentdf/platform/service/policy/resourcemapping"
"github.com/opentdf/platform/service/policy/subjectmapping"
"github.com/opentdf/platform/service/policy/unsafe"
Expand Down Expand Up @@ -36,6 +37,7 @@ func NewRegistrations() []serviceregistry.IService {
kasregistry.NewRegistration(namespace, dbRegister),
unsafe.NewRegistration(namespace, dbRegister),
actions.NewRegistration(namespace, dbRegister),
registeredresources.NewRegistration(namespace, dbRegister),
}...)
return registrations
}
Loading
Loading