-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Feat(Auth): Authorization by Env Cluster #5302
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
Merged
nobodyiam
merged 26 commits into
apolloconfig:master
from
spaceluke:feat-cluster-authorize-by-env
Jan 18, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2c3923d
feat(auth): finish get/assign/remove web-api and some name generator
spaceluke 0535f95
feat(auth): permissionValidator and Initialization logic finished.
spaceluke 3a1e0f0
feat(auth): sift role initialize from controller to service
spaceluke d37e949
feat(auth): add integration test for checking permission
spaceluke 976a0f5
feat(auth): add unit test for role initialization
spaceluke c14aae7
feat(auth): rename
spaceluke 5998a68
feat(auth): finish Integration Test of Cluster roles management.
spaceluke b677dab
feat(auth): add Licenses
spaceluke 6f40c22
feat(auth): add hasClusterPermission API
spaceluke 82d017a
feat(auth): finish front-end logic
spaceluke 73bf1d7
feat(auth): finish front-end logic
spaceluke 82458af
feat(auth): add i18n
spaceluke 6e2c952
feat(auth): fix unit test
spaceluke 31aed0f
feat(auth): fix unit test
spaceluke 90ffd8b
feat(auth):
spaceluke 0a2822a
feat(auth):
spaceluke a6ccfcf
feat(auth):
spaceluke b650484
chore(auth): rename NamespaceInCluster to NamespacesInCluster
spaceluke 1766f0c
chore(auth): fix some bugs and code style
spaceluke 38464fa
bugfix(auth): fix js call non-exist method
spaceluke 238859f
bugfix(auth): fix i18n ch wrong translation
spaceluke 142b9ef
feat(auth): add cluster_manage page
spaceluke 88ce290
feat(auth): fix some naming error and bugs
spaceluke 4c90c18
feat(auth): rename
spaceluke e0f97fe
docs(auth): add docs for namespace permission management
spaceluke 14691d8
docs(auth): add en docs
spaceluke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ public ConfigsExportController( | |
* application.json | ||
* </pre> | ||
*/ | ||
@PreAuthorize(value = "[email protected](#appId, #env, #namespaceName)") | ||
@PreAuthorize(value = "[email protected](#appId, #env, #clusterName, #namespaceName)") | ||
@GetMapping("/apps/{appId}/envs/{env}/clusters/{clusterName}/namespaces/{namespaceName}/items/export") | ||
public void exportItems(@PathVariable String appId, @PathVariable String env, | ||
@PathVariable String clusterName, @PathVariable String namespaceName, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.