Skip to content

[NEW] Setting to block unauthenticated access to avatars#9749

Merged
sampaiodiego merged 10 commits intoRocketChat:developfrom
Hudell:block_unauthenticated_access_to_avatars
Aug 17, 2018
Merged

[NEW] Setting to block unauthenticated access to avatars#9749
sampaiodiego merged 10 commits intoRocketChat:developfrom
Hudell:block_unauthenticated_access_to_avatars

Conversation

@Hudell
Copy link
Copy Markdown
Contributor

@Hudell Hudell commented Feb 16, 2018

@RocketChat/core

Closes #3480

@geekgonecrazy geekgonecrazy added this to the 0.62.0 milestone Feb 16, 2018
@geekgonecrazy
Copy link
Copy Markdown
Contributor

This looks good to me. @rodrigok thoughts on this being enabled by default? Should this be a setting or just default?

@geekgonecrazy geekgonecrazy removed this from the 0.62.0 milestone Feb 16, 2018
@geekgonecrazy
Copy link
Copy Markdown
Contributor

Looks like this will break mobile apps. We need to get them on track to passing authentication along before we put this in a release.

Copy link
Copy Markdown
Contributor

@graywolf336 graywolf336 left a comment

Choose a reason for hiding this comment

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

I like this option, however it does break how everything currently accesses the avatars. So, how about we add a new setting (yes another one) that defaults to false and then after three releases we make it enabled by default? Then if the NODE_ENV is something other than production, let's log a warning every thirty minutes or so after it's been accessed (so it's not spammy)...or we can somehow notify developers/admins that avatars will soon be protected?

@sampaiodiego
Copy link
Copy Markdown
Member

agreed on adding a setting for that, just like we have for file uploads.

agreed as well on a throttled log on server saying avatars will be protected after three releases if the request does not have any authentication

@sampaiodiego sampaiodiego added this to the 0.68.0 milestone Jul 18, 2018
Copy link
Copy Markdown
Member

@sampaiodiego sampaiodiego left a comment

Choose a reason for hiding this comment

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

@Hudell can you please do the requested changes? thx

@Hudell Hudell dismissed stale reviews from graywolf336 and sampaiodiego August 2, 2018 14:50

Changes were made

@sampaiodiego sampaiodiego changed the title [FIX] Block unauthenticated access to avatars [NEW] Setting to block unauthenticated access to avatars Aug 17, 2018
@sampaiodiego sampaiodiego merged commit 06c1d5e into RocketChat:develop Aug 17, 2018
@sampaiodiego sampaiodiego mentioned this pull request Aug 28, 2018
@theorenck theorenck removed this from the Short-term milestone Dec 12, 2018
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.

6 participants