Comments (5)
A première vue comme ça (mais c'est à tester), je dirais que ton principal souci est le '?', qu'il faut échapper avec %.
Et terminer avec '.*$' pour le token qui suit j'imagine.
Ça donnerais ça:
%?controller=board&action=readonly&token=.*$
%?controller=feed&action=project&token=.*$
%?controller=ical&action=project&token=.*$
%?controller=feed&action=user&token=.*$
%?controller=ical&action=user&token=.*$
%?controller=task&action=readonly&task_id=1&token=.*$
Et pour éviter de matcher autre chose que ton app, j'ai l'habitude d'ajouter le domaine et le path avant. Au moins je suis sûr que seule l'app est concernée par ces regex.
Par contre, je comprend pas dans quel cadre tu veux déprotéger ça!?
Tu voudrais qu'une partie de kanboard reste privée en mode public?
from kanboard_ynh.
En fait c'est pour l'accès public qu'il est possible d'activer à la fois dans les projets et dans le profil utilisateur. Qui permet notamment d'utiliser le lien iCal et le flux rss. Pour un mode public complet pas besoin vu qu'à priori on déprotège tout.
En tout cas merci beaucoup, je testerais tout ça la semaine prochaine après ce long WE.
from kanboard_ynh.
Et, juste pour réduire le nombre d'entrée dans le sso. Car on ne peut pas concaténer les regex en lua, pas de OU logique.
Ce n'est pas suffisant de déprotéger:
%?controller=board&action=readonly&token=.*$
%?controller=feed.*$
%?controller=ical.*$
%?controller=task&action=readonly&task_id=1&token=.*$
Juste pour optimiser, le principal reste que ça fonctionne ;)
from kanboard_ynh.
Issue migrated at https://dev.yunohost.org/issues/489
It would be great if you could use this bugtracker instead of github from now one :) (you don't have to create an account and you can log with github)
from kanboard_ynh.
quotting the other bugtracker on "2017-08-30":
It was fixed more than one year ago by this commit: 2cfe386
from kanboard_ynh.
Related Issues (20)
- installing plugins HOT 1
- Kanboard can break Fail2ban after restoring a backup on a fresh installation HOT 2
- File /etc/php/7.0/fpm/pool.d/kanboard.conf is not removed when uninstalling kanboard HOT 1
- Mobile app and email HOT 2
- Upgrade failure HOT 7
- Unable to load task [CSP problem] HOT 10
- refused to apply inline style because it violates the following Content Security Policy directive HOT 2
- Authorize ics public link HOT 3
- [BUG] unable to insert images in markdown url
- Update to 1.2.22~ynh2 and restauration doesn't work HOT 2
- please delete HOT 1
- Kanboard update error HOT 1
- connection via login form redirect awlays to login form HOT 1
- Installation impossible HOT 2
- Checksum in manifest is not matching kanboard original release checksum
- Checksum issue when updating to 1.2.33 HOT 1
- [philosophy] Should plugin update failure make kanboard upgrade fail ?
- Update failed HOT 2
- Checksum mismatch HOT 7
- Update from version 1.2.33-ynh1 to 1.2.35-ynh3 failed 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 kanboard_ynh.