Commit Graph

235 Commits (ec9d0d146b4ec6752f8f2896ace9bb5585469773)

Author SHA1 Message Date
feld 3f65f2ea79 Merge branch 'feature/1922-media-proxy-whitelist' into 'develop'
4 years ago
Ivan Tashkinov 9b225db7d8 [#1940] Applied rate limit for requests with bad `admin_token`. Added doc warnings on `admin_token` setting.
4 years ago
Ivan Tashkinov cf3f8cb72a [#1940] Reinstated OAuth-less `admin_token` authentication. Refactored UserIsAdminPlug (freed from checking admin scopes presence).
4 years ago
Alexander Strizhakov b376442325
MediaProxy whitelist setting now supports hosts with scheme
4 years ago
Mark Felder d23804f191 Use the Pleroma.Config alias
4 years ago
Mark Felder 49c4e24953 Merge branch 'develop' into fix/csp-for-captcha
4 years ago
Mark Felder da4029391d IO list, not concatenation
4 years ago
Mark Felder 65843d92c4 Simplify the logic
4 years ago
lain 158c26d7dd StaticFE Plug: Use phoenix helper to get the requested format.
4 years ago
Mark Felder af612bd006 Ensure all CSP parameters for remote hosts have a scheme
4 years ago
Mark Felder e9a28078ad Rename function and clarify that CSP is only strict with MediaProxy enabled
4 years ago
Mark Felder eaa59daa4c Add Captcha endpoint to CSP headers when MediaProxy is enabled.
4 years ago
lain a5bbfa21a1 StaticFE: Prioritize json in requests.
4 years ago
Mark Felder 2731ea1334 Change references from "deleted_urls" to "banned_urls" as nothing is handled via media deletions anymore; all actions are manual operations by an admin to ban the url
4 years ago
Maksim Pechnikov 2e8a236cef fix invalidates media url's
4 years ago
Mark Felder 7f7a1a4676 Check for media proxy base_url, not Upload base_url
4 years ago
rinpatch 99afc7f4e4 HTTP security plug: add media proxy base url host to csp
4 years ago
rinpatch d23b3701d8 Merge branch 'bugfix/csp-unproxied' into 'develop'
4 years ago
rinpatch 109af93227 Apply suggestion to lib/pleroma/plugs/http_security_plug.ex
4 years ago
Alex Gleason d38f28870e
Add blob: to connect-src CSP
4 years ago
Haelwenn (lanodan) Monnier da1e31fae3
http_security_plug.ex: Fix non-proxied media
4 years ago
rinpatch 27180611df HTTP Security plug: make starting csp string generation more readable
4 years ago
rinpatch 29ff6d414b HTTP security plug: Harden img-src and media-src when MediaProxy is enabled
4 years ago
rinpatch 455a402c8a HTTP Security plug: rewrite &csp_string/0
4 years ago
lain bfdd90f6d7 AuthenticationPlug: Also update crypt passwords.
4 years ago
lain baef35bcc8 Authentication Plug: Update bcrypt password on login.
4 years ago
Alex Gleason 5b0f27d23d
Pbkdf2.verify_pass --> AuthenticationPlug.checkpw
4 years ago
Alex Gleason 9cbf17d59f
Handle bcrypt passwords for Mastodon migration
4 years ago
Alex Gleason b46811a074
Upgrade Comeonin to v5
4 years ago
Maksim 3d0c567fbc Pleroma.Web.TwitterAPI.TwoFactorAuthenticationController -> Pleroma.Web.PleromaAPI.TwoFactorAuthenticationController
4 years ago
lain 07e7c80bc9 Merge branch 'plug-if-unless-func-options-refactoring' into 'develop'
4 years ago
Haelwenn (lanodan) Monnier c6ddfa8f95
static-fe.css: Restore and move to /priv/static/static-fe
4 years ago
lain 3453e54e6b MappedSignatureToIdentityPlug: Fix.
4 years ago
Ivan Tashkinov 2c4844237f Refactoring of :if_func / :unless_func plug options (general availability). Added tests for Pleroma.Web.Plug.
4 years ago
Ivan Tashkinov 908cf22a6c Merge remote-tracking branch 'remotes/origin/develop' into automatic-authentication-and-instance-publicity-checks
4 years ago
Alex Gleason 1bd9749a8f
Let blob: pass CSP
4 years ago
Ivan Tashkinov 2958a7d246 Fixed OAuth restrictions for :api routes. Made auth info dropped for :api routes if OAuth check was neither performed nor explicitly skipped.
4 years ago
Ivan Tashkinov f685cbd309 Automatic checks of authentication / instance publicity. Definition of missing OAuth scopes in AdminAPIController. Refactoring.
4 years ago
Ivan Tashkinov 66f55106bd [#1682] Fixed Basic Auth permissions issue by disabling OAuth scopes checks when password is provided. Refactored plugs skipping functionality.
4 years ago
Ivan Tashkinov bde1189c34 [#2349] Made :skip_plug/2 prevent plug from being executed even if explicitly called. Refactoring. Tests.
4 years ago
Ivan Tashkinov bedf92e064 Merge remote-tracking branch 'remotes/origin/develop' into authenticated-api-oauth-check-enforcement
4 years ago
Haelwenn b1c1d2e5e1 Merge branch 'fix/1659-rate-limiter' into 'develop'
4 years ago
Alexander Strizhakov 22bde21c4f
remote_ip plug adds remote_ip_found flag
4 years ago
lain 6bc76df287 Uploads: Sandbox them in the CSP.
5 years ago
Maksim Pechnikov c4e7ed660c fix logger message
5 years ago
Ivan Tashkinov fc81e5a49c Enforcement of OAuth scopes check for authenticated API endpoints, :skip_plug plug to mark a plug explicitly skipped (disabled).
5 years ago
lain fa4ec17c84 Merge branch '1560-non-federating-instances-routes-restrictions' into 'develop'
5 years ago
Haelwenn 67a27825b1 Merge branch 'fix/rate-limiter-remoteip-behavior' into 'develop'
5 years ago
Ivan Tashkinov ecb7809e92 Merge remote-tracking branch 'remotes/origin/develop' into 1560-non-federating-instances-routes-restrictions
5 years ago
rinpatch d88c8a9614 Merge branch 'fix/cache-control-headers' into 'develop'
5 years ago