You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Read-only mode and Spring Security example setup
* introduce a read-only mode in which you can only consult tasks but not alter them:
* controller separation
* config for frontend
* ui changes to hide buttons
* provide Spring Security example
* option to alter frontend config at runtime
* test with sample config and tests
* bump SB and db-scheduler versions
* Read-only mode and Spring Security example setup
* attempt to fix test failures by creating different tasks for deletion
Copy file name to clipboardExpand all lines: README.md
+54-1
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ dashboard for monitoring and basic administration of tasks.
41
41
<dependency>
42
42
<groupId>no.bekk.db-scheduler-ui</groupId>
43
43
<artifactId>db-scheduler-ui-starter</artifactId>
44
-
<version>1.0.1</version>
44
+
<version>4.0.0</version>
45
45
</dependency>
46
46
```
47
47
@@ -94,6 +94,59 @@ If you for some reason want to hide the task data you can set this to false. def
94
94
db-scheduler-ui.task-data=false
95
95
```
96
96
97
+
Or if you want a _read-only_ mode (in which tasks cannot be manually run, deleted or scheduled) set `read-only` to `true`, defaults to `false`
98
+
99
+
````
100
+
db-scheduler-ui.read-only=true
101
+
````
102
+
103
+
## Security
104
+
105
+
In case you want to secure db-scheduler-ui you can use [Spring Security](https://spring.io/projects/spring-security), you should secure the paths `/db-scheduler` and `/db-scheduler-api`.
106
+
107
+
In a more advanced scenario, you could assign an _admin role_ and a _read-only user_ role.
Copy file name to clipboardExpand all lines: db-scheduler-ui-starter/src/main/java/no/bekk/dbscheduler/uistarter/autoconfigure/UiApiAutoConfiguration.java
0 commit comments