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

ft(rbac): Cyclops login page for authentication & Integration of Cerbos for Authorization #361

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
bcb5393
ft(ui): login component need enhancement
siddhantprateek Jun 22, 2024
449260b
ft(ctrl): cerbos resource policies
siddhantprateek Jun 22, 2024
3ef0321
ft(ctrl): login controller
siddhantprateek Jun 22, 2024
9c7a611
ft(ctrl): cerbos resource authorization checks added
siddhantprateek Jun 22, 2024
78087e2
ft(ctrl): cerbos integration added
siddhantprateek Jun 22, 2024
8bcd5d5
added cerbos container for local development
siddhantprateek Jun 22, 2024
0d65d4c
updated dependencies
siddhantprateek Jun 22, 2024
48c6786
Merge branch 'rbac' into main-v2
siddhantprateek Jun 23, 2024
70dcf42
ft(ui): login pages added
siddhantprateek Jun 23, 2024
7c35131
ft(ui): login cleanup
siddhantprateek Jun 23, 2024
7a34d66
ft(ui): auth context provider added
siddhantprateek Jun 23, 2024
64a648e
ft(ui): removed login path constant
siddhantprateek Jun 23, 2024
0f086be
disable authorization feature added
siddhantprateek Jul 15, 2024
32f5558
removed unwanted module imports
siddhantprateek Jul 15, 2024
128c375
consistent env var for authorization
siddhantprateek Jul 23, 2024
0cec1f3
fixed the login error handling
siddhantprateek Jul 23, 2024
0a3231b
cyclops installation - testing rbac image and added cerbos to deploym…
siddhantprateek Jul 26, 2024
6c011a0
disable authorization on both ctrl and ui
siddhantprateek Jul 26, 2024
4568571
disable config in install config and added cerbos to depl
siddhantprateek Jul 26, 2024
c1e2044
checkPermission disable for template added - remove unreliability
siddhantprateek Jul 27, 2024
d999b46
updated cyclops installation
siddhantprateek Jul 27, 2024
d3bc18d
removed authorization variable from runtime
siddhantprateek Jul 27, 2024
e8fec4b
logging to check permission
siddhantprateek Jul 27, 2024
a6be27f
stable docker image and installation config
siddhantprateek Jul 27, 2024
b66b311
removed dedicated service for cerbos pod
siddhantprateek Jul 27, 2024
f5ca6f4
Merge branch 'main' into main-v2
siddhantprateek Jul 29, 2024
acdf917
Added logout button
siddhantprateek Aug 11, 2024
12fa5e8
converted resources and actions to enum
siddhantprateek Aug 11, 2024
8a34d0f
replaced with runtime env configuration
siddhantprateek Aug 11, 2024
490d4e1
Merge branch 'main' into main-v2
siddhantprateek Aug 11, 2024
a3b0bcb
updated go dependencies
siddhantprateek Aug 11, 2024
4ec2f4d
login page revamp
petar-cvit Aug 14, 2024
99e6280
update login logo
petar-cvit Aug 14, 2024
ee54ef7
replace href with navigate
petar-cvit Aug 14, 2024
3cb8f96
no repeat background
petar-cvit Aug 14, 2024
0ce6b17
remove redis from docker compose
petar-cvit Aug 14, 2024
3eb3798
Merge branch 'cyclops-ui:main' into main-v2
siddhantprateek Aug 24, 2024
24a53c6
error message
siddhantprateek Aug 24, 2024
3afdc00
logout button
siddhantprateek Aug 24, 2024
d88a9ed
fixed the relogin state issue
siddhantprateek Sep 1, 2024
bd39fab
Merge branch 'main' into main-v2
siddhantprateek Sep 18, 2024
b3f3a37
Merge branch 'cyclops-ui:main' into main-v2
siddhantprateek Sep 19, 2024
1e267c1
Merge branch 'main' into main-v2
siddhantprateek Oct 6, 2024
2a1ce3e
cerbos conflict fixes with latest changes
siddhantprateek Oct 6, 2024
6d8d4ab
fixed installation merge conflict
siddhantprateek Oct 6, 2024
13fef52
added get role endpoint
siddhantprateek Oct 6, 2024
d91d108
user login and logout feature to header added
siddhantprateek Oct 6, 2024
d645988
removed comments and console logs
siddhantprateek Oct 6, 2024
e47974d
updated error msgs
siddhantprateek Oct 6, 2024
a38b6fb
relogin ui fix
siddhantprateek Oct 7, 2024
a3318d3
Module history conflict replaced with href
siddhantprateek Oct 7, 2024
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
Prev Previous commit
Next Next commit
replace href with navigate
  • Loading branch information
petar-cvit committed Aug 14, 2024
commit ee54ef7e5e87243ca1e6107e9dcdd84448c95a47
19 changes: 12 additions & 7 deletions cyclops-ui/src/components/pages/Modules/Modules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const Modules = () => {
if (resolvedVersion !== "") {
return resolvedVersion;
}
if(version !== ""){
if (version !== "") {
return version;
}
return "main";
Expand All @@ -109,7 +109,11 @@ const Modules = () => {

return filteredData.map((module: any, index) => (
<Col key={index} xs={24} sm={12} md={8} lg={8} xl={6}>
<a href={"/modules/" + module.name}>
<div
onClick={() => {
history("/modules/" + module.name);
}}
>
<Card
title={
<div>
Expand Down Expand Up @@ -143,10 +147,11 @@ const Modules = () => {
}}
>
Repo:
<Link aria-level={3}
href={module.template.repo}
target="_blank"
>
<Link
aria-level={3}
href={module.template.repo}
target="_blank"
>
{" " + module.template.repo}
</Link>
</Col>
Expand Down Expand Up @@ -201,7 +206,7 @@ const Modules = () => {
</Col>
</Row>
</Card>
</a>
</div>
</Col>
));
};
Expand Down
Loading