Kunho Lee
9b11b21f00
fix: check err before use schedule and duration ( #20043 )
...
* fix: check err before use schedule and duration
Signed-off-by: daengdaengLee <gunho1020@gmail.com >
* test: add tests for invalid schedule and duration
Signed-off-by: daengdaengLee <gunho1020@gmail.com >
* feat: change to return error when sync window is invalid
Signed-off-by: daengdaengLee <gunho1020@gmail.com >
* fix: use assert.Error or assert.NoError
Signed-off-by: daengdaengLee <gunho1020@gmail.com >
* fix: use require instead of assert
Signed-off-by: daengdaengLee <gunho1020@gmail.com >
---------
Signed-off-by: daengdaengLee <gunho1020@gmail.com >
2024-10-12 13:32:46 -04:00
Matthieu MOREL
1c6ec19a86
fix: use ErrorContains(t, err instead of Contains(t, err.Error() ( #20220 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-10-04 09:36:05 -04:00
Cayde6
eba559a449
feat: option to disable writing k8s events( #18205 ) ( #18441 )
...
* feat: option to disable writing k8s events
optioned to write logs for k8s events.
Each is passed as an environment variable and defaults to true,
disabling it requires explicitly setting the option to false.
Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com >
* feat: option to disable writing k8s events
fix unit test
- application_test
- applicationset_test
- project_test
- appcontroller_tes
- audit_logger_test
Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com >
* rebase
Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com >
---------
Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com >
2024-09-23 08:32:17 +05:30
Cheng Fang
e3e02f0064
chore(lint): errors reported by golangci-lint: S1009: should omit nil check; printf: non-constant format string ( #19773 )
...
Signed-off-by: Cheng Fang <cfang@redhat.com >
Co-authored-by: pasha-codefresh <pavel@codefresh.io >
2024-09-04 14:58:15 +00:00
Matthieu MOREL
c556cf7ea5
chore: enable require-error rule from errorlint linter on server folder ( #18687 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-15 19:13:40 -04:00
Matthieu MOREL
9f1e2e8453
chore: enable gocritic linter ( #18633 )
...
* chore: enable gocritic linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update settings.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update app.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update grpcproxy.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update grpcproxy.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update util.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update server.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update app_management_ns_test.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update app_management_test.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update path_traversal.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update sessionmanager.go
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
* Update .golangci.yaml
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
---------
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-13 15:10:00 -04:00
Matthieu MOREL
7cf5ed06d4
chore: enable gofumpt and whitespace linters ( #18567 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-11 15:41:55 +00:00
Matthieu MOREL
4a01f8a69a
chore: enable expected-actual rule from testifylint linter ( #18575 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-10 20:33:00 +00:00
Matthieu MOREL
32519c70a5
chore: enable error-nil rule from testifylint linter ( #18544 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-10 10:38:55 -04:00
Matthieu MOREL
44b8dc1a4c
chore: enable len and empty rules from testifylint linter ( #18516 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-06-07 15:12:50 -04:00
Bulat Saifullin
fcdaee9857
fix: jwtTokens are reset when creating new tokens for new role ( #17298 )
...
* fix: jwtTokens are reset when creating new tokens for new role
Signed-off-by: Bulat Saifullin <bulat@saifullin.ru >
* add back NormalizeJWTTokens
Signed-off-by: Bulat Saifullin <bulat@saifullin.ru >
* add tests
Signed-off-by: BulatSaif <bulat@parity.io >
* add fix
Signed-off-by: BulatSaif <bulat@parity.io >
---------
Signed-off-by: Bulat Saifullin <bulat@saifullin.ru >
Signed-off-by: BulatSaif <bulat@parity.io >
Co-authored-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com >
2024-04-24 17:16:09 +05:30
Bryce Lowe
c2dfab5560
fix: update rbac validation to support applications in different namespaces ( #17777 )
...
* fix: policies in namespaces
The introduction of applications in any namespace doesn't appear to include support for specifying namespaces in rbac policy objects. This causes valid rbac objects (like `some-project/some-namespace/some-application`) to fail when they are really valid. Update the regex to include the ability to specify a namespace.
Signed-off-by: Bryce Lowe <blowe@patreon.com >
* fix: update verbiage of failing test
Signed-off-by: Bryce Lowe <blowe@patreon.com >
* feedback: test for policy and project
Signed-off-by: Bryce Lowe <blowe@patreon.com >
* fix: update test name
Signed-off-by: Bryce Lowe <blowe@patreon.com >
---------
Signed-off-by: Bryce Lowe <blowe@patreon.com >
2024-04-09 21:52:54 -04:00
Soumya Ghosh Dastidar
a610fc159a
feat: allow access to cluster and project resources in app/resource deep links ( #12931 )
...
* feat: allow access to cluster and project resources too in deep links
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: improve cluster data sanitization
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* docs: updated docs for deeplinks improvements
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: resolved review comments
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: add rbac enforcement for cluster and project
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
---------
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
2023-03-22 16:37:52 -04:00
Michael Crenshaw
bfc381e03b
feat: add 'user' field to audit logs ( #12644 )
...
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2023-03-16 22:20:10 +02:00
Fish-pro
57d01a472c
chore: use format to replace fmt in log output ( #11854 )
...
Signed-off-by: chen zechun <zechun.chen@daocloud.io >
Signed-off-by: chen zechun <zechun.chen@daocloud.io >
2023-01-10 15:35:12 -05:00
Ishita Sequeira
c6fa942e94
feat: Multiple sources for applications ( #2789 ) ( #10432 )
...
* feat: support multiple sources for application
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
remove debug logging and unwanted code
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
fix lint and unit test errors
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
fix lint and unit test errors
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix bug introduced after rebase
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
executed make codegen
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* rebase with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
remove unwanted logging
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
fix ci failures
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix index out of bounds error
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* ui fixes
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev >
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add revisions to SyncOperation for rollback
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* change Source to *ApplicationSource in ApplicationSpec
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix env variable read logic for ValueFiles
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* update multiple sources doc
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add repository lock and checkout target revision
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
fix codegen
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* checkout all sources before generating manifest
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
generate mock reposerverclient
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* update logic for returning ManifestResponse to avoid nil pointer issues
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix nil reference and key mismatch bugs; add more logs (#6 )
* fix nil reference and key mismatch bugs; add more logs
* remove temporary comment
* addressed the lint failure and added chart to RefTargeRevisionMapping
* normalize git repo (#7 )
* do not leak lock releases
* prevent deadlock
* allow spec update
* move settings fetch outside loop
* cache busing
* return err instead of logging it
* no caching in test
* fix cache key marshaling
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Rebase with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* update grpc field numbers
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* path resolution tests (#12 )
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
do things in better ways
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
consolidate
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add regex check for value of source.ref
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add webhook tests
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
change Source to *ApplicationSource in ApplicationSpec
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
address PR comments
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
rebase with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Retrigger CI pipeline
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
rebased with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix env variable read logic for ValueFiles
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Address PR comments
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add repository lock and checkout target revision
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
fix codegen
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* checkout all sources before generating manifest
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* generate mock reposerverclient
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* address comments
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* update logic for returning ManifestResponse to avoid nil pointer issues
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix nil reference and key mismatch bugs; add more logs (#6 )
* fix nil reference and key mismatch bugs; add more logs
* remove temporary comment
* addressed the lint failure and added chart to RefTargeRevisionMapping
* normalize git repo (#7 )
* do not leak lock releases
* prevent deadlock
* allow spec update
* move settings fetch outside loop
* cache busing
* return err instead of logging it
* no caching in test
* fix cache key marshaling
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Rebase with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* update grpc field numbers
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add regex check for value of source.ref
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* Rebase with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* Added unit tests (#15 )
* add unit tests 1
* fix lint
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix application parameters tab, rebased UI changes, tests
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* More tests (#16 )
* more tests
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
fix lint error
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Test get ref sources (#17 )
* test GetRefSources
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* fix lint
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Co-authored-by: ishitasequeira <ishiseq29@gmail.com >
GenerateManifests test (#18 )
* GenerateManifests test
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Fix broken tests (#19 )
* fix broken tests
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Symlink test (#20 )
* check referenced sources for out-of-bounds symlinks
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* unlock the values file repo before doing a symlink check (#22 )
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* multi source docs (#21 )
* multi source docs
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* fix warning title
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* clarify
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* clarify
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
* add e2e tests for multiple sources and fix UI lint (#23 )
* add e2e tests for multiple sources and fix UI lint
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add auto-sync and hard refresh to e2e tests
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* change refresh type to RefreshTypeNormal for e2e
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* update e2e testcase with helm data
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add TestMultiSourceAppWithSourceOverride
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* add missing yaml file
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* rebase with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* rebase with master
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
* fix lint
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Signed-off-by: ishitasequeira <ishiseq29@gmail.com >
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev >
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com >
2022-12-16 15:47:08 -05:00
Soumya Ghosh Dastidar
661afe0ad9
feat: added deep links backend changes ( #11401 )
...
* feat: added deep links backend changes
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* fix: add rbac check to list links services
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: removed project param and updated sample config
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
* feat: update sample config
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com >
2022-12-07 11:39:45 -08:00
Jesse Suen
1f0d4cfccc
fix: retry token creation/deletion upon project conflict errors ( #11199 )
...
Signed-off-by: Jesse Suen <jesse@akuity.io >
2022-11-08 13:52:00 -08:00
cristina-lopez
07d1bffb73
chore: update error message to provide context ( #10978 )
...
* updated error message to provide context
Signed-off-by: Cristina Lopez <cristinalopez956@gmail.com >
* updated error message to provide context
Signed-off-by: Cristina Lopez <cristinalopez956@gmail.com >
Signed-off-by: Cristina Lopez <cristinalopez956@gmail.com >
2022-10-19 10:23:04 -04:00
Blake Pettersson
5f3fc68b17
feat: add permitOnlyProjectScopedClusters flag ( #10237 )
...
This commit adds a new flag, `permitOnlyProjectScopedClusters`, which
prevents any application from syncing to clusters which are not a part
of the same project. Fixes #10220 .
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com >
2022-09-08 07:33:10 -04:00
Jake
1be1a0475b
feat: add HTTPS to dex server ( #9424 ) ( #9883 )
...
* feat: add HTTPS support to dex server (#9424 )
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
* refactor transports, add v2.5 to docs, other small nits
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
* use OIDCTLSConfig in session manager
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
* update tls to use os instead of ioutil (but really this is just me trying to get CICD to work)
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
* cleanup and nits
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
* fix tests after merge
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
* fix tests
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
* nit
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com >
2022-07-13 16:45:35 -04:00
Alexander Matyushentsev
8be24f577f
chore: remove unused protobuf imports - part 2 ( #8899 )
...
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
2022-03-25 13:26:30 -04:00
Yuan Tang
d6f3f87c69
chore: Migrate to use golang-jwt/jwt v4.2.0 ( #8136 )
...
chore: Migrate to use golang-jwt/jwt v4.2.0 (#8136 )
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com >
2022-01-13 13:12:21 -08:00
Yuan Tang
e0c9827a37
chore: Correct function names in docstring in server/project/project.go ( #7650 )
...
* docs: Correct function names in docstring in server/project/project.go
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com >
2021-11-08 09:48:28 -08:00
pasha-codefresh
17e6ebdce1
feat: show difference in repos that exist and that should be changed ( #7224 )
...
* show difference in repos that exist and that should be changed
Signed-off-by: pashavictorovich <pavel@codefresh.io >
2021-09-16 08:02:50 -07:00
pasha-codefresh
49a854a738
feat: Scoped clusters ( #7039 )
...
feat: Scoped clusters (#7039 )
Signed-off-by: pashavictorovich <pavel@codefresh.io >
2021-08-25 09:53:58 -07:00
Yuan Tang
d3fb6fb7db
chore: Update to use NewSharedInformerFactoryWithOptions due to deprecation ( #7009 )
...
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com >
2021-08-17 21:23:13 +02:00
pasha-codefresh
7b89c4e53c
feat: Project scoped repo ( #6943 )
...
feat: Project scoped repo (#6943 )
Signed-off-by: pashavictorovich <pavel@codefresh.io >
2021-08-16 09:38:37 -07:00
Shoubhik Bose
cc4eea0d69
chore: Organize Application-related defaults/constants in the Application API's package. ( #5893 )
...
chore: Organize Application-related defaults/constants in the Application API's package. (#5893 )
Signed-off-by: Shoubhik Bose <shbose@redhat.com >
2021-05-19 12:43:04 -07:00
jannfis
ae49b45249
chore: Upgrade Go module to v2 ( #5931 )
...
* chore: Upgrade Go module to v2
Signed-off-by: jannfis <jann@mistrust.net >
* Restore import order
Signed-off-by: jannfis <jann@mistrust.net >
* fix knowntypes_normalizer codegen error
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
* fix codegen
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
* fix Procfile
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
2021-04-01 20:44:18 +02:00
Alexander Matyushentsev
0ccd573229
feat: regenerate active users token if it is expiring soon ( #5629 )
...
* feat: regenerate active users token if it is expiring soon
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
* Comment how 'renew-token' header is used
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
2021-03-02 18:24:22 -08:00
Alexander Matyushentsev
6e2ee623f8
feat: support token revocation ( #5477 )
...
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
2021-02-16 10:33:40 -08:00
kshamajain99
d9e9a9939d
fix: disable jwt claim audience validation #5381 ( #5413 )
...
* fix: disable audience validation
Signed-off-by: kshamajain99 <kshamajain99@gmail.com >
* update other places
Signed-off-by: kshamajain99 <kshamajain99@gmail.com >
2021-02-04 16:38:12 -08:00
Alexander Matyushentsev
a85f8e89f5
fix: a request which was using a revoked project token, would still be allowed to perform requests allowed by default policy ( #5378 )
...
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
2021-02-02 15:26:20 -08:00
jannfis
ae6b8241d5
fix: Prevent possible nil pointer dereference in project API ( #5263 )
...
Signed-off-by: jannfis <jann@mistrust.net >
2021-01-17 22:38:14 -08:00
jannfis
b314824e31
chore: Upgrade jwt-go to 4.0.0-preview1 ( #5184 )
...
Signed-off-by: jannfis <jann@mistrust.net >
2021-01-05 19:12:50 +01:00
May Zhang
3d39accdb2
feat: Global Project UI ( #4587 )
...
* feat: Global Project UI
* feat: fixing compile error
* feat: rename import
* feat: Fixing TypeError: Cannot read property 'spec' of undefined when editing existing fields of project.
* feat: Fixing lint error.
* feat: Fixed issue when editing project fields, virtual project had stale info
* feat: fixing lint
* feat: add GetGlobalProjects
* feat: fixing swagger conflict.
* feat: fixing undefined.
* feat: update swagger.json
* feat: update doc
* feat: update doc
* feat: update doc with version number
* Load project and global projects in parallel
* feat: hide global project info.
* feat: lint
* feat: fixed edit issue
* feat: dedup
* feat: fix lint error
Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com >
2020-10-26 10:39:39 -07:00
Josh Soref
5db8d97bf0
chore: Update swagger docs ( #4610 ) ( #4616 )
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
2020-10-20 20:28:57 +02:00
Alex Collins
eb0d018c31
chore: Upgrade to pkg v0.2.0 ( #4356 )
2020-09-17 14:05:27 -07:00
Alexander Matyushentsev
016c8b333a
fix: api-server unnecessary normalize projects on every start ( #4219 )
2020-09-01 13:06:11 -07:00
Alexander Matyushentsev
ba71ad934c
refactor: upgrade k8s client to 1.18 ( #4046 )
...
* refactor: upgrade k8s client to 1.18
* remove unnecessary go mod replacements
2020-08-05 11:36:40 -07:00
Darshan Chaudhary
cb7fa39144
feat: add cluster resource blacklist to projects ( #3960 )
...
feat: add cluster resource blacklist to projects (#3960 )
Signed-off-by: darshanime <deathbullet@gmail.com >
2020-08-04 08:06:28 -07:00
rachelwang20
95820cf64f
feat: User can define Orphaned exception avoiding unnecessary warnings ( #3900 )
...
* Include sub and and iat in PermissionDenied message
* iat fromat changing
* Adding MapClaims convertion
* Adding Orphaned exception list
* Adding group kind label
* Fixed lint errors
* Method rename
2020-07-09 16:19:47 -07:00
May Zhang
021b13c660
fix: permission denied due to NormalizeProjs failed to get list of pr… ( #3883 )
...
* fix: permission denied due to NormalizeProjs failed to get list of projects
* fix: permission denied due to NormalizeProjs failed to get list of projects
* fix: return error if normalization failed.
* fix: return error if normalization failed.
* fix: return error if normalization failed.
* fix: in GetJWTToken, remove normalize. It causes issue with delete token.
* Moved get project to only when apierr.IsConflict(err)
2020-07-02 15:31:35 -07:00
May Zhang
7fbf51c346
fix: jwtTokens are reset when applying AppProjects ( #3791 )
...
* jwtTokens are reset when applying AppProjects
* fix unit tests in server_test.go
checking in generated.pb.go
* fix unit tests in rbackpolicy_test.go
* fix yarnl lint errors
* fix delete token in both spec and status
* add tests
* fixing failed test
* fixing failed test
* retry 3 times during update
* renamed CRD fields.
Updated nomalize method.
* fixed UI
* fixing merge conflicts
* fixing merge conflicts
* removed unused variables in UI
renamed a CRD field
updated combineToken logic using map
* Only update project which needs normalize token.
* Changed logging.
* check for nil
* Fix UI
* added project role get tests
* rename variables
* clean up
* fixing failed tests
* fixing failed tests
* fixing error handling for remove token
* log err when we have retried 3 times
* sort tokens
* sort tokens
2020-06-25 15:11:24 -07:00
jannfis
bc83719037
chore: Fix complaints of golang-ci lint v1.26.0 ( #3673 )
2020-05-30 18:54:14 -07:00
Josh Soref
a724574ede
chore: Spelling ( #3647 )
...
chore: Spelling (#3647 )
2020-05-27 10:22:13 -07:00
Phil Gore
8aadc310c9
fix: apply scopes from argocd-rbac-cm to project jwt group searches ( #3508 )
...
* merging changes
* apply scopes from argocd-rbac-cm to projects
* fixing server merge conflict
* passing tests
2020-05-25 09:05:56 +02:00
jannfis
76bacfdea4
fix: Add initial implementation for rate limiting failed logins ( #3404 )
...
* fix: Add initial implementation for rate limiting failed logins
* Trigger test build
* Remove deprecated code and fix new project tests
* move cache related code from sessionmanager to cache access wrapper
* avoid using sleep in sessionmanager tests
* mention SECONDS in session manager environment variables to make it easier to understand meaning of each variable
* Login button should be disabled while user is waiting for login result
* prevent timing-based user enumeration attack
* reject too many failed attempts; always compute hash and introduce random delay
* remove unused constants
* fix linter errors
Co-authored-by: Alexander Matyushentsev <amatyushentsev@gmail.com >
2020-04-21 11:10:25 -07:00
jannfis
8ad928330f
chore: Fix a bunch of lint issues ( #3412 )
...
* chore: Fix linter complaints
2020-04-14 08:01:43 -07:00