Skip to content

Commit

Permalink
RAITO-2634 | Add possibility to consume AP Tags and have a post proce…
Browse files Browse the repository at this point in the history
…ssing step for overriding name by a configured tag-value (#290)

* First implementation of an ap post processor

* Refactor to a more simple solution

* Add post processing for Data Objects

* Use json streamer

* Remove builded file

* Added basic test for ap post processor
  • Loading branch information
TimmersThomas committed Feb 2, 2024
1 parent df7d367 commit 0d69306
Show file tree
Hide file tree
Showing 33 changed files with 1,572 additions and 130 deletions.
2 changes: 1 addition & 1 deletion base/access_provider/access_provider.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 16 additions & 9 deletions base/access_provider/access_provider_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions base/access_provider/sync_from_target/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sync_from_target

import (
"github.com/raito-io/cli/base/data_source"
"github.com/raito-io/cli/base/tag"
)

// AccessProvider describes data access in the format that is suitable to be imported into Raito.x
Expand All @@ -18,6 +19,8 @@ type AccessProvider struct {
Policy string `json:"policy"`
Who *WhoItem `yaml:"who" json:"who"`

Owners *OwnersInput `json:"owners"`

// Locking properties

// NotInternalizable means that the entire access provider is locked
Expand All @@ -39,6 +42,12 @@ type AccessProvider struct {

// Allows the plugin to indicate that the access provider is incomplete (because not all who items, what items or permissions could be handled)
Incomplete *bool `json:"incomplete"`

Tags []*tag.Tag `json:"tags"`
}

type OwnersInput struct {
Users []string `yaml:"users" json:"users"`
}

type Access struct {
Expand Down
2 changes: 1 addition & 1 deletion base/data_object_enricher/data_object_enricher.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions base/data_object_enricher/data_object_enricher_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion base/data_source/data_source.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions base/data_source/data_source_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 13 additions & 8 deletions base/data_source/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,19 @@ import (

// DataObject represents a data object in the format that is suitable to be imported into a Raito data source.
type DataObject struct {
ExternalId string `json:"externalId"`
Name string `json:"name"`
FullName string `json:"fullName"`
Type string `json:"type"`
Description string `json:"description"`
ParentExternalId string `json:"parentExternalId"`
Tags []*tag.Tag `json:"tags"`
DataType *string `json:"dataType,omitempty"`
ExternalId string `json:"externalId"`
Name string `json:"name"`
FullName string `json:"fullName"`
Type string `json:"type"`
Description string `json:"description"`
ParentExternalId string `json:"parentExternalId"`
Tags []*tag.Tag `json:"tags"`
DataType *string `json:"dataType,omitempty"`
Owners *OwnersInput `json:"owners"`
}

type OwnersInput struct {
Users []string `yaml:"users" json:"users"`
}

// DataObjectReference represents the reference to a DataObject suitable for e.g. defining the What in Access Provider import
Expand Down
2 changes: 1 addition & 1 deletion base/data_usage/data_usage.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions base/data_usage/data_usage_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion base/identity_store/identity_store.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0d69306

Please sign in to comment.