Comments (4)
First, if you use spring security, then adding just the following in Config.groovy is supposed to work:
grails.plugins.springsecurity.interceptUrlMap = [
'/monitoring/**': ['ROLE_ADMIN'],
]
Otherwise, you should note that the "monitoring" url of melody is not a controller, it's a filter. So I don't think that the following would work: monitoringController(controller:'monitoring', action:'*')
And I don't know how to make it work in SecurityFilters.groovy
from grails-melody-plugin.
Sadly, I'm not using Spring Security, my app has no need for it. Standard filters, with the exception of Melody, suited all of my needs (and my security design doesn't lend itself to SpringSecurity).
from grails-melody-plugin.
Grails filters are intended to use only when you have a controller and action, so it not works with url's that a filter responds (like Melody). To accomplish that you will need to write a plain Java filter that runs before the Melody filter.
Here's an example of Servlet filter in Grails.
from grails-melody-plugin.
@kdorff I'm closing this, since the security depends on your implementation, and there's no way to do it with a Grails filter, since monitoring is not a controller.
P.S: off-topic, but I suggest you to take a look at the security plugins available in Grails. They are well tested and should provide a more standard approach to your projects.
from grails-melody-plugin.
Related Issues (20)
- grails-melody-plugin is not compatible with Grails 3.3 HOT 5
- Plugin breaks Grails 3.2.11 HOT 14
- Outdated import in MelodyInterceptorEnhancer: net.bull.javamelody.Parameters HOT 2
- grails-melody-plugin must load after grails-quartz plugin to allow full reconfiguration of the scheduler thread HOT 2
- No value for key [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy] bound to thread HOT 15
- HTTP 302 is not logged HOT 4
- "Connection is closed" issue when Tomcat recreates connection HOT 3
- Exception: Connection has already been closed HOT 24
- 1.70 throws exception in Grails 3.1.12 application HOT 7
- Showing SQL connections in "Statistics sql" HOT 2
- Enhance release
- Create Functional / Integration Test for DataSource Wrapping HOT 1
- A guide to setup grails melody
- Service calls are not recorded HOT 3
- No value for key [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy] bound to thread HOT 20
- Multiple datasource (default and quartz) logs quartz sql only HOT 2
- Enhancing @Transactional service gives groovy.lang.MissingMethodException HOT 11
- No sql query logs for grails 3.3.9 + melody plugin 1.74 HOT 4
- Caches are not listed in the monitoring page HOT 2
- Spring boot actuator management port not working as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grails-melody-plugin.