Skip to content

Auth refactoring #903

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
merged 126 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
861e1a7
Minor
artem-v Feb 12, 2025
0cebc0f
Minor
artem-v Feb 12, 2025
aebfa1e
Added scalecube-security-vault
artem-v Feb 12, 2025
71aaa23
Enhanced Secured annotation with roles and permissions attributes
artem-v Feb 12, 2025
12bac1a
WIP
artem-v Feb 12, 2025
94f75d3
WIP
artem-v Feb 12, 2025
6cf71d2
WIP
artem-v Feb 12, 2025
2f046e4
WIP
artem-v Feb 12, 2025
e89a50e
WIP
artem-v Feb 12, 2025
460c217
WIP
artem-v Feb 13, 2025
89f5ce4
WIP
artem-v Feb 14, 2025
18a750b
WIP
artem-v Feb 14, 2025
7e378d2
WIP
artem-v Feb 14, 2025
78b57f3
WIP
artem-v Feb 14, 2025
07f3f3e
WIP
artem-v Feb 14, 2025
43fbac1
WIP
artem-v Feb 14, 2025
42c23f3
WIP (fixed examples)
artem-v Feb 14, 2025
6ebb781
Removed ConnectionSetup
artem-v Feb 14, 2025
6e66c0b
WIP
artem-v Feb 14, 2025
7e610ad
WIP
artem-v Feb 14, 2025
4bf3fa1
WIP
artem-v Feb 14, 2025
592f7b3
WIP
artem-v Feb 14, 2025
2a9b862
WIP
artem-v Feb 14, 2025
4936afa
WIP
artem-v Feb 15, 2025
14b4725
WIP
artem-v Feb 16, 2025
63409c5
WIP
artem-v Feb 16, 2025
51ddaf5
WIP
artem-v Feb 17, 2025
e4f7ee9
WIP
artem-v Feb 24, 2025
49f461b
WIP
artem-v Feb 25, 2025
6e50b7d
WIP
artem-v Feb 25, 2025
7fb2afb
WIP
artem-v Feb 25, 2025
542219c
WIP
artem-v Feb 25, 2025
f1e44e4
WIP
artem-v Feb 26, 2025
9c7bb74
WIP
artem-v Feb 26, 2025
f86cdb1
WIP
artem-v Feb 26, 2025
d507a23
WIP
artem-v Feb 26, 2025
61bf73d
WIP
artem-v Feb 27, 2025
23c5aec
WIP
artem-v Feb 27, 2025
3b34c45
Fixed ServiceMethodInvokerTest
artem-v Feb 27, 2025
1ca0f07
UPdated Principal
artem-v Feb 27, 2025
5ccb7ea
Updated ServiceMethodInvokerTest
artem-v Feb 27, 2025
c23b38c
Mirno
artem-v Feb 27, 2025
0aff301
Done with ServiceMethodInvokerTest
artem-v Feb 27, 2025
2f0c1d3
Fixed Reflect
artem-v Feb 27, 2025
ae8e43c
Fixed Principal
artem-v Feb 27, 2025
cac4973
Enhanced RequestContext
artem-v Feb 27, 2025
3da89ba
Cleanup
artem-v Feb 27, 2025
c41013d
Chnages
artem-v Feb 27, 2025
4db7fe4
WIP
artem-v Feb 28, 2025
c8d94c4
Enhanced ServiceMethodInvokerTest
artem-v Feb 28, 2025
600e348
Added javadocs
artem-v Feb 28, 2025
083276e
Enhanced prinicpa;l
artem-v Feb 28, 2025
961e544
Fixed StaticAddressRouter
artem-v Feb 28, 2025
1ae54e5
Micnor changes
artem-v Feb 28, 2025
f4563c5
Finished AuthTest
artem-v Feb 28, 2025
2a8d79b
WIP
artem-v Feb 28, 2025
732ed72
WIP
artem-v Mar 1, 2025
0db2725
WIP
artem-v Mar 1, 2025
059ba5e
WIP
artem-v Mar 2, 2025
bc046ca
WIP
artem-v Mar 2, 2025
5408e05
WIP
artem-v Mar 2, 2025
615de0e
WIP
artem-v Mar 2, 2025
e810220
WIP
artem-v Mar 2, 2025
3cf04ab
Fixed ServiceMethodInvokerTest
artem-v Mar 2, 2025
f2fbeeb
WIP
artem-v Mar 2, 2025
d480011
WIP
artem-v Mar 2, 2025
c41af89
WIP
artem-v Mar 4, 2025
edfaf6b
WIP
artem-v Mar 4, 2025
394747e
WIP
artem-v Mar 4, 2025
24ea041
WIP
artem-v Mar 4, 2025
e23cc4a
WIP
artem-v Mar 6, 2025
29d18ba
WIP
artem-v Mar 6, 2025
616d04d
WIP
artem-v Mar 6, 2025
6e90f1f
WIP
artem-v Mar 7, 2025
3fbf30b
Moved ServiceMethodDefinition to different package
artem-v Mar 7, 2025
a6f361d
Moved ServiceMethodDefinition to different package
artem-v Mar 7, 2025
d925402
Added ServiceRolesProcessor
artem-v Mar 7, 2025
2f885d6
WIP
artem-v Mar 7, 2025
23c0010
Added ITs for scalecube-services-security module, fixed builders
artem-v Mar 8, 2025
b11f82c
Added RequestContext.deferSecured()
artem-v Mar 8, 2025
16c4ddd
Added more tests
artem-v Mar 9, 2025
2dfc15b
Tests
artem-v Mar 9, 2025
518efa3
Moved PrincipalMapper, CredentialsSupplier, Authenticator to ".auth" …
artem-v Mar 9, 2025
2746366
Moved ServicePrincipal to "io.scalecube.services.auth"
artem-v Mar 10, 2025
06706a5
Added convenient constructor
artem-v Mar 13, 2025
c19217e
Cosmetic changes in ServiceRoleDefinition
artem-v Mar 13, 2025
0bf1fae
WIP
artem-v Mar 18, 2025
1493255
WIP
artem-v Mar 18, 2025
f4bc715
WIP
artem-v Mar 18, 2025
3500446
Added NPEs checks to services-security module
artem-v Mar 18, 2025
65eb10c
WPI
artem-v Mar 18, 2025
0105200
Cosmetic changes
artem-v Mar 18, 2025
d12b4a9
Cosmetic change in ServiceMethodInvoker
artem-v Mar 18, 2025
8668bcd
WIP
artem-v Mar 18, 2025
21cb8be
Cosmetic changes
artem-v Mar 18, 2025
8996385
Added more audit logs
artem-v Mar 18, 2025
401a1b4
Cosmetic changes, smarter logging for Principal.NULL_PRINCIPAL
artem-v Mar 18, 2025
495eaf1
Removed validation of message in ServiceMethodInvoker.toRequest()
artem-v Mar 18, 2025
85a32cb
Fixed tests
artem-v Mar 18, 2025
8f5e6d3
Enhanced audit logging
artem-v Mar 19, 2025
aeaa405
Merge branch 'refs/heads/master' into m2m-auth-refactoring
artem-v Mar 30, 2025
61ec356
Small changes
artem-v Mar 30, 2025
d15c3de
Added javadoc for Principal
artem-v Mar 30, 2025
f05dfb9
Added doc for ServicePrincipal
artem-v Mar 30, 2025
9f563a9
Minor
artem-v Mar 30, 2025
a8886dd
Added javadocs for RequestContext
artem-v Mar 30, 2025
29a176f
Added javadocs for PrincipalMapper
artem-v Mar 30, 2025
45f452f
WIP on enhancements
artem-v Apr 6, 2025
93f797d
Fixed Gw tests
artem-v Apr 6, 2025
43650cc
Fixed Filedownload tests
artem-v Apr 6, 2025
24b83ef
Fixed ServiceTokenTests
artem-v Apr 6, 2025
9dc2658
Enhanced StaticAddressRouter
artem-v Apr 6, 2025
89c209f
Changed signature of CredentialsSupplier, added more responsibility t…
artem-v Apr 7, 2025
dabf2f8
Added useful methods for ServiceTokenCredentialsSupplier
artem-v Apr 7, 2025
fd38af0
Renamings
artem-v Apr 8, 2025
e975c3e
Cosmetic changes
artem-v Apr 8, 2025
ae01cf2
Revert "Cosmetic changes"
artem-v Apr 8, 2025
9882aff
Fixed audit logs
artem-v Apr 9, 2025
a707d67
Added toString
artem-v Apr 9, 2025
7d6f41f
rc5
artem-v Apr 9, 2025
f8d7412
Cleanup
artem-v Apr 9, 2025
0b14b0d
Added CredentialsSuppliers
artem-v Apr 9, 2025
2de0cad
Added context.logger to call()
artem-v Apr 9, 2025
2f5d1e8
Moved annotation `@Secured` to service level, added new attribute `de…
artem-v Apr 16, 2025
8d60a81
Removed strange toForbiddenException
artem-v Apr 16, 2025
c54f358
Set scalecube-security -> 1.1.1
artem-v Apr 17, 2025
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
17 changes: 13 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand Down Expand Up @@ -58,7 +60,7 @@

<properties>
<scalecube-cluster.version>2.7.1</scalecube-cluster.version>
<scalecube-security.version>1.1.0</scalecube-security.version>
<scalecube-security.version>1.1.1</scalecube-security.version>

<reactor.version>2020.0.32</reactor.version>
<jackson.version>2.18.2</jackson.version>
Expand All @@ -71,6 +73,8 @@
<junit-jupiter.version>5.8.2</junit-jupiter.version>
<hamcrest.version>1.3</hamcrest.version>
<log4j.version>2.17.2</log4j.version>
<vault-java-driver.version>5.1.0</vault-java-driver.version>
<testcontainers.version>1.20.4</testcontainers.version>

<distributionManagement.url>https://maven.pkg.github.com/scalecube/scalecube-services
</distributionManagement.url>
Expand All @@ -90,14 +94,19 @@

<dependencyManagement>
<dependencies>
<!-- Scalecube security tokens -->
<!-- Scalecube-Security -->
<dependency>
<groupId>io.scalecube</groupId>
<artifactId>scalecube-security-tokens</artifactId>
<version>${scalecube-security.version}</version>
</dependency>
<dependency>
<groupId>io.scalecube</groupId>
<artifactId>scalecube-security-vault</artifactId>
<version>${scalecube-security.version}</version>
</dependency>

<!-- Scalecube cluster -->
<!-- Scalecube-Cluster -->
<dependency>
<groupId>io.scalecube</groupId>
<artifactId>scalecube-cluster</artifactId>
Expand Down
11 changes: 10 additions & 1 deletion services-api/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

Expand All @@ -20,6 +22,13 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<!-- Tests -->
<dependency>
<groupId>io.scalecube</groupId>
<artifactId>scalecube-services-testlib</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Loading