Skip to content

Commit e0e7999

Browse files
fix: Fix permissions with or mode (#89)
* fix: Or mode no permissions set failure * Changelog * Set versions a bit higher than 14 * fix: Deal with a golang compiler quirk
1 parent d5c7098 commit e0e7999

8 files changed

Lines changed: 749 additions & 94 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: ["1.14"] # Add more Golang versions if needed
7+
go-version: ["1.19", "1.20", "1.21"] # Add more Golang versions if needed
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Install Go

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [4.1.3]
10+
11+
### Added
12+
13+
### Fixed
14+
- when using Or Mode, when no permissions were set access was denied
15+
16+
### Removed
17+
18+
## [4.1.2]
19+
920
### Added
1021
- Adding back old upsertPipeline implementation.
1122
- To be used in ff logic in dinghy.

client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,6 @@ func (c *Client) UseGateEndpoints() {
318318
}
319319
func (c *Client) UseServiceEndpoints() {
320320
c.UseGate = false
321-
}
321+
}
322+
323+
//Yes a blank sorta line has to be here. Bug in golang

go.mod

Lines changed: 60 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,65 @@
11
module github.com/armory/plank/v4
22

33
require (
4-
github.com/armory/go-yaml-tools v0.0.0-20180620164822-5d0947924d8e
5-
github.com/davecgh/go-spew v1.1.0 // indirect
6-
github.com/imdario/mergo v0.3.5 // indirect
7-
github.com/mitchellh/mapstructure v0.0.0-20180511142126-bb74f1db0675
8-
github.com/onsi/ginkgo v1.7.0 // indirect
9-
github.com/onsi/gomega v1.4.3 // indirect
10-
github.com/pmezard/go-difflib v1.0.0 // indirect
11-
github.com/sirupsen/logrus v1.0.5 // indirect
12-
github.com/spf13/afero v1.1.1 // indirect
13-
github.com/stretchr/testify v1.2.2
14-
golang.org/x/crypto v0.0.0-20180619200235-7f39a6fea4fe // indirect
15-
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
16-
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
4+
github.com/armory/go-yaml-tools v1.0.2
5+
github.com/mitchellh/mapstructure v1.5.0
6+
github.com/stretchr/testify v1.8.4
177
)
188

19-
go 1.13
9+
require (
10+
cloud.google.com/go v0.110.9 // indirect
11+
cloud.google.com/go/compute v1.23.1 // indirect
12+
cloud.google.com/go/compute/metadata v0.2.3 // indirect
13+
cloud.google.com/go/iam v1.1.3 // indirect
14+
cloud.google.com/go/storage v1.33.0 // indirect
15+
dario.cat/mergo v1.0.0 // indirect
16+
github.com/aws/aws-sdk-go v1.46.3 // indirect
17+
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
18+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
19+
github.com/fsnotify/fsnotify v1.7.0 // indirect
20+
github.com/go-bongo/go-dotaccess v0.0.0-20190924013105-74ea4f4ca4eb // indirect
21+
github.com/go-jose/go-jose/v3 v3.0.0 // indirect
22+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
23+
github.com/golang/protobuf v1.5.3 // indirect
24+
github.com/google/s2a-go v0.1.7 // indirect
25+
github.com/google/uuid v1.3.1 // indirect
26+
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
27+
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
28+
github.com/hashicorp/errwrap v1.1.0 // indirect
29+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
30+
github.com/hashicorp/go-multierror v1.1.1 // indirect
31+
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
32+
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
33+
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 // indirect
34+
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
35+
github.com/hashicorp/go-sockaddr v1.0.5 // indirect
36+
github.com/hashicorp/hcl v1.0.1-vault-5 // indirect
37+
github.com/hashicorp/vault/api v1.10.0 // indirect
38+
github.com/jmespath/go-jmespath v0.4.0 // indirect
39+
github.com/mitchellh/go-homedir v1.1.0 // indirect
40+
github.com/oleiade/reflections v1.0.1 // indirect
41+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
42+
github.com/ryanuber/go-glob v1.0.0 // indirect
43+
github.com/sirupsen/logrus v1.9.3 // indirect
44+
github.com/spf13/afero v1.10.0 // indirect
45+
go.opencensus.io v0.24.0 // indirect
46+
golang.org/x/crypto v0.14.0 // indirect
47+
golang.org/x/net v0.17.0 // indirect
48+
golang.org/x/oauth2 v0.13.0 // indirect
49+
golang.org/x/sync v0.4.0 // indirect
50+
golang.org/x/sys v0.13.0 // indirect
51+
golang.org/x/text v0.13.0 // indirect
52+
golang.org/x/time v0.3.0 // indirect
53+
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
54+
google.golang.org/api v0.148.0 // indirect
55+
google.golang.org/appengine v1.6.8 // indirect
56+
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect
57+
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
58+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
59+
google.golang.org/grpc v1.59.0 // indirect
60+
google.golang.org/protobuf v1.31.0 // indirect
61+
gopkg.in/yaml.v2 v2.4.0 // indirect
62+
gopkg.in/yaml.v3 v3.0.1 // indirect
63+
)
64+
65+
go 1.21

0 commit comments

Comments
 (0)