Skip to content

Commit

Permalink
Update just-in-time access integration (#630)
Browse files Browse the repository at this point in the history
* updated Common Fate integration - initial WIP prototype

* implementation updates

* implementation updates

* cleanup profile registry implementation to allow for pluggable registry backends

* cleanup profile registry implementation to allow for pluggable registry backends

* cleanup unused var

* fix lint

* fix build

* cleanup whitespace

* Add 'type' flag back in for profile registry

This reverts commit 862e2f1.

* add API-backed registry initial implementation

* add access request hook

* remove unused variable

* revert session credential storage fix (moved to a separate PR)

* remove WIP 'request' command

* remove rpc registry from working branch

* remove request integration inside of credential process

* support 'common_fate_url' key in profile to configure URL for requesting access against, handle case where user is unauthenticated

* bump to go 1.22
  • Loading branch information
chrnorm authored Apr 8, 2024
1 parent fa945c3 commit 10143d5
Show file tree
Hide file tree
Showing 16 changed files with 540 additions and 336 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.19.2"
go-version: "1.22.1"
- name: Build All Platforms
run: make ci-cli-all-platforms
# Upload the built binaries to use in later tests on each platform
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.22.1
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
35 changes: 22 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/common-fate/granted

go 1.19
go 1.22.0

require (
github.com/99designs/keyring v1.2.2
Expand All @@ -14,55 +14,64 @@ require (
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/pkg/errors v0.9.1
github.com/segmentio/ksuid v1.0.4
github.com/urfave/cli/v2 v2.24.1
github.com/urfave/cli/v2 v2.25.7
)

require (
connectrpc.com/connect v1.14.0
github.com/alessio/shellescape v1.4.2
github.com/briandowns/spinner v1.23.0
github.com/common-fate/cli v1.8.0
github.com/common-fate/clio v1.2.3
github.com/common-fate/common-fate v0.15.13
github.com/common-fate/glide-cli v0.5.0
github.com/fatih/color v1.13.0
github.com/common-fate/glide-cli v0.6.0
github.com/common-fate/sdk v1.20.1-0.20240406134835-b39ee0bccd2f
github.com/fatih/color v1.16.0
github.com/lithammer/fuzzysearch v1.1.5
github.com/schollz/progressbar/v3 v3.13.1
go.uber.org/zap v1.23.0
go.uber.org/zap v1.26.0
google.golang.org/protobuf v1.33.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect
github.com/benbjohnson/clock v1.3.5 // indirect
github.com/common-fate/grab v1.3.0 // indirect
github.com/common-fate/iso8601 v1.1.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deepmap/oapi-codegen v1.11.0 // indirect
github.com/getkin/kin-openapi v0.107.0 // indirect
github.com/go-chi/chi/v5 v5.0.7 // indirect
github.com/go-chi/chi/v5 v5.0.10 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/gorilla/schema v1.2.0 // indirect
github.com/gorilla/securecookie v1.1.1 // indirect
github.com/invopop/yaml v0.2.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/muhlemmer/gu v0.3.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
github.com/zitadel/oidc/v2 v2.12.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/oauth2 v0.16.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
)

require (
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/BurntSushi/toml v1.2.1
github.com/BurntSushi/toml v1.3.2
github.com/aws/aws-sdk-go-v2/credentials v1.16.5
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.5 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 // indirect
Expand All @@ -83,14 +92,14 @@ require (
github.com/joho/godotenv v1.4.0
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-isatty v0.0.20
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/olekukonko/tablewriter v0.0.5
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/testify v1.8.4
go.uber.org/ratelimit v0.3.0
golang.org/x/sync v0.1.0
golang.org/x/sync v0.5.0
golang.org/x/sys v0.16.0
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0
Expand Down
Loading

0 comments on commit 10143d5

Please sign in to comment.