Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to create tokens #498

Merged
merged 43 commits into from
Aug 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
ed0177f
WIP[SPIKE]: Create project token and policies
dthomson25 Jul 23, 2018
63fecea
Accept proj tokens based on createdAt time
dthomson25 Jul 28, 2018
e8c18a0
Modify CLI to have token subcommand
dthomson25 Jul 29, 2018
66b5beb
Add tests for create token and create token Policies
dthomson25 Jul 30, 2018
8de9f28
Push all create token logic server side
dthomson25 Jul 30, 2018
b77b745
Refactor create policy token to use update endpoint
dthomson25 Aug 1, 2018
1d2f846
Add Policy delete and token delete cli commands
dthomson25 Aug 2, 2018
c72fab0
Add policy validation
dthomson25 Aug 2, 2018
f5f5973
Fix broken tests
dthomson25 Aug 6, 2018
94eaf6f
Refactor token to use more generic role
dthomson25 Aug 6, 2018
ba92991
Move argocd specific enforcement to projects server
dthomson25 Aug 7, 2018
e307e40
Refactor cli to leverage roles instead of tokens
dthomson25 Aug 7, 2018
0c0b60a
Remove RoleMetadata to only use JwtToken
dthomson25 Aug 8, 2018
c8b9c72
Move argocd specific rbac impl to server
dthomson25 Aug 8, 2018
49bb3ba
Restrict tokens to applications instead of projects
dthomson25 Aug 8, 2018
07e94dd
Move GetRoleIndexByName to a util lib
dthomson25 Aug 8, 2018
369c6a1
Add create/delete role commands to project cli
dthomson25 Aug 8, 2018
46ee59e
Refactor project errors to send status instead of regular errors
dthomson25 Aug 8, 2018
4c8c3b7
Fix formating
dthomson25 Aug 8, 2018
ec0fee6
Add ability to stop multiple tokens
dthomson25 Aug 9, 2018
4a91e71
Add expiresAt field to JwtToken
dthomson25 Aug 9, 2018
3af90e9
Add explicit deny to project tokens
dthomson25 Aug 9, 2018
55a5251
Add defaultEnforcer func to e2e tests
dthomson25 Aug 9, 2018
879dca8
Use argoproj time lib to enter time
dthomson25 Aug 13, 2018
6299abc
Renew JwtToken to JWTToken to find golang standard
dthomson25 Aug 13, 2018
fdb6a40
Refactor create/delete token api
dthomson25 Aug 13, 2018
84a377e
Rename imports to not use camelCase
dthomson25 Aug 13, 2018
28188f5
Remove missed created_at
dthomson25 Aug 13, 2018
37c1036
Reorder imports to fix style convention
dthomson25 Aug 13, 2018
3640cd1
Refactor out GetInt64Field
dthomson25 Aug 13, 2018
8b866ae
Add Expires at to role list
dthomson25 Aug 13, 2018
72eefaf
Make error message more clear
dthomson25 Aug 13, 2018
e810855
Add comment to policy in types.go
dthomson25 Aug 13, 2018
7f1722f
Make create/delete token idempotent
dthomson25 Aug 13, 2018
51c3209
Refactor all role commands into single method
dthomson25 Aug 14, 2018
b387c23
Fix typos
dthomson25 Aug 14, 2018
2841b89
Refactor to make errors cleaner
dthomson25 Aug 14, 2018
b2218a4
Rerun dep ensure after upgrading v5
dthomson25 Aug 14, 2018
3d390f2
Rename cli variable for better consistency
dthomson25 Aug 14, 2018
b394685
Remove duplicate validation in CLI
dthomson25 Aug 14, 2018
b90118e
Add description to the role
dthomson25 Aug 14, 2018
d6d5fce
Refactor CLI to getting role cleaner
dthomson25 Aug 14, 2018
1a9d159
Humanize IssueAt and ExpiredAt values in CLI
dthomson25 Aug 14, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Gopkg.lock

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

2 changes: 2 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ required = [
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger",
"github.com/golang/protobuf/protoc-gen-go",
"golang.org/x/tools/cmd/cover",
"github.com/argoproj/pkg/time",
"github.com/dustin/go-humanize",
]

[[constraint]]
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
controller: go run ./cmd/argocd-application-controller/main.go
api-server: go run ./cmd/argocd-server/main.go --insecure --disable-auth
api-server: go run ./cmd/argocd-server/main.go --insecure
repo-server: go run ./cmd/argocd-repo-server/main.go --loglevel debug
dex: sh -c "go run ./cmd/argocd-util/main.go gendexcfg -o `pwd`/dist/dex.yaml && docker run --rm -p 5556:5556 -p 5557:5557 -v `pwd`/dist/dex.yaml:/dex.yaml quay.io/coreos/dex:v2.10.0 serve /dex.yaml"
Loading