Skip to content

Commit

Permalink
make gen changes prior to staging release
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambrt committed Jun 8, 2021
1 parent 0b819d2 commit aa41676
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 24 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ require (
github.com/pires/go-proxyproto v0.5.0
github.com/pkg/errors v0.9.1
github.com/posener/complete v1.2.3
github.com/spf13/cobra v1.1.1 // indirect
github.com/stretchr/testify v1.7.0
github.com/zalando/go-keyring v0.1.1
go.uber.org/atomic v1.7.0
Expand All @@ -64,6 +65,7 @@ require (
google.golang.org/grpc v1.37.1
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0
google.golang.org/protobuf v1.26.0
gopkg.in/yaml.v2 v2.4.0 // indirect
mvdan.cc/gofumpt v0.1.1
nhooyr.io/websocket v1.8.7
)
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,9 @@ github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cobra v0.0.2-0.20171109065643-2da4a54c5cee/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/cobra v1.0.1-0.20201006035406-b97b5ead31f7 h1:O63eWlXlvyw4YdsuatjRIU6emvJ2fqz+PTdMEoxIT2s=
github.com/spf13/cobra v1.0.1-0.20201006035406-b97b5ead31f7/go.mod h1:yk5b0mALVusDL5fMM6Rd1wgnoO5jUPhwsQ6LQAJTidQ=
github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4=
github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI=
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/pflag v1.0.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
Expand Down Expand Up @@ -1436,8 +1437,9 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
Expand Down

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

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

11 changes: 6 additions & 5 deletions internal/observability/event/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ import (

const apiRequest = "APIRequest"

const testAuditVersion = "v0.1"
const testErrorVersion = "v0.1"
const testObservationVersion = "v0.1"
const (
testAuditVersion = "v0.1"
testErrorVersion = "v0.1"
testObservationVersion = "v0.1"
)

type testAudit struct {
Id string `json:"id"` // std audit/boundary field
Expand Down Expand Up @@ -855,7 +857,7 @@ func Test_WriteError(t *testing.T) {
}
event.WriteError(tt.ctx, event.Op(op), tt.e)
if tt.errSinkFileName != "" {
defer func() { _ = os.WriteFile(tt.errSinkFileName, nil, 0666) }()
defer func() { _ = os.WriteFile(tt.errSinkFileName, nil, 0o666) }()
b, err := ioutil.ReadFile(tt.errSinkFileName)
require.NoError(err)

Expand Down Expand Up @@ -891,7 +893,6 @@ func Test_WriteError(t *testing.T) {
}
if tt.info != nil {
wantError.Payload["request_info"] = tt.info

}
wantJson, err := json.Marshal(wantError)
require.NoError(err)
Expand Down
22 changes: 7 additions & 15 deletions website/content/docs/concepts/security/permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,7 @@ documentation](https://www.boundaryproject.io/api-docs) for guidance.
</li>
</ul>
<li>
<code>set-password</code>: Set a password on an account, without
requiring the current password
<code>set-password</code>: Set a password on an account, without requiring the current password
</li>
<ul>
<li>
Expand All @@ -473,17 +472,14 @@ documentation](https://www.boundaryproject.io/api-docs) for guidance.
</li>
</ul>
<li>
<code>change-password</code>: Change a password on an account given
the current password
<code>change-password</code>: Change a password on an account given the current password
</li>
<ul>
<li>
<code>id=&lt;id&gt;;actions=change-password</code>
</li>
<li>
<code>
id=&lt;pin&gt;;type=&lt;type&gt;;actions=change-password
</code>
<code>id=&lt;pin&gt;;type=&lt;type&gt;;actions=change-password</code>
</li>
</ul>
</ul>
Expand Down Expand Up @@ -1316,8 +1312,7 @@ documentation](https://www.boundaryproject.io/api-docs) for guidance.
</li>
</ul>
<li>
<code>set-principals</code>: Set the full set of principals on a
role
<code>set-principals</code>: Set the full set of principals on a role
</li>
<ul>
<li>
Expand Down Expand Up @@ -1522,17 +1517,15 @@ documentation](https://www.boundaryproject.io/api-docs) for guidance.
</li>
</ul>
<li>
<code>read:self</code>: Read a session, which must be associated
with the calling user
<code>read:self</code>: Read a session, which must be associated with the calling user
</li>
<ul>
<li>
<code>id=*;type=session;actions=read:self</code>
</li>
</ul>
<li>
<code>cancel:self</code>: Cancel a session, which must be associated
with the calling user
<code>cancel:self</code>: Cancel a session, which must be associated with the calling user
</li>
<ul>
<li>
Expand Down Expand Up @@ -1638,8 +1631,7 @@ documentation](https://www.boundaryproject.io/api-docs) for guidance.
</li>
</ul>
<li>
<code>set-host-sets</code>: Set the full set of host sets on a
target
<code>set-host-sets</code>: Set the full set of host sets on a target
</li>
<ul>
<li>
Expand Down

0 comments on commit aa41676

Please sign in to comment.