salopensource / sal-saml Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Currently SAL uses djangosaml2==0.18.1
however there are number of known fixed issues within pysaml2
& djangosaml2
mainly around signed response support.
When a new release of this docker container is created dockerhub currently attempts to rebuilds all branches instead of just the most recent version + latest. This means build times for new releases are crazy long until/unless Graham goes into the dockerhub GUI and cancels old builds.
I've tested the following on my fork sal-saml and the following autobuild settings fixed this for me.
Type | Name | Dockerfile Location | Docker Tag Name |
---|---|---|---|
Branch | master | / | latest |
Branch | /^([0-9]+).([0-9]+).([0-9]+)$/ | / | {\1}.{\2}.{\3} |
Branch | /^([0-9]+).([0-9]+).([0-9]+).([0-9]+)$/ | / | {\1}.{\2}.{\3}.{\4} |
This should limit dockerhub to only build branches in the format of X.X.X
or patches named X.X.X.X
. Then when a new branch is pushed dockerhub only builds the new branch.
based off: https://stackoverflow.com/a/44796846
With sal setup to use saml as authentication, there exists a potential for the django session table to become extremely large, when a user has loaded a dashboard, and that user's saml session later expires.
When the dashboard from sal is loaded, each widget makes a XMLHttpRequest
to get its data at regular interval (refresh regularly). Should a session expire while the user has the page loaded, the widget properly redirect the data query to the login page (30x redirect), which, without saml, causes each widget to be replaced by a set of 'login boxes'. However, with SAML, the query is redirected to that same login page, which is turn, is redirected to the IdP, presumably in a different domain (google, okta, onelogin, etc). CORS blocks those queries, and causes the page to try to load the data again without waiting. For each 'pass' at the login page (before the 302 to the IdP), django will create a session entry in the DB for that user, causing the table to potentially grow pretty quickly (we were looking at our DB growth at over 10MB/sec).
It might be possible to update the sal-saml code to use something like https://github.com/ottoyiu/django-cors-headers module and provide CORS headers to allow calls to the IdP, which should (in theory) allow for the existing behavior to stay the same (present the content of the login page inline the widget). Full implication of that change are tbd though.
An alternative would be to change the decorator to require a certain set of permissions rather than a login (which would give an access denied, rather than cause repeated 302 passes over the SAML sal login redirect page...
This is an open issue to please not update djangosaml2 to version 0.16.0 or any version that pins to pysaml2==4.4.0
, as it breaks Okta authentications.
Once pysaml2 has another release we can retest.
All of this is so we can avoid maintaining patches in this docker container.
Okta PR incoming...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.