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

Read-only mode and Spring Security example #129

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

driesva
Copy link
Contributor

@driesva driesva commented Jan 24, 2025

  • 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
    • navigate to root when fetching results in unauthorized (e.g. due to session timeout)
  • bump SB and db-scheduler versions

fixes #126

* 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
* attempt to fix test failures by creating different tasks for deletion
@geirsagberg
Copy link
Collaborator

Looks promising, I will set aside some time tomorrow evening for a full review, hopefully 😇

Copy link
Collaborator

@geirsagberg geirsagberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!


public ConfigController(boolean showHistory) {
public ConfigController(boolean showHistory, Supplier<Boolean> readOnly) {
this.showHistory = showHistory;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a supplier, not a value like showHistory?

@geirsagberg geirsagberg merged commit 1814d11 into bekk:main Jan 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to define some auth credentials to restrict access to the /db-scheduler-ui path
2 participants