Commit Graph

53 Commits

Author SHA1 Message Date
JoramWilander
e122b31db1 fixes some database queries that broke with postgres, fixes the unread/new mesasge issues 2015-07-27 17:04:44 -04:00
=Corey Hulen
98751a4f65 removing old bindVars methods 2015-07-23 11:02:39 -08:00
=Corey Hulen
5b0d2dd8f9 Fixing merges for latest postgres 2015-07-23 10:15:53 -08:00
=Corey Hulen
8d9449c068 Merge branch 'master' into mm-1420 2015-07-23 09:22:17 -08:00
JoramWilander
d42d0e3467 added store unit test for user.GetByAuth and added password length checking in api.login 2015-07-23 08:19:51 -04:00
JoramWilander
41bbbbf446 add changes from team review 2015-07-22 15:05:20 -04:00
JoramWilander
44cfa364fd added error case for login and removed authdata + authservice unique constraint in users table 2015-07-22 12:42:03 -04:00
JoramWilander
c39e95c7cb inital implementation of using GitLab OAuth2 provider for signup/login 2015-07-22 08:41:53 -04:00
=Corey Hulen
e0bad6c037 Fixing merge 2015-07-21 12:52:38 -08:00
=Corey Hulen
848eeeeef4 fixing merge conflicts 2015-07-21 12:26:27 -08:00
Christopher Speller
c6fb95912b Changing the way we mattermost handles URLs. team.domain.com becomes domain.com/team.
Renaming team.Name to team.DisplayName and team.Domain to team.Name.
So: team.Name -> url safe name. team.DisplayName -> nice name for users
2015-07-20 17:45:23 -04:00
Corey Hulen
d65f199e12 Merge pull request #185 from mattermost/mm-1348
fixes mm-1348 removing dependency on redis
2015-07-17 14:45:50 -08:00
hmhealey
b620960cde Fix migration code so that LastName is populated correctly for users who only have one word in their FullName 2015-07-17 15:13:31 -04:00
hmhealey
9d8073328a Added FirstName and LastName fields to User object and attempt to populate them from the FullName/Nickname field 2015-07-17 15:13:31 -04:00
hmhealey
c09f1b9e4e Renamed FullName column in database to Nickname. Renamed all serverside references from FullName to Nickname. 2015-07-17 15:13:24 -04:00
nickago
1fe86a004e Added table updater 2015-07-16 11:26:14 -07:00
nickago
139f6611d6 Added last updated for pictures 2015-07-16 08:55:37 -07:00
Corey Hulen
593556d30d Merge pull request #153 from nickago/MM-1460
MM-1460 Updated database schema for emoji compatibility
2015-07-15 09:52:46 -08:00
=Corey Hulen
246d12aaf2 fixes mm-1348 removing dependency on redis 2015-07-14 15:12:04 -08:00
nickago
c3aed62031 Added timestamps to pictures to stop caching 2015-07-13 08:58:51 -07:00
=Corey Hulen
af63080c0d minor tweaks to make sure mysql still runs 2015-07-12 19:28:58 -08:00
=Corey Hulen
34d56294a2 Patching remainder of the sql stmts to work with postgres 2015-07-12 19:28:58 -08:00
=Corey Hulen
ff21a5c75f Fixes mm-1420 adding postgres support 2015-07-12 19:24:48 -08:00
nickago
c84baf230c Updated database schema for full utf8 compatibility 2015-07-09 08:34:36 -07:00
Joram Wilander
3012a7f532 Merge pull request #136 from mattermost/code-review
team code review
2015-07-08 09:07:47 -04:00
Corey Hulen
f6e8b4f310 Merge pull request #143 from rgarmsen2295/mm-1416
MM-1416 Changed error message when adding a previously deleted channel to be better suited
2015-07-07 23:12:08 -08:00
Christopher Speller
4e856c29b2 Merge pull request #138 from hmhealey/mm756
MM-756 Don't mark channels as unread after user joined/left messages
2015-07-07 13:36:05 -04:00
hmhealey
23e527978e Add a post type for user joined/left messages and don't flag a channel as unread when one of those is automatically posted 2015-07-07 11:00:29 -04:00
Reed Garmsen
f839b63496 Added new error message when trying to add a channel that was previously deleted as well as a corresponding unit test 2015-07-06 17:57:36 -07:00
=Corey Hulen
a84fc7b938 fixing build 2015-07-06 14:02:42 -08:00
=Corey Hulen
e3ab0a4e3d team code review 2015-07-06 11:20:40 -08:00
=Corey Hulen
34fb817a4a Fixing unit tests 2015-07-06 00:50:42 -08:00
=Corey Hulen
f2db93f111 adding debugging 2015-07-05 23:28:45 -08:00
=Corey Hulen
e26954ef46 adding debugging 2015-07-05 23:19:05 -08:00
=Corey Hulen
b95e053d41 fixing unit test 2015-07-05 10:22:52 -08:00
=Corey Hulen
4af59ee357 fixing unit test 2015-07-05 10:22:07 -08:00
=Corey Hulen
b0a917bbc7 fixing unit test 2015-07-05 10:09:47 -08:00
=Corey Hulen
b968ef04a0 fixing unit test 2015-07-05 10:04:01 -08:00
=Corey Hulen
9261b1ec62 fixing timming test 2015-07-05 09:33:08 -08:00
Corey Hulen
5e204030ff Merge pull request #62 from jedisct1/authenticated-encryption
SQL store: use authenticated encryption
2015-06-30 20:17:32 -08:00
nickago
bcc31b714b Added the ability to have hashtags with dashes in them 2015-06-30 11:57:57 -07:00
JoramWilander
366557b101 rebase touch-ups 2015-06-29 08:10:59 -04:00
JoramWilander
5ebeaffe64 fix more indenting 2015-06-29 07:45:12 -04:00
JoramWilander
b3168a6db8 fix indenting 2015-06-29 07:45:12 -04:00
JoramWilander
2b4888d062 fixes mm-1316 improves channel notifications UI and updates channellist etag 2015-06-29 07:45:12 -04:00
Frank Denis
34d688ca72 SQL store: use authenticated encryption
Data were encrypted using AES-CFB, with a properly randomized IV,
but without any authenticators. This allows the data to be tampered
with, without being noticed by the application.

This diff slightly changes the encryption/decryption functions in
sql_store.go to add a HMAC-SHA256 authenticator to encrypted messages.

Two keys are derived from AtRestEncryptKey: the first half of
SHA512(AtRestEncryptKey) for the block cipher and the second half for
the MAC. This can be changed to a KDF if needed.

The decryption function also checks that base64 decoding actually
worked, and that the ciphertext is long enough to include the IV and
the MAC.

Unfortunately, it breaks backward compatibility. But if such a change
has to be made, it has to be made early.
2015-06-24 16:56:57 +02:00
JoramWilander
799215ee22 move valet feature switch to DB from config 2015-06-17 12:07:35 -04:00
=Corey Hulen
fdb3f15274 fixing unit test 2015-06-16 10:16:26 -08:00
=Corey Hulen
dae0340d7d fixing unit test 2015-06-16 10:16:26 -08:00
=Corey Hulen
e521bfc076 changing unit test 2015-06-16 10:15:00 -08:00