Skip to content

Commit

Permalink
Service Account broadcast limiter (RocketChat#72)
Browse files Browse the repository at this point in the history
* [NEW] Service Account Admin Settings and Configuration files added

* Service Account Creation dialog added

* [NEW] Service Account Creation method

* Service Account owner username update method added

* Fixed CLI errors

* Fixed CLI errors

* Service Account creation heading fixed

* Service Account broadcast room callback added

* Service Account creation method refactored

* Service Account Callback completed

* Typos fixed

* CLI errors fixed

* [NEW] Service Account one-tap login complete

* Callbacks modified

* Service Accounts directory tab added

* Refactored creation method and added tests

* CLI errors fixed

* CLI errors fixed

* Bugs fixed

* [NEW] Service Accounts Login method

* Typo fixed

* CLI errors fixed

* CLI errors fixed

* [New] Service Account directory feature

* CLI errors fixed

* UsernameExists meteor method fixed

* Sync commit

* [NEW] Service Account subscription method added

* [NEW] Service Account Broadcast Feature Added

* [NEW] Service Account Broadcast Feature Added

* [NEW] Service account subscription sidenav type

* Broadcast Room name change handled

* Lint errors fixed

* getLoginToken method refactored

* Console statements removed

* Sidebar header permission modified

* Merge branch service-accounts

* Added service account directory search translation key

* Subscribers count added

* [NEW] Service Account sidenav type

* [FIX] Not showing local app on App Details (RocketChat#14894)

* Bump version to 1.2.1

* Unread counter added in popver

* Get linked service account method added

* Partial rate limiter added

* Added unread counter

* Fixed CLI errors

* Broadcast feature added

* [FIX] Custom status displayed on room leader panel (RocketChat#14958)

* [FIX] LDAP login with customField sync (RocketChat#14808)

Closes RocketChat#14661

* [FIX] Prevent error on trying insert message with duplicated id (RocketChat#14945)

* [FIX] OTR key icon missing on messages (RocketChat#14953)

* [FIX] Method `getUsersOfRoom` not returning offline users if limit is not defined (RocketChat#14753)

* [IMPROVE] Remove too specific helpers isFirefox() and isChrome() (RocketChat#14963)

* [FIX] Jump to message missing in Starred Messages (RocketChat#14949)

* [IMPROVE] Update tabs markup (RocketChat#14964)

* [FIX] Loading indicator positioning (RocketChat#14968)

* Remove broken markup

* Recover lost class

* [FIX] load more messages (RocketChat#14967)

* [FIX] eternal loading file list (RocketChat#14952)

* [FIX] 50 custom emoji limit (RocketChat#14951)

* Bump jquery from 3.3.1 to 3.4.0 in /packages/rocketchat-livech… (RocketChat#14922)

Bumps [jquery](https://github.com/jquery/jquery) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/jquery/jquery/releases)
- [Commits](jquery/jquery@3.3.1...3.4.0)

Signed-off-by: dependabot[bot] <[email protected]>

* [FIX] Allow storing the navigation history of unregistered Livechat visitors (RocketChat#14970)

* Remove validations before storing visitor navigation history.

* Removed unused imports.

* Update GPG key

* [FIX] Wrong label order on room settings (RocketChat#14960)

* [FIX] Chrome doesn't load additional search results when botto… (RocketChat#14965)

* fix scroll

* fix review

* ops

* [IMPROVEMENT] patch to improve emoji render (RocketChat#14722)

* path to improve emoji render

* Apply suggestions from code review

Co-Authored-By: Tasso Evangelista <[email protected]>

* Regression: patch to improve emoji render (RocketChat#14980)

This reverts commit b395b50.

* [FIX] Users staying online after logout (RocketChat#14966)

* Remove unused dependency (lokijs) (RocketChat#14973)

* Bump juice version to 5.2.0 (RocketChat#14974)

* Bump node-rsa version to 1.0.5 (RocketChat#14976)

* Bump photoswipe version to 4.1.3 (RocketChat#14977)

* Remove unused Meteor dependency (yasinuslu:blaze-meta) (RocketChat#14971)

* Bump marked from 0.5.2 to 0.6.1 (RocketChat#14969)

* Bump marked from 0.5.2 to 0.6.1

Bumps [marked](https://github.com/markedjs/marked) from 0.5.2 to 0.6.1.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](markedjs/marked@v0.5.2...v0.6.1)

Signed-off-by: dependabot[bot] <[email protected]>

* Update package-lock

* [IMPROVE] Federation routes RocketChat#14972

* [IMPROVE] Extract federation config to its own file (RocketChat#14992)

* Revert "[IMPROVE] Federation routes RocketChat#14972"

* Extract federation config logic to its own file

* Service account configurable approval process

* Improve Docker compose readability (RocketChat#14457)

* [FIX] Not being able to mention users with "all" and "here" usernames - do not allow users register that usernames (RocketChat#14468)

* [FIX] Custom User Status throttled by rate limiter (RocketChat#15001)

* [FIX] CustomOauth Identity Step errors displayed in HTML format (RocketChat#15000)

* Service account message alert added

* Lint errors fixed

* fixed browseChannels method

* fixed browseChannels method

* Service Account Notification fixed

* [IMPROVE] Add flag to identify remote federation users (RocketChat#15004)

* added isRemote flag to users

* set isRemote on peers collection
* moved some finds to its models
* use new raw model

* Add more indeces and model methods

* [FIX] Always displaying jumbomojis when using "marked" markdown (RocketChat#14861)

* relocate some of wizard info to register (RocketChat#14884)

* [NEW] Webdav File Picker (RocketChat#14879)

* [FIX] Invite users auto complete cropping results (RocketChat#15020)

* [FIX] Edit permissions screen (RocketChat#14950)

* fix layout still missing js

* Change publication to REST call

* Add default fields to exclude

* Use fixed fields

* Deprecate publication instead of removing it

* ui fix

* fix review

* Deprecate publication instead of removing it

* Prevent adding invalid users to role

* New: Apps and integrations statistics (RocketChat#14878)

* Add Apps and integrations infos to statistics

* Add stats for integrations with script enabled

* [FIX] Livechat dashboard average and reaction time labels (RocketChat#14845)

* [FIX] Edit message with arrow up key if not last message (RocketChat#15021)

* [IMPROVE] Connectivity Services License Sync (RocketChat#15022)

* Add workspace sync to cron job to keep license, access token, and marketplace key in sync

* Always convert the sha256 password to lowercase on checking (RocketChat#14941)

* Convert the sha256 pass to lowercase always

* Change password case on save user profile as well

* [FIX] SVG uploads crashing process (RocketChat#15006)

* Update package.json with newer sharp dependency

Shall Fix RocketChat#14944 
The underlying issue seems to be in sharp versions <0.22.x

* Update package-lock

* Fix statistics error for apps on first load (RocketChat#15026)

* [NEW] Setting to configure custom authn context on SAML requests (RocketChat#14675)

* [NEW] Accept multiple redirect URIs on OAuth Apps (RocketChat#14935)

* [NEW] Settings to further customize GitLab OAuth (RocketChat#15014)

Co-Authored-By: Hajo Möller <[email protected]>

* Add missing French translation (RocketChat#15013)

Add Message_AllowConvertLongMessagesToAttachment translation

* [FIX] users.setStatus REST endpoint not allowing reset status message (RocketChat#14916)

* [NEW] Options to filter discussion and livechat on Admin > Rooms (RocketChat#15019)

* [FIX] Typo in german translation (RocketChat#14833)

* Wrong text when reporting a message (RocketChat#14515)

* [FIX] Message attachments not allowing float numbers (RocketChat#14412)

* Fix russian grammatical errors in i18n (RocketChat#14622)

* [NEW] Deprecate MongoDB version 3.2 (RocketChat#15025)

* [NEW] Subscription enabled marketplace (RocketChat#14948)

* Show the subscription apps different from regular purchase prices

* Update app download calls return a Buffer directly

* Add X-Apps-Engine-Version header to marketplace requests

* Add getActiveUserCount method to apps-engine user bridge

* Add distinction  for purchase type on apps list

* Fix the issues with displaying subscriptions

* Remove external federated users from active user count

* Fix usage of federation module

* Change app installation to validate license

* Change the bridges to correctly query the workspace public key

* Change marketplaceUrl to marketplace-beta

* Update Apps and Marketplace styles (temp)

* Update price column on Marketplace

* Update status column on Marketplace

* Fix Marketplace app list update

* Remove log from client orchestrator

* Refactor server orchestrator

* Change rest api for license validation

* Add popover to Marketplace app list

* Add card (subscription) icon

* Update active user count method

* Update appManage template (partial)

* Update appManage template

* Add missing i18n strings

* Add cron routine to update apps info

* Add options parameter to new methods on model Users

* Revert testing settings

* Bump Apps-Engine version

* [NEW] Show helpful error when oplog is missing (RocketChat#14954)

* Show helpful error when oplog is missing

* Remove unused files

* Bump version to 1.3.0-rc.0

* Service Account bugs fixed

* Service Account bugs fixed

* Login bug fixed

* Username exists error test for service account added

* Regression: Framework version shouldn't be applied to the request to get an app's versions (RocketChat#15039)

* Regression: fix code style, setup wizard error and profile page header (RocketChat#15041)

* Bump version to 1.3.0-rc.1

* Update Livechat widget (RocketChat#15046)

* Service Account logout fixed

* Bump version to 1.3.0-rc.2

* [FIX] Not sanitized message types (RocketChat#15054)

* Regression: Webdav File Picker search and fixed overflows (RocketChat#15027)

* fix multiple calls (RocketChat#15060)

* Regression: getSetupWizardParameters (RocketChat#15067)

* Bump version to 1.3.0-rc.3

* Regression: Apps and Marketplace UI issues (RocketChat#15045)

* Alert admins about apps on invalid state

* Implement ui for warning and error alerts in apps

* Open detail modal on viewing subscription info instead of the subscribe one.  Check license after close

* Implement ui for failed state of apps in detail screen

* Add failure alert support into appManage

* Show validation erros/warnings on app detail page

* Add status column to apps template

* Update uninstall modal

* Notify admins of disabled apps with valid licenses

* Regression: uninstall subscribed app modal (RocketChat#15077)

* Add option to change cancel button color on modal

* Avoid an extra modal when uninstalling subscribed app

* Regression: Marketplace app pricing plan description (RocketChat#15076)

Co-Authored-By: Diego Sampaio <[email protected]>

* Regression: displaying errors for apps not installed from Marketplace (RocketChat#15075)

* Regression: Improve apps bridges for HA setup (RocketChat#15080)

* Bump version to 1.3.0-rc.4

* Bump version to 1.3.0

* Bump version to 1.4.0-develop

* [BREAK] Replace tap:i18n to add support to 3-digit locales (RocketChat#15109)

* Remove tap-i18n source code

* Replace all references to new package rocketchat:tap-i18n

* Replace package francocatena:status by own template

* Add translations for status messages

Closes RocketChat#15090
Closes RocketChat#3712

* Add support to 3-digit locale

* [FIX] cachedcollection calling multiple times SYNC (RocketChat#15104)

* fixed cachedcollection calling multiple times

* fix tests

* fix review

* Improve url validation inside message object (RocketChat#15074)

* LingoHub based on develop (RocketChat#15115)

* LingoHub Update 🚀

Manual push by LingoHub User: Diego Sampaio.
Project: Rocket.Chat

Made with ❤️ by https://lingohub.com

* Add new step to build Docker image from PRs for production again (RocketChat#15124)

* Fix automated test for manual user activation (RocketChat#14978)

* Allow file upload paths on attachments URLs (RocketChat#15121)

* [FIX] Direct Message names not visible on Admin panel (RocketChat#15114)

* [FIX] Custom emoji limit table scroll (RocketChat#15119)

* [IMPROVE] Message tooltips as everyone else (RocketChat#15135)

* Regression: cachedCollection wrong callback parameters (RocketChat#15136)

* Update pt-BR.i18n.json (RocketChat#15083)

Fix wrong word.

* removed unwanted code (RocketChat#15078)

* [FIX] Remove new hidden file and fix for .env files for Snap (RocketChat#15120)

* [FIX] Prevent to create discussion with empty name (RocketChat#14507)

* [FIX] Threads contextual bar button visible even with threads disabled (RocketChat#14956)

* Update to version 2.0.0-develop (RocketChat#15142)

* Fix custom auth (RocketChat#15141)

* [NEW] Jitsi meet room access via a token (RocketChat#12259)

* closes RocketChat#7611 - append token auth in jitsi videoconference

* Ádd missing imports

* Fix imports and jws dep

* Add option to limit the token validity to the room that it was generated for

* use canAccessRoom for jitsi:generateAccessToken to prevent abuse

* fix diff in jitsi external api

* Make settings not public

* Add wreiske to catbot config (RocketChat#15147)

* [NEW] Integrate DEEPL translation service to RC core (RocketChat#12174)

* service extension for deepl

* Add translations

* Add lint-fix-command

* Adhere to new linting rules

* Hard code service enpoint URLs of providers
Having it as a setting increases complexity (user has to enter the URL by himself) without significant benefit.
If the URL changes, the code has to be adapted anyway

* Fix translation of attachment descriptions by DeepL

* Fix getSupportedLanguages by Google

* move renameSetting to Settings model

* Add migrations for rename settings

* update package.json

* Fix formatting to make consistent with the other code

* Add additional comments

* Use active provider for context menu translations

* Add invidual key for each providers

* Nothing to migrate

* Fix spelling in comment

* Replace TAPi18n library with rocketchat:tapi18n

* Use correct setting

* Remove GPG file (RocketChat#15146)

* Switch outdated roadmap to point to milestones (RocketChat#15156)

* LingoHub based on develop (RocketChat#15166)

* LingoHub Update 🚀

Manual push by LingoHub User: Diego Sampaio.
Project: Rocket.Chat

Made with ❤️ by https://lingohub.com

* Update latest Livechat widget version(1.1.3) (RocketChat#15154)

* Update the latest livechat widget version(1.1.2).

* Rename the latest release from 1.1.2 to 1.1.3

* [FIX] IE11 - callback createTreeWalker doesnt accept acceptNo… (RocketChat#15157)

* Update latest Livechat widget version to 1.1.4 (RocketChat#15173)

* [FIX] search messages scroll (RocketChat#15175)

* [FIX] Attachment download button behavior (RocketChat#15172)

* Update presence package (RocketChat#15178)

* [FIX] TabBar not loading template titles (RocketChat#15177)

* [NEW] Endpoint to fetch livechat rooms with several filters (RocketChat#15155)

* WIP: livechat endpoint to get all rooms with filters

* Created an endpoint to get all livechat rooms with filters

* Remove wrong expectation

* Move endpoint to another folder

* simplify operation

* [BREAK] remove old livechat client (RocketChat#15133)

* fix stylelint

* Broadcast rate limiter added

* Regression: remove livechat cache from circle ci (RocketChat#15183)

* remove livechat cache from circle ci

* removed eslint

* Update Livechat to 1.1.6 (RocketChat#15186)

* [BREAK] Remove publication `usersInRole` (RocketChat#15194)

* [BREAK] Remove publication `roomSubscriptionsByRole` (RocketChat#15193)

* [BREAK] Remove REST endpoint `/api/v1/info` (RocketChat#15197)

* [BREAK] Remove GraphQL and grant packages (RocketChat#15192)

* Change notifications file imports to server (RocketChat#15184)

* Service Accounts Server tests added

* Lint errors fixed

* lint errors fixed

* Add service account button location changed

* lint errors fixed

* Test error fixed

* Sidebar header condition modified

* Fixed lint errors
  • Loading branch information
bhardwajaditya authored and Kailash0311 committed Aug 21, 2019
1 parent 769cfd3 commit 2fb1d53
Show file tree
Hide file tree
Showing 551 changed files with 8,527 additions and 20,259 deletions.
120 changes: 92 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,6 @@ jobs:
keys:
- meteor-cache-{{ checksum ".circleci/config.yml" }}-{{ checksum ".meteor/versions" }}

- restore_cache:
keys:
- livechat-meteor-cache-{{ checksum ".circleci/config.yml" }}-{{ checksum "packages/rocketchat-livechat/.app/.meteor/versions" }}

- restore_cache:
keys:
- livechat-node-modules-cache-{{ checksum ".circleci/config.yml" }}-{{ checksum "packages/rocketchat-livechat/.app/package.json" }}

- run:
name: Build Rocket.Chat
environment:
Expand Down Expand Up @@ -177,16 +169,6 @@ jobs:
paths:
- ./.meteor/local

- save_cache:
key: livechat-node-modules-cache-{{ checksum ".circleci/config.yml" }}-{{ checksum "packages/rocketchat-livechat/.app/package.json" }}
paths:
- ./packages/rocketchat-livechat/app/node_modules

- save_cache:
key: livechat-meteor-cache-{{ checksum ".circleci/config.yml" }}-{{ checksum "packages/rocketchat-livechat/.app/.meteor/versions" }}
paths:
- ./packages/rocketchat-livechat/app/.meteor/local

- save_cache:
key: meteor-{{ checksum ".circleci/config.yml" }}-{{ checksum ".meteor/release" }}
paths:
Expand Down Expand Up @@ -261,6 +243,8 @@ jobs:
export PATH=~/.local/bin:$PATH
export CIRCLE_TAG=${CIRCLE_TAG:=}
aws s3 cp s3://rocketchat/sign.key.gpg .circleci/sign.key.gpg
source .circleci/setartname.sh
source .circleci/setdeploydir.sh
bash .circleci/setupsig.sh
Expand Down Expand Up @@ -342,6 +326,79 @@ jobs:
exit 0
fi;
pr-build:
<<: *defaults
docker:
- image: circleci/node:8.11-stretch

steps:
- checkout

- restore_cache:
keys:
- node-modules-cache-{{ checksum ".circleci/config.yml" }}-{{ checksum "package.json" }}

- restore_cache:
keys:
- meteor-{{ checksum ".circleci/config.yml" }}-{{ checksum ".meteor/release" }}

- run:
name: Install Meteor
command: |
# Restore bin from cache
set +e
METEOR_SYMLINK_TARGET=$(readlink ~/.meteor/meteor)
METEOR_TOOL_DIRECTORY=$(dirname "$METEOR_SYMLINK_TARGET")
set -e
LAUNCHER=$HOME/.meteor/$METEOR_TOOL_DIRECTORY/scripts/admin/launch-meteor
if [ -e $LAUNCHER ]
then
echo "Cached Meteor bin found, restoring it"
sudo cp "$LAUNCHER" "/usr/local/bin/meteor"
else
echo "No cached Meteor bin found."
fi
# only install meteor if bin isn't found
command -v meteor >/dev/null 2>&1 || curl https://install.meteor.com | sed s/--progress-bar/-sL/g | /bin/sh
- run:
name: Versions
command: |
npm --versions
node -v
meteor --version
meteor npm --versions
meteor node -v
git version
- run:
name: Meteor npm install
command: |
# rm -rf node_modules
# rm -f package-lock.json
meteor npm install
- restore_cache:
keys:
- meteor-cache-{{ checksum ".circleci/config.yml" }}-{{ checksum ".meteor/versions" }

- run:
name: Build Rocket.Chat
environment:
TOOL_NODE_FLAGS: --max_old_space_size=3072
command: |
meteor build --server-only /tmp/build-pr
- persist_to_workspace:
root: /tmp/
paths:
- build-pr

- store_artifacts:
path: /tmp/build-pr

pr-image-build:
<<: *defaults

Expand All @@ -364,9 +421,9 @@ jobs:
exit 0
fi;
cd /tmp/build
tar xzf Rocket.Chat.tar.gz
rm Rocket.Chat.tar.gz
cd /tmp/build-pr
tar xzf repo.tar.gz
rm repo.tar.gz
docker login -u $DOCKER_USER -p $DOCKER_PASS
Expand All @@ -375,11 +432,11 @@ jobs:
docker build -t rocketchat/rocket.chat:pr-$CIRCLE_PR_NUMBER .
docker push rocketchat/rocket.chat:pr-$CIRCLE_PR_NUMBER
echo "Build preview Docker image"
cp ~/repo/.docker-mongo/Dockerfile .
cp ~/repo/.docker-mongo/entrypoint.sh .
docker build -t rocketchat/rocket.chat.preview:pr-$CIRCLE_PR_NUMBER .
docker push rocketchat/rocket.chat.preview:pr-$CIRCLE_PR_NUMBER
#echo "Build preview Docker image"
#cp ~/repo/.docker-mongo/Dockerfile .
#cp ~/repo/.docker-mongo/entrypoint.sh .
#docker build -t rocketchat/rocket.chat.preview:pr-$CIRCLE_PR_NUMBER .
#docker push rocketchat/rocket.chat.preview:pr-$CIRCLE_PR_NUMBER
workflows:
version: 2
Expand Down Expand Up @@ -433,12 +490,19 @@ workflows:
ignore: develop
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+(?:-(?:rc|beta)\.[0-9]+)?$/
- pr-image-build:
- pr-build:
requires:
- hold
filters:
branches:
ignore: develop
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+(?:-(?:rc|beta)\.[0-9]+)?$/

- pr-image-build:
requires:
- pr-build
filters:
branches:
ignore: develop
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+(?:-(?:rc|beta)\.[0-9]+)?$/
Binary file removed .circleci/sign.key.gpg
Binary file not shown.
2 changes: 1 addition & 1 deletion .docker/Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.access.redhat.com/rhscl/nodejs-8-rhel7

ENV RC_VERSION 1.3.0-develop
ENV RC_VERSION 2.0.0-develop

MAINTAINER [email protected]

Expand Down
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ packages/meteor-timesync/
app/emoji-emojione/generateEmojiIndex.js
app/favico/favico.js
app/katex/client/katex/katex.min.js
packages/rocketchat-livechat/.app/node_modules
packages/rocketchat-livechat/.app/.meteor
packages/rocketchat-livechat/assets/rocketchat-livechat.min.js
packages/rocketchat-livechat/assets/rocket-livechat.js
app/theme/client/minicolors/jquery.minicolors.js
Expand All @@ -20,6 +18,5 @@ packages/tap-i18n/lib/tap_i18next/tap_i18next-1.7.3.js
private/moment-locales/
public/livechat/
!.scripts
!packages/rocketchat-livechat/.app
public/pdf.worker.min.js
imports/client/
1 change: 1 addition & 0 deletions .github/bot-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ bot:
name: "@rocket-cat"
whitelist:
users:
- wreiske
- TwizzyDizzy
- theorenck
- JSzaszvari
Expand Down
Loading

0 comments on commit 2fb1d53

Please sign in to comment.