Skip to content

Commit c4899e8

Browse files
author
Dennis Labordus
authored
Merge pull request #86 from com-pas/doc-security
Added security description + roles to Readme.
2 parents 6ddcade + 433ca92 commit c4899e8

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,48 @@ You can then execute your native executable with: `./app/target/code-with-quarku
7171

7272
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.html
7373
.
74+
75+
## Security
76+
77+
To use most of the endpoints the users needs to be authenticated using JWT in the authorization header. There are 4
78+
environment variables that can be set in the container to configure the validation/processing of the JWT.
79+
80+
| Environment variable | Java Property | Description | Example |
81+
| -------------------------------- | -------------------------------- | -------------------------------------------------- | ---------------------------------------------------------------------- |
82+
| JWT_VERIFY_KEY | smallrye.jwt.verify.key.location | Location of certificates to verify the JWT. | http://localhost:8089/auth/realms/compas/protocol/openid-connect/certs |
83+
| JWT_VERIFY_ISSUER | mp.jwt.verify.issuer | The issuer of the JWT. | http://localhost:8089/auth/realms/compas |
84+
| JWT_VERIFY_CLIENT_ID | mp.jwt.verify.audiences | The Client ID that should be in the "aud" claim. | scl-data-service |
85+
| JWT_GROUPS_PATH | smallrye.jwt.path.groups | The JSON Path where to find the roles of the user. | resource_access/scl-data-service/roles |
86+
87+
The application uses the following list of roles. The fine-grained roles are built up of the types of SCL Files this
88+
service supports and the rights READ/CREATE/UPDATE/DElETE. This way the mapping of the roles to groups/users can be
89+
configured as needed.
90+
91+
- ICD_CREATE
92+
- ICD_DELETE
93+
- ICD_READ
94+
- ICD_UPDATE
95+
- SCD_CREATE
96+
- SCD_DELETE
97+
- SCD_READ
98+
- SCD_UPDATE
99+
- SSD_CREATE
100+
- SSD_DELETE
101+
- SSD_READ
102+
- SSD_UPDATE
103+
- ISD_CREATE
104+
- ISD_DELETE
105+
- ISD_READ
106+
- ISD_UPDATE
107+
- CID_CREATE
108+
- CID_DELETE
109+
- CID_READ
110+
- CID_UPDATE
111+
- IID_CREATE
112+
- IID_DELETE
113+
- IID_READ
114+
- IID_UPDATE
115+
- SED_CREATE
116+
- SED_DELETE
117+
- SED_READ
118+
- SED_UPDATE

0 commit comments

Comments
 (0)