From 340ce5ae486bfd4c239328057bd3a6ff023124c0 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Thu, 31 Oct 2024 16:08:37 -0400 Subject: [PATCH 01/24] Add more docs around AuthZ and Share filter lists --- CHANGELOG.md | 8 ++++++++ pangea-sdk/service/authz/api.go | 14 ++++++++++---- pangea-sdk/service/share/api.go | 26 ++++++++++++++++++++++---- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6770b30..41d54e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- More documentation to AuthZ and Secure Share filter lists. + +### Fixed + +- Secure Share: share link list filter now uses "target_id" instead of "target". + ## 4.1.0 - 2024-10-16 ### Added diff --git a/pangea-sdk/service/authz/api.go b/pangea-sdk/service/authz/api.go index 230c801..525ccd5 100644 --- a/pangea-sdk/service/authz/api.go +++ b/pangea-sdk/service/authz/api.go @@ -83,26 +83,32 @@ func NewFilterUserList() *TupleListFilter { } } +// Only records where resource type equals this value. func (fu *TupleListFilter) ResourceType() *pangea.FilterMatch[string] { return fu.resourceType } +// Only records where resource id equals this value. func (fu *TupleListFilter) ResourceID() *pangea.FilterMatch[string] { return fu.resourceID } +// Only records where subject type equals this value. func (fu *TupleListFilter) SubjectType() *pangea.FilterMatch[string] { return fu.subjectType } +// Only records where subject id equals this value. func (fu *TupleListFilter) SubjectID() *pangea.FilterMatch[string] { return fu.subjectID } +// Only records where subject action equals this value. func (fu *TupleListFilter) SubjectAction() *pangea.FilterMatch[string] { return fu.subjectAction } +// Only records where relation equals this value. func (fu *TupleListFilter) Relation() *pangea.FilterMatch[string] { return fu.relation } @@ -149,10 +155,10 @@ type TupleListResult struct { // // @example // -// filter := authz.NewFilterUserList() -// filter.ResourceType().Set(pangea.String("folder")) -// filter.ResourceID().Set(pangea.String("folder_id")) - +// filter := authz.NewFilterUserList() +// filter.ResourceType().Set(pangea.String("folder")) +// filter.ResourceID().Set(pangea.String("folder_id")) +// // rListWithResource, err := cli.TupleList(ctx, &authz.TupleListRequest{ // Filter: filter.Filter(), // }) diff --git a/pangea-sdk/service/share/api.go b/pangea-sdk/service/share/api.go index 5b73d57..d31e12f 100644 --- a/pangea-sdk/service/share/api.go +++ b/pangea-sdk/service/share/api.go @@ -371,38 +371,47 @@ func NewFilterList() *FilterList { } } +// Only records where the object exists in the supplied parent folder path name. func (f *FilterList) Folder() *pangea.FilterEqual[string] { return f.folder } +// A list of tags that all must be present. func (f *FilterList) Tags() *pangea.FilterEqual[[]string] { return f.tags } +// Only records where created_at equals this value. func (f *FilterList) CreatedAt() *pangea.FilterRange[string] { return f.createdAt } +// Only records where id equals this value. func (f *FilterList) ID() *pangea.FilterMatch[string] { return f.id } +// Only records where name equals this value. func (f *FilterList) Name() *pangea.FilterMatch[string] { return f.name } +// Only records where parent_id equals this value. func (f *FilterList) ParentID() *pangea.FilterMatch[string] { return f.parentId } +// Only records where size equals this value. func (f *FilterList) Size() *pangea.FilterRange[string] { return f.size } +// Only records where type equals this value. func (f *FilterList) Type() *pangea.FilterMatch[string] { return f.type_ } +// Only records where updated_at equals this value. func (f *FilterList) UpdatedAt() *pangea.FilterRange[string] { return f.updatedAt } @@ -575,7 +584,7 @@ func (e *share) ShareLinkGet(ctx context.Context, input *ShareLinkGetRequest) (* type FilterShareLinkList struct { pangea.FilterBase id *pangea.FilterMatch[string] - target *pangea.FilterMatch[string] + targetId *pangea.FilterMatch[string] linkType *pangea.FilterMatch[string] accessCount *pangea.FilterRange[string] maxAccessCount *pangea.FilterRange[string] @@ -590,7 +599,7 @@ func NewFilterShareLinkList() *FilterShareLinkList { return &FilterShareLinkList{ FilterBase: *pangea.NewFilterBase(filter), id: pangea.NewFilterMatch[string]("id", &filter), - target: pangea.NewFilterMatch[string]("target", &filter), + targetId: pangea.NewFilterMatch[string]("target_id", &filter), linkType: pangea.NewFilterMatch[string]("link_type", &filter), accessCount: pangea.NewFilterRange[string]("access_count", &filter), maxAccessCount: pangea.NewFilterRange[string]("max_access_count", &filter), @@ -601,38 +610,47 @@ func NewFilterShareLinkList() *FilterShareLinkList { } } +// Only records where id equals this value. func (f *FilterShareLinkList) ID() *pangea.FilterMatch[string] { return f.id } -func (f *FilterShareLinkList) Target() *pangea.FilterMatch[string] { - return f.target +// Only records where target_id equals this value. +func (f *FilterShareLinkList) TargetID() *pangea.FilterMatch[string] { + return f.targetId } +// Only records where link_type equals this value. func (f *FilterShareLinkList) LinkType() *pangea.FilterMatch[string] { return f.linkType } +// Only records where link equals this value. func (f *FilterShareLinkList) Link() *pangea.FilterMatch[string] { return f.link } +// Only records where access_count equals this value. func (f *FilterShareLinkList) AccessCount() *pangea.FilterRange[string] { return f.accessCount } +// Only records where max_access_count equals this value. func (f *FilterShareLinkList) MaxAccessCount() *pangea.FilterRange[string] { return f.maxAccessCount } +// Only records where created_at equals this value. func (f *FilterShareLinkList) CreatedAt() *pangea.FilterRange[string] { return f.createdAt } +// Only records where expires_at equals this value. func (f *FilterShareLinkList) ExpiresAt() *pangea.FilterRange[string] { return f.expiresAt } +// Only records where last_accessed_at equals this value. func (f *FilterShareLinkList) LastAccessedAt() *pangea.FilterRange[string] { return f.lastAccessedAt } From ebe8a85f286b24034f0dd90f4ff8f9ef35024e27 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Fri, 1 Nov 2024 11:21:05 -0400 Subject: [PATCH 02/24] Don't include private funcs in generated docs --- pangea-sdk/autogendoc/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pangea-sdk/autogendoc/main.go b/pangea-sdk/autogendoc/main.go index d537612..bb65312 100644 --- a/pangea-sdk/autogendoc/main.go +++ b/pangea-sdk/autogendoc/main.go @@ -236,6 +236,11 @@ func gatherFuncs(docFuncs []*doc.Func, fs *token.FileSet) []*DocumentedFunc { funcs := []*DocumentedFunc{} for _, f := range docFuncs { + // Skip private APIs. + if !ast.IsExported(f.Name) { + continue + } + funcs = append(funcs, &DocumentedFunc{ Name: f.Name, Doc: f.Doc, From ebeacecfd8ca2fe49049f7f394040ecda2d6b810 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 07:53:26 +0000 Subject: [PATCH 03/24] chore(deps): update golang:1.22-bullseye docker digest to 80fe6f6 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3140d8f..e4ab6ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: golang:1.22-bullseye@sha256:3e2f3b0ebfb877a6dc750360c327911a06b3a030c1b212cdbeb02745c1d92ba0 + image: golang:1.22-bullseye@sha256:80fe6f65f52965ed4c51870d2970de4a51ca02c365c291e15b0dbfe044d391a1 tags: - pangea-internal From 90df5f0fc2fc1f691a69d5bc14cadd3e145c857c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 01:03:14 +0000 Subject: [PATCH 04/24] fix(deps): update module golang.org/x/crypto to v0.29.0 --- pangea-sdk/go.mod | 4 ++-- pangea-sdk/go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pangea-sdk/go.mod b/pangea-sdk/go.mod index d6ab61b..f57306d 100644 --- a/pangea-sdk/go.mod +++ b/pangea-sdk/go.mod @@ -6,7 +6,7 @@ require ( github.com/hashicorp/go-retryablehttp v0.7.7 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 - golang.org/x/crypto v0.28.0 + golang.org/x/crypto v0.29.0 ) require ( @@ -15,6 +15,6 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.27.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/pangea-sdk/go.sum b/pangea-sdk/go.sum index e9f65a1..602cd9b 100644 --- a/pangea-sdk/go.sum +++ b/pangea-sdk/go.sum @@ -26,11 +26,15 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= +golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= From 6f9d7e92618bf63eb630c883045971d541230f9c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:07:24 +0000 Subject: [PATCH 05/24] chore(deps): update golang:1.22-bullseye docker digest to 9aa55ca --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4ab6ef..166fabe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: golang:1.22-bullseye@sha256:80fe6f65f52965ed4c51870d2970de4a51ca02c365c291e15b0dbfe044d391a1 + image: golang:1.22-bullseye@sha256:9aa55caf6bc6bc540b5d94bb7d477882f19eb1cd2de8655e4b0cd287143153c3 tags: - pangea-internal From e673bd4b5626438fe33c9905430d13d43b4cfebe Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:30:52 +0000 Subject: [PATCH 06/24] chore(deps): update golang:1.22-bullseye docker digest to 05a23dc --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 166fabe..3bdc915 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: golang:1.22-bullseye@sha256:9aa55caf6bc6bc540b5d94bb7d477882f19eb1cd2de8655e4b0cd287143153c3 + image: golang:1.22-bullseye@sha256:05a23dcbf30f718d67e3dfe3483da0e4be465bc38acd9ded39b11f529336e744 tags: - pangea-internal From 33e235c27a86ce03178b929bd97353816720a8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20Andr=C3=A9s=20Tournour?= <111303288+pangea-andrest@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:04:24 -0300 Subject: [PATCH 07/24] Add `cursor` field support on `v1/user/breached` of `user-intel` (#322) --- CHANGELOG.md | 1 + go.work.sum | 4 +++- pangea-sdk/service/user_intel/api.go | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41d54e3..2ba39fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - More documentation to AuthZ and Secure Share filter lists. +- Support for `cursor` field on `v1/user/breached` of `user-intel` ### Fixed diff --git a/go.work.sum b/go.work.sum index f1afbc7..15e8563 100644 --- a/go.work.sum +++ b/go.work.sum @@ -6,7 +6,6 @@ github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= @@ -15,6 +14,7 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -22,5 +22,7 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= diff --git a/pangea-sdk/service/user_intel/api.go b/pangea-sdk/service/user_intel/api.go index 292bcac..27ea6da 100644 --- a/pangea-sdk/service/user_intel/api.go +++ b/pangea-sdk/service/user_intel/api.go @@ -73,6 +73,7 @@ type UserBreachedRequest struct { Verbose *bool `json:"verbose,omitempty"` Raw *bool `json:"raw,omitempty"` Provider string `json:"provider,omitempty"` + Cursor string `json:"cursor,omitempty"` // A token given in the raw response from SpyCloud. Post this back to paginate results } type UserBreachedBulkRequest struct { From fe0a6965f7b127c339b28da8efa21f857dfc512b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 23 Nov 2024 14:06:27 +0000 Subject: [PATCH 08/24] fix(deps): update module github.com/stretchr/testify to v1.10.0 --- pangea-sdk/go.mod | 2 +- pangea-sdk/go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pangea-sdk/go.mod b/pangea-sdk/go.mod index f57306d..6a056fc 100644 --- a/pangea-sdk/go.mod +++ b/pangea-sdk/go.mod @@ -5,7 +5,7 @@ go 1.22 require ( github.com/hashicorp/go-retryablehttp v0.7.7 github.com/rs/zerolog v1.33.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 golang.org/x/crypto v0.29.0 ) diff --git a/pangea-sdk/go.sum b/pangea-sdk/go.sum index 602cd9b..1f3dde5 100644 --- a/pangea-sdk/go.sum +++ b/pangea-sdk/go.sum @@ -24,6 +24,8 @@ github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= From 5294918f4a10b372e7dc8d40f99814278c727c97 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:53:54 +0000 Subject: [PATCH 09/24] chore(deps): update golang:1.22-bullseye docker digest to 3e79b67 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3bdc915..5c60df8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: golang:1.22-bullseye@sha256:05a23dcbf30f718d67e3dfe3483da0e4be465bc38acd9ded39b11f529336e744 + image: golang:1.22-bullseye@sha256:3e79b67e8be91ae6962ace126a6d83e616eaa7b50891b335e99326ecf671e7b0 tags: - pangea-internal From e3df03406e290a04ef534d2c74b8af5a6cb18905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20Andr=C3=A9s=20Tournour?= <111303288+pangea-andrest@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:34:03 -0300 Subject: [PATCH 10/24] Add milisecond time format support (#326) --- CHANGELOG.md | 1 + pangea-sdk/internal/pangeautil/pangeautil.go | 14 ++++++++++++- .../internal/pangeautil/pangeautil_test.go | 21 +++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ba39fa..b5d9aa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - More documentation to AuthZ and Secure Share filter lists. - Support for `cursor` field on `v1/user/breached` of `user-intel` +- Milisecond time format support ### Fixed diff --git a/pangea-sdk/internal/pangeautil/pangeautil.go b/pangea-sdk/internal/pangeautil/pangeautil.go index 7edd7ba..bc0faa3 100644 --- a/pangea-sdk/internal/pangeautil/pangeautil.go +++ b/pangea-sdk/internal/pangeautil/pangeautil.go @@ -31,7 +31,9 @@ func CanonicalizeStruct(v interface{}) ([]byte, error) { type PangeaTimestamp time.Time const ptLayout_Z = "2006-01-02T15:04:05.000000Z" +const ptLayout_3Z = "2006-01-02T15:04:05.000Z" const ptLayout_noZ = "2006-01-02T15:04:05.000000" +const ptLayout_3noZ = "2006-01-02T15:04:05.000" // UnmarshalJSON Parses the json string in the custom format func (ct *PangeaTimestamp) UnmarshalJSON(b []byte) (err error) { @@ -44,7 +46,17 @@ func (ct *PangeaTimestamp) UnmarshalJSON(b []byte) (err error) { nt, err = time.Parse(ptLayout_noZ, s) if err == nil { *ct = PangeaTimestamp(nt) - return + return nil + } + nt, err = time.Parse(ptLayout_3Z, s) + if err == nil { + *ct = PangeaTimestamp(nt) + return nil + } + nt, err = time.Parse(ptLayout_3noZ, s) + if err == nil { + *ct = PangeaTimestamp(nt) + return nil } return err } diff --git a/pangea-sdk/internal/pangeautil/pangeautil_test.go b/pangea-sdk/internal/pangeautil/pangeautil_test.go index d613bb5..6e4e998 100644 --- a/pangea-sdk/internal/pangeautil/pangeautil_test.go +++ b/pangea-sdk/internal/pangeautil/pangeautil_test.go @@ -108,4 +108,25 @@ func TestPangeaTimestamp(t *testing.T) { ptt := time.Time(pt) ptut := time.Time(ptu) assert.Equal(t, ptt.UnixMilli(), ptut.UnixMilli()) + +} + +func TestPangeaParseTimestamp(t *testing.T) { + ptu := pangeautil.PangeaTimestamp{} + + ptb := []byte("2024-05-20T17:49:59.000000Z") + err := ptu.UnmarshalJSON(ptb) + assert.NoError(t, err) + + ptb = []byte("2024-05-20T17:49:59.000Z") + err = ptu.UnmarshalJSON(ptb) + assert.NoError(t, err) + + ptb = []byte("2024-05-20T17:49:59.000000") + err = ptu.UnmarshalJSON(ptb) + assert.NoError(t, err) + + ptb = []byte("2024-05-20T17:49:59.000") + err = ptu.UnmarshalJSON(ptb) + assert.NoError(t, err) } From d47fb70b7460eb741fb34090431114544b2e85d2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 04:12:47 +0000 Subject: [PATCH 11/24] chore(deps): update golang:1.22-bullseye docker digest to 9bdb5a5 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c60df8..03efc37 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: golang:1.22-bullseye@sha256:3e79b67e8be91ae6962ace126a6d83e616eaa7b50891b335e99326ecf671e7b0 + image: golang:1.22-bullseye@sha256:9bdb5a5654864bf16147aaf4c1a808a0cdbaedddfed47593b7eeb9f0a33fc145 tags: - pangea-internal From bc4e0527facd4634de441bc0fcca92ab58868343 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:38:17 +0000 Subject: [PATCH 12/24] chore(deps): update golang:1.22-bullseye docker digest to 1e3e0cd --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 03efc37..0cfc721 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: golang:1.22-bullseye@sha256:9bdb5a5654864bf16147aaf4c1a808a0cdbaedddfed47593b7eeb9f0a33fc145 + image: golang:1.22-bullseye@sha256:1e3e0cdab013c62de8c3f4fe942138255e6a367b90079220ed6f3853a34329ff tags: - pangea-internal From 7df32fc83ad44e9b1b2dd640c2b3c713aa6b622e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 21:11:02 +0000 Subject: [PATCH 13/24] fix(deps): update module golang.org/x/crypto to v0.30.0 --- pangea-sdk/go.mod | 4 ++-- pangea-sdk/go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pangea-sdk/go.mod b/pangea-sdk/go.mod index 6a056fc..ab3a4b1 100644 --- a/pangea-sdk/go.mod +++ b/pangea-sdk/go.mod @@ -6,7 +6,7 @@ require ( github.com/hashicorp/go-retryablehttp v0.7.7 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.10.0 - golang.org/x/crypto v0.29.0 + golang.org/x/crypto v0.30.0 ) require ( @@ -15,6 +15,6 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/sys v0.27.0 // indirect + golang.org/x/sys v0.28.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/pangea-sdk/go.sum b/pangea-sdk/go.sum index 1f3dde5..918cff3 100644 --- a/pangea-sdk/go.sum +++ b/pangea-sdk/go.sum @@ -30,6 +30,8 @@ golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= +golang.org/x/crypto v0.30.0 h1:RwoQn3GkWiMkzlX562cLB7OxWvjH1L8xutO2WoJcRoY= +golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -37,6 +39,8 @@ golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= From fb56fa23eec218eea3ebac545b0c0607ad70e179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20Andr=C3=A9s=20Tournour?= <111303288+pangea-andrest@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:05:42 -0300 Subject: [PATCH 14/24] Add `vault_parameters` and `llm_request` fields support on Redact service. (#329) --- CHANGELOG.md | 1 + pangea-sdk/service/redact/api.go | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5d9aa0..05395d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - More documentation to AuthZ and Secure Share filter lists. - Support for `cursor` field on `v1/user/breached` of `user-intel` - Milisecond time format support +- `vault_parameters` and `llm_request` fields support on Redact service. ### Fixed diff --git a/pangea-sdk/service/redact/api.go b/pangea-sdk/service/redact/api.go index b0c1019..7393e3a 100644 --- a/pangea-sdk/service/redact/api.go +++ b/pangea-sdk/service/redact/api.go @@ -83,6 +83,19 @@ type TextRequest struct { // A set of redaction method overrides for any enabled rule. These methods override the config declared methods RedactionMethodOverrides *RedactionMethodOverrides `json:"redaction_method_overrides,omitempty"` + + VaultParameters *VaultParameters `json:"vault_parameters,omitempty"` + + // Is this redact call going to be used in an LLM request? + LLMrequest *bool `json:"llm_request,omitempty"` +} + +type VaultParameters struct { + // A vault key ID of an exportable key used to redact with FPE instead of using the service config default. + FPEkeyID string `json:"fpe_key_id,omitempty"` + + // A vault secret ID of a secret used to salt a hash instead of using the service config default. + SaltSecretID string `json:"salt_secret_id,omitempty"` } type TextResult struct { @@ -152,6 +165,11 @@ type StructuredRequest struct { // A set of redaction method overrides for any enabled rule. These methods override the config declared methods RedactionMethodOverrides *RedactionMethodOverrides `json:"redaction_method_overrides,omitempty"` + + VaultParameters *VaultParameters `json:"vault_parameters,omitempty"` + + // Is this redact call going to be used in an LLM request? + LLMrequest *bool `json:"llm_request,omitempty"` } type StructuredResult struct { From 05d3016e9674066973363813c8675baae6be98b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=2E=20Andr=C3=A9s=20Tournour?= <111303288+pangea-andrest@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:31:47 -0300 Subject: [PATCH 15/24] Add `/v1/breach` endpoint support on `user-intel` service. (#324) --- CHANGELOG.md | 4 +- go.work.sum | 2 + pangea-sdk/service/user_intel/api.go | 58 +++++++++++++++++++++++----- 3 files changed, 53 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05395d6..fe783c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,9 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - More documentation to AuthZ and Secure Share filter lists. -- Support for `cursor` field on `v1/user/breached` of `user-intel` +- Support for `cursor` field on `v1/user/breached` of `user-intel` service. - Milisecond time format support - `vault_parameters` and `llm_request` fields support on Redact service. +- Support for `severity` field on `v1/user/breached` and `v2/user/breached` of `user-intel` service. +- `/v1/breach` endpoint support on `user-intel` service. ### Fixed diff --git a/go.work.sum b/go.work.sum index 15e8563..34b2512 100644 --- a/go.work.sum +++ b/go.work.sum @@ -23,6 +23,8 @@ golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= diff --git a/pangea-sdk/service/user_intel/api.go b/pangea-sdk/service/user_intel/api.go index 27ea6da..0e2e13f 100644 --- a/pangea-sdk/service/user_intel/api.go +++ b/pangea-sdk/service/user_intel/api.go @@ -64,16 +64,17 @@ type UserBreachedRequest struct { // Base request has ConfigID for multi-config projects pangea.BaseRequest - Email string `json:"email,omitempty"` - Username string `json:"username,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - IP string `json:"ip,omitempty"` - Start string `json:"start,omitempty"` - End string `json:"end,omitempty"` - Verbose *bool `json:"verbose,omitempty"` - Raw *bool `json:"raw,omitempty"` - Provider string `json:"provider,omitempty"` - Cursor string `json:"cursor,omitempty"` // A token given in the raw response from SpyCloud. Post this back to paginate results + Email string `json:"email,omitempty"` + Username string `json:"username,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + IP string `json:"ip,omitempty"` + Start string `json:"start,omitempty"` + End string `json:"end,omitempty"` + Verbose *bool `json:"verbose,omitempty"` + Raw *bool `json:"raw,omitempty"` + Provider string `json:"provider,omitempty"` + Cursor string `json:"cursor,omitempty"` // A token given in the raw response from SpyCloud. Post this back to paginate results + Severity []string `json:"severity,omitempty"` // Filter for records that match one of the given severities } type UserBreachedBulkRequest struct { @@ -90,6 +91,7 @@ type UserBreachedBulkRequest struct { Verbose *bool `json:"verbose,omitempty"` Raw *bool `json:"raw,omitempty"` Provider string `json:"provider,omitempty"` + Severity []string `json:"severity,omitempty"` // Filter for records that match one of the given severities } type UserBreachedData struct { @@ -193,3 +195,39 @@ type UserPasswordBreachedBulkResult struct { Parameters map[string]any `json:"parameters,omitempty"` RawData map[string]any `json:"raw_data,omitempty"` } + +// @summary Look up information about a specific breach +// +// @description Given a provider specific breach ID, find details about the breach. +// +// @operationId user_intel_post_v1_breach +// +// @example +// +// input := &user_intel.BreachRequest{ +// BreachID: "66111", +// } +// +// out, err := userintel.Breach(ctx, input) +func (e *userIntel) Breach(ctx context.Context, input *BreachRequest) (*pangea.PangeaResponse[BreachResult], error) { + return request.DoPost(ctx, e.Client, "v1/breach", input, &BreachResult{}) +} + +type BreachRequest struct { + // Base request has ConfigID for multi-config projects + pangea.BaseRequest + + BreachID string `json:"breach_id,omitempty"` // The ID of a breach returned by a provider. + Verbose *bool `json:"verbose,omitempty"` // Echo the API parameters in the response. + Provider string `json:"provider,omitempty"` // Get breach data from this provider. + Cursor string `json:"cursor,omitempty"` // A token given in the raw response from SpyCloud. Post this back to paginate results + Start string `json:"start,omitempty"` // This parameter allows you to define the starting point for a date range query on the spycloud_publish_date field + End string `json:"end,omitempty"` // This parameter allows you to define the ending point for a date range query on the spycloud_publish_date field + Severity []string `json:"severity,omitempty"` // Filter for records that match one of the given severities +} + +type BreachResult struct { + Found bool `json:"found"` // A flag indicating if the lookup was successful + Data interface{} `json:"data,omitempty"` // Breach details given by the provider + Parameters map[string]any `json:"parameters,omitempty"` // The parameters, which were passed in the request, echoed back +} From 5e9a31bdad8f465bc4bebc071550b6375eb6d255 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 04:02:49 +0000 Subject: [PATCH 16/24] chore(deps): update actions/setup-go action to v5.2.0 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7818c1..f21ea9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@v4.2.2 - name: Setup Go - uses: actions/setup-go@v5.1.0 + uses: actions/setup-go@v5.2.0 with: go-version: "1.22" cache-dependency-path: "**/*.sum" @@ -51,7 +51,7 @@ jobs: uses: actions/checkout@v4.2.2 - name: Setup Go - uses: actions/setup-go@v5.1.0 + uses: actions/setup-go@v5.2.0 with: go-version: ${{ matrix.go-version }} cache-dependency-path: ./pangea-sdk/go.sum @@ -84,7 +84,7 @@ jobs: uses: actions/checkout@v4.2.2 - name: Setup Go - uses: actions/setup-go@v5.1.0 + uses: actions/setup-go@v5.2.0 with: go-version: "1.22" cache-dependency-path: ./examples/${{ matrix.example }}/go.sum From db35f2a0f06b60c7a1966059747f4cae18b821c9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:15:11 +0000 Subject: [PATCH 17/24] fix(deps): update module golang.org/x/crypto to v0.31.0 [security] --- pangea-sdk/go.mod | 2 +- pangea-sdk/go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pangea-sdk/go.mod b/pangea-sdk/go.mod index ab3a4b1..c6c0ed2 100644 --- a/pangea-sdk/go.mod +++ b/pangea-sdk/go.mod @@ -6,7 +6,7 @@ require ( github.com/hashicorp/go-retryablehttp v0.7.7 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.10.0 - golang.org/x/crypto v0.30.0 + golang.org/x/crypto v0.31.0 ) require ( diff --git a/pangea-sdk/go.sum b/pangea-sdk/go.sum index 918cff3..0e6bc58 100644 --- a/pangea-sdk/go.sum +++ b/pangea-sdk/go.sum @@ -32,6 +32,8 @@ golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= golang.org/x/crypto v0.30.0 h1:RwoQn3GkWiMkzlX562cLB7OxWvjH1L8xutO2WoJcRoY= golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= From 5cdf5e60c3e6c4f3aeb1305f83dd8b650d8adfdd Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Fri, 13 Dec 2024 12:17:01 -0500 Subject: [PATCH 18/24] Update install command to point to v4 --- pangea-sdk/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pangea-sdk/README.md b/pangea-sdk/README.md index fe4bb41..872a301 100644 --- a/pangea-sdk/README.md +++ b/pangea-sdk/README.md @@ -16,7 +16,7 @@ A Go SDK for integrating with Pangea services. Supports Go v1.22 and above. #### GA releases ```bash -$ go get github.com/pangeacyber/pangea-go/pangea-sdk +$ go get github.com/pangeacyber/pangea-go/pangea-sdk/v4 ``` From c4e36574a26c341351be273fb2bc4425a22161a3 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Wed, 18 Dec 2024 14:12:32 -0500 Subject: [PATCH 19/24] Publish v4.2.0 --- CHANGELOG.md | 4 +++- pangea-sdk/pangea/pangea.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe783c2..d352cc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 4.2.0 - 2024-12-18 + ### Added - More documentation to AuthZ and Secure Share filter lists. - Support for `cursor` field on `v1/user/breached` of `user-intel` service. -- Milisecond time format support +- Millisecond time format support - `vault_parameters` and `llm_request` fields support on Redact service. - Support for `severity` field on `v1/user/breached` and `v2/user/breached` of `user-intel` service. - `/v1/breach` endpoint support on `user-intel` service. diff --git a/pangea-sdk/pangea/pangea.go b/pangea-sdk/pangea/pangea.go index f098a90..7b259a8 100644 --- a/pangea-sdk/pangea/pangea.go +++ b/pangea-sdk/pangea/pangea.go @@ -23,7 +23,7 @@ import ( ) const ( - version = "4.1.0" + version = "4.2.0" pangeaUserAgent = "pangea-go/" + version ) From d67cee5c70d18e2c0be50693c9e071f110808739 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 21 Dec 2024 21:59:47 +0000 Subject: [PATCH 20/24] fix(deps): update module github.com/pangeacyber/pangea-go/pangea-sdk/v4 to v4.2.0 --- examples/audit/go.mod | 6 +++--- examples/audit/go.sum | 6 ++++++ examples/authn/go.mod | 6 +++--- examples/authn/go.sum | 6 ++++++ examples/authz/go.mod | 4 ++-- examples/authz/go.sum | 4 ++++ examples/embargo/go.mod | 4 ++-- examples/embargo/go.sum | 4 ++++ examples/file_scan/go.mod | 4 ++-- examples/file_scan/go.sum | 4 ++++ examples/intel/go.mod | 4 ++-- examples/intel/go.sum | 4 ++++ examples/redact/go.mod | 4 ++-- examples/redact/go.sum | 4 ++++ examples/sanitize/go.mod | 4 ++-- examples/sanitize/go.sum | 4 ++++ examples/share/go.mod | 4 ++-- examples/share/go.sum | 4 ++++ examples/vault/go.mod | 6 +++--- examples/vault/go.sum | 6 ++++++ 20 files changed, 69 insertions(+), 23 deletions(-) diff --git a/examples/audit/go.mod b/examples/audit/go.mod index 27516e8..e09c8f1 100644 --- a/examples/audit/go.mod +++ b/examples/audit/go.mod @@ -2,7 +2,7 @@ module examples/audit go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,8 +10,8 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/crypto v0.28.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/audit/go.sum b/examples/audit/go.sum index 9e87d50..74f2dd2 100644 --- a/examples/audit/go.sum +++ b/examples/audit/go.sum @@ -18,6 +18,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -28,11 +30,15 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/examples/authn/go.mod b/examples/authn/go.mod index a9c2dce..5a604f3 100644 --- a/examples/authn/go.mod +++ b/examples/authn/go.mod @@ -2,7 +2,7 @@ module examples/authn go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,8 +10,8 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/crypto v0.28.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/authn/go.sum b/examples/authn/go.sum index a92e387..9a5d21c 100644 --- a/examples/authn/go.sum +++ b/examples/authn/go.sum @@ -15,6 +15,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -25,6 +27,8 @@ golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -32,4 +36,6 @@ golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/examples/authz/go.mod b/examples/authz/go.mod index 2ac71fc..f0fc7db 100644 --- a/examples/authz/go.mod +++ b/examples/authz/go.mod @@ -2,7 +2,7 @@ module examples/authz go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,7 +10,7 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/authz/go.sum b/examples/authz/go.sum index 865d934..cec0f4c 100644 --- a/examples/authz/go.sum +++ b/examples/authz/go.sum @@ -15,6 +15,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -28,4 +30,6 @@ golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/examples/embargo/go.mod b/examples/embargo/go.mod index 7c8adb7..ca73fc0 100644 --- a/examples/embargo/go.mod +++ b/examples/embargo/go.mod @@ -2,7 +2,7 @@ module examples/embargo go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,7 +10,7 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/embargo/go.sum b/examples/embargo/go.sum index 865d934..cec0f4c 100644 --- a/examples/embargo/go.sum +++ b/examples/embargo/go.sum @@ -15,6 +15,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -28,4 +30,6 @@ golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/examples/file_scan/go.mod b/examples/file_scan/go.mod index eac50ca..19cc7fd 100644 --- a/examples/file_scan/go.mod +++ b/examples/file_scan/go.mod @@ -2,7 +2,7 @@ module examples/file_scan go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,7 +10,7 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/file_scan/go.sum b/examples/file_scan/go.sum index 865d934..cec0f4c 100644 --- a/examples/file_scan/go.sum +++ b/examples/file_scan/go.sum @@ -15,6 +15,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -28,4 +30,6 @@ golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/examples/intel/go.mod b/examples/intel/go.mod index 4d00451..9555ad3 100644 --- a/examples/intel/go.mod +++ b/examples/intel/go.mod @@ -2,7 +2,7 @@ module examples/intel go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,7 +10,7 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/intel/go.sum b/examples/intel/go.sum index 865d934..cec0f4c 100644 --- a/examples/intel/go.sum +++ b/examples/intel/go.sum @@ -15,6 +15,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= @@ -28,4 +30,6 @@ golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/examples/redact/go.mod b/examples/redact/go.mod index fc954e1..b3158be 100644 --- a/examples/redact/go.mod +++ b/examples/redact/go.mod @@ -2,7 +2,7 @@ module examples/redact go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,7 +10,7 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/redact/go.sum b/examples/redact/go.sum index a20ba8f..0f94d59 100644 --- a/examples/redact/go.sum +++ b/examples/redact/go.sum @@ -18,6 +18,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -33,5 +35,7 @@ golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/examples/sanitize/go.mod b/examples/sanitize/go.mod index dcc493a..faedfbc 100644 --- a/examples/sanitize/go.mod +++ b/examples/sanitize/go.mod @@ -2,7 +2,7 @@ module examples/sanitize go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,5 +10,5 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) diff --git a/examples/sanitize/go.sum b/examples/sanitize/go.sum index 9a91f6c..1ec1276 100644 --- a/examples/sanitize/go.sum +++ b/examples/sanitize/go.sum @@ -18,6 +18,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -31,5 +33,7 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/examples/share/go.mod b/examples/share/go.mod index e2c3764..4d7b805 100644 --- a/examples/share/go.mod +++ b/examples/share/go.mod @@ -3,7 +3,7 @@ module examples/share go 1.22 require ( - github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 + github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 github.com/spf13/cobra v1.8.1 ) @@ -15,7 +15,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/share/go.sum b/examples/share/go.sum index 9a5a770..b9240c9 100644 --- a/examples/share/go.sum +++ b/examples/share/go.sum @@ -21,6 +21,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -39,6 +41,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/examples/vault/go.mod b/examples/vault/go.mod index 9c390c0..361a12c 100644 --- a/examples/vault/go.mod +++ b/examples/vault/go.mod @@ -2,7 +2,7 @@ module examples/vault go 1.22 -require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 +require github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -10,8 +10,8 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/rs/zerolog v1.33.0 // indirect - golang.org/x/crypto v0.28.0 // indirect - golang.org/x/sys v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect + golang.org/x/sys v0.28.0 // indirect ) replace github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.0.0 => ../../pangea-sdk diff --git a/examples/vault/go.sum b/examples/vault/go.sum index ff61424..6fe2463 100644 --- a/examples/vault/go.sum +++ b/examples/vault/go.sum @@ -18,6 +18,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0 h1:GbwAZyhNqUph/n/tvxaCyna+sVOojJsiXFe7PkbR7t8= github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.1.0/go.mod h1:5XIW52PITcGiggsoSVoFstTlF/5cU51sywvBD5gB6pk= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0 h1:I4q328wC8+Wboe013JHPgMsEbZwmziSGCpOl/1WbSTM= +github.com/pangeacyber/pangea-go/pangea-sdk/v4 v4.2.0/go.mod h1:DDAi1j9BR9Jni8Jv9UVueYpxjHA5+Dj27RjPR+PD3wQ= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -30,6 +32,8 @@ golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -37,6 +41,8 @@ golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= From 636e95c43ddea1f9bd954c7baa5425a830fb47ed Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 25 Dec 2024 19:20:06 +0000 Subject: [PATCH 21/24] chore(deps): update golang:1.22-bullseye docker digest to a9b190c --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0cfc721..8362445 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ default: - image: golang:1.22-bullseye@sha256:1e3e0cdab013c62de8c3f4fe942138255e6a367b90079220ed6f3853a34329ff + image: golang:1.22-bullseye@sha256:a9b190c782f8cb3f94b851d3554f28c2f50b7659db63104f373b5b4d9cbfe152 tags: - pangea-internal From 2a10b9e22eddcc8a7feab143f0b096cdf9d09fc1 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Mon, 30 Dec 2024 11:30:59 -0500 Subject: [PATCH 22/24] Add `file_ttl` support to Secure Share --- CHANGELOG.md | 4 ++++ go.work.sum | 1 + pangea-sdk/service/share/api.go | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d352cc7..e4eca46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- `file_ttl` support to Secure Share. + ## 4.2.0 - 2024-12-18 ### Added diff --git a/go.work.sum b/go.work.sum index 34b2512..10d32e1 100644 --- a/go.work.sum +++ b/go.work.sum @@ -15,6 +15,7 @@ golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/pangea-sdk/service/share/api.go b/pangea-sdk/service/share/api.go index d31e12f..d03bf5f 100644 --- a/pangea-sdk/service/share/api.go +++ b/pangea-sdk/service/share/api.go @@ -81,6 +81,9 @@ type ItemData struct { BillableSize int `json:"billable_size"` // The number of billable bytes (includes Metadata, Tags, etc.) for the object. CreatedAt string `json:"created_at"` // The date and time the object was created. ExternalBucketKey string `json:"external_bucket_key"` // The key in the external bucket that contains this file. + FileTTL string `json:"file_ttl,omitempty"` // The explicit file TTL setting for this object. + FileTTLEffective string `json:"file_ttl_effective,omitempty"` // The effective file TTL setting for this object, either explicitly set or inherited (see file_ttl_from_id.) + FileTTLFromID string `json:"file_ttl_from_id,omitempty"` // The ID of the object the expiry / TTL is set from. Either a service configuration, the object itself, or a parent folder. Folder string `json:"folder"` // The full path to the folder the object is stored in. ID string `json:"id"` // The ID of a stored object. MD5 string `json:"md5"` // The MD5 hash of the file contents. Cannot be written to. @@ -146,6 +149,7 @@ type FolderCreateRequest struct { pangea.BaseRequest Name string `json:"name,omitempty"` // The name of an object. + FileTTL *string `json:"file_ttl,omitempty"` // Duration until files within this folder are automatically deleted. Metadata Metadata `json:"metadata,omitempty"` // A set of string-based key/value pairs used to provide additional data about an object. ParentID string `json:"parent_id,omitempty"` // The ID of a stored object. Folder string `json:"folder,omitempty"` // The folder to place the folder in. Must match `parent_id` if also set. @@ -226,6 +230,7 @@ type PutRequest struct { MimeType string `json:"mimetype,omitempty"` // The MIME type of the file, which will be verified by the server if provided. Uploads not matching the supplied MIME type will be rejected. ParentID string `json:"parent_id,omitempty"` // The parent ID of the object (a folder). Leave blank to keep in the root folder. Folder string `json:"folder,omitempty"` // The path to the parent folder. Leave blank for the root folder. Path must resolve to `parent_id` if also set. + FileTTL *string `json:"file_ttl,omitempty"` // The TTL before expiry for the file. Password string `json:"password,omitempty"` // An optional password to protect the file with. Downloading the file will require this password. PasswordAlgorithm string `json:"password_algorithm,omitempty"` // An optional password algorithm to protect the file with. See symmetric vault password_algorithm. SHA1 string `json:"sha1,omitempty"` // The hexadecimal-encoded SHA1 hash of the file data, which will be verified by the server if provided. @@ -304,6 +309,7 @@ type UpdateRequest struct { AddPassword string `json:"add_password,omitempty"` // Protect the file with the supplied password. AddPasswordAlgorithm string `json:"add_password_algorithm,omitempty"` // The algorithm to use to password protect the file. AddTags Tags `json:"add_tags,omitempty"` // A list of Tags to add. It is not an error to provide a tag which already exists. + FileTTL *string `json:"file_ttl,omitempty"` // Set the file TTL. Name string `json:"name,omitempty"` // Sets the object's Name. Metadata Metadata `json:"metadata,omitempty"` // Set the object's metadata. RemoveMetadata Metadata `json:"remove_metadata,omitempty"` // A list of metadata key/values to remove in the object. It is not an error for a provided key to not exist. If a provided key exists but doesn't match the provided value, it will not be removed. From 3920aafe5582c02ed96537aa7a52791409974ed0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:29:14 +0000 Subject: [PATCH 23/24] fix(deps): update module golang.org/x/crypto to v0.32.0 --- pangea-sdk/go.mod | 4 ++-- pangea-sdk/go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pangea-sdk/go.mod b/pangea-sdk/go.mod index c6c0ed2..df449b9 100644 --- a/pangea-sdk/go.mod +++ b/pangea-sdk/go.mod @@ -6,7 +6,7 @@ require ( github.com/hashicorp/go-retryablehttp v0.7.7 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.10.0 - golang.org/x/crypto v0.31.0 + golang.org/x/crypto v0.32.0 ) require ( @@ -15,6 +15,6 @@ require ( github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/sys v0.28.0 // indirect + golang.org/x/sys v0.29.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/pangea-sdk/go.sum b/pangea-sdk/go.sum index 0e6bc58..5309acf 100644 --- a/pangea-sdk/go.sum +++ b/pangea-sdk/go.sum @@ -34,6 +34,8 @@ golang.org/x/crypto v0.30.0 h1:RwoQn3GkWiMkzlX562cLB7OxWvjH1L8xutO2WoJcRoY= golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -43,6 +45,8 @@ golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= +golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= From 937e1b00d986682f10bf2c599e15b4dc5b09f27e Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Mon, 13 Jan 2025 11:25:01 -0500 Subject: [PATCH 24/24] Publish v4.3.0 --- CHANGELOG.md | 2 ++ pangea-sdk/pangea/pangea.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4eca46..9714fab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 4.3.0 - 2025-01-13 + ### Added - `file_ttl` support to Secure Share. diff --git a/pangea-sdk/pangea/pangea.go b/pangea-sdk/pangea/pangea.go index 7b259a8..22fc22b 100644 --- a/pangea-sdk/pangea/pangea.go +++ b/pangea-sdk/pangea/pangea.go @@ -23,7 +23,7 @@ import ( ) const ( - version = "4.2.0" + version = "4.3.0" pangeaUserAgent = "pangea-go/" + version )