Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2020 03 10 #1010

Merged
merged 27 commits into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
153fc94
Update nginx to latest stable (#725)
jschaul Feb 18, 2020
d48b671
Small PRs! :) (#983)
fisx Feb 19, 2020
cd2d0b6
Merge branch 'master' into develop
fisx Feb 19, 2020
59feffd
fix nginx permissions in docker image (#985)
jschaul Feb 19, 2020
4267027
Cleanup compiler warnings (#984)
fisx Feb 20, 2020
fbfb428
Eliminate more CPP (#987)
fisx Feb 21, 2020
47684fe
Mock federator (#986)
fisx Feb 24, 2020
3afdae1
Refactor: separate HTTP handlers from app logic (galley) (#989)
mheinzel Feb 25, 2020
fca34f8
Ignore dist-newstyle (#991)
arianvp Feb 26, 2020
94d3766
Rename cassandra-schema.txt to cassandra-schema.cql (#992)
akshaymankar Feb 26, 2020
edd2361
Give handlers in gundeck, cannon stronger types (#990)
fisx Feb 26, 2020
8697b57
Typos in yaml-comments in stack snapshot.
fisx Feb 26, 2020
c4e1780
Upgrade hsaml2 (fixes utf8 handling in bytestrings). (#995)
fisx Feb 27, 2020
0f80653
Merge branch 'master' into develop
fisx Feb 27, 2020
b19ee99
Tweak ormolu script. (#998)
fisx Mar 2, 2020
4913e17
Move and create federation-related types (#997)
mheinzel Mar 3, 2020
a8a1ae9
Compile nginx with libzauth using nix (#988)
arianvp Mar 4, 2020
907837d
Cleanup (#1000)
fisx Mar 4, 2020
d62e1f8
Email visible to all users in same team (#999)
fisx Mar 5, 2020
5840348
Update types of some galley endpoints to be federation-aware (#1001)
mheinzel Mar 5, 2020
affbaba
Fix .gitignore shenanigans in Nix (#1002)
arianvp Mar 5, 2020
c568460
stack snapshot 3.0. (#1004)
fisx Mar 6, 2020
e784bee
move FUTUREWORK(federation) comment to right place
mheinzel Mar 6, 2020
b5ffbc0
Run hscim azure tests (#941)
fisx Mar 9, 2020
ce6994b
Remove autoconnect functionality; deprecate end-point. (#1005)
fisx Mar 10, 2020
07eaf10
ormolu.sh: make queries for options more robust (#1009)
mheinzel Mar 10, 2020
388284f
CHANGELOG.md
fisx Mar 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
target
Cargo.lock
./libs/libzauth/libzauth/Cargo.lock
*.aux*
*.chi
*.chs.h
Expand All @@ -24,6 +24,7 @@ ID
Setup.hs
cabal.sandbox.config
dist
dist-newstyle
gen-hs
log
tags
Expand Down Expand Up @@ -74,3 +75,13 @@ deploy/dockerephemeral/build/smtp/

# Ignore cabal files; use package.yaml instead
*.cabal

# Avoid storing generated keys
/deploy/services-demo/resources/turn/secret.txt

# Avoid storing generated keys (privkeys.txt and pubkeys.txt are generated by demo.sh)
/deploy/services-demo/resources/zauth/privkeys.txt
/deploy/services-demo/resources/zauth/pubkeys.txt

/libs/libzauth/bzauth-c/deb/usr

37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# 2020-03-10

## New features

- Remove autoconnect functionality; deprecate end-point. (#1005)
- Email visible to all users in same team (#999)

## Bug fixes

- fix nginx permissions in docker image (#985)

## Significant internal changes

- Update nginx to latest stable (#725)

## Internal Changes

- ormolu.sh: make queries for options more robust (#1009)
- Run hscim azure tests (#941)
- move FUTUREWORK(federation) comment to right place
- stack snapshot 3.0. (#1004, works around 8697b57609b523905641f943d68bbbe18de110e8)
- Fix .gitignore shenanigans in Nix (#1002)
- Update types of some galley endpoints to be federation-aware (#1001)
- Cleanup (#1000)
- Compile nginx with libzauth using nix (#988)
- Move and create federation-related types (#997)
- Tweak ormolu script. (#998)
- Give handlers in gundeck, cannon stronger types (#990)
- Rename cassandra-schema.txt to cassandra-schema.cql (#992)
- Ignore dist-newstyle (#991)
- Refactor: separate HTTP handlers from app logic (galley) (#989)
- Mock federator (#986)
- Eliminate more CPP (#987)
- Cleanup compiler warnings (#984)
- Make ormolu available in builder (#983)


# 2020-02-27

## Hotfix
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ run-docker-builder:
CASSANDRA_CONTAINER := $(shell docker ps | grep '/cassandra:' | perl -ne '/^(\S+)\s/ && print $$1')
.PHONY: git-add-cassandra-schema
git-add-cassandra-schema: db-reset
( echo '# automatically generated with `make git-add-cassandra-schema`' ; docker exec -i $(CASSANDRA_CONTAINER) /usr/bin/cqlsh -e "DESCRIBE schema;" ) > ./docs/reference/cassandra-schema.txt
git add ./docs/reference/cassandra-schema.txt
( echo '-- automatically generated with `make git-add-cassandra-schema`' ; docker exec -i $(CASSANDRA_CONTAINER) /usr/bin/cqlsh -e "DESCRIBE schema;" ) > ./docs/reference/cassandra-schema.cql
git add ./docs/reference/cassandra-schema.cql

.PHONY: db-reset
db-reset:
Expand Down
1 change: 1 addition & 0 deletions build/alpine/Dockerfile.builder
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN set -x && \
stack build --haddock --dependencies-only haskell-src-exts && \
stack build --haddock --no-haddock-hyperlink-source haskell-src-exts && \
stack build --pedantic --haddock --test --no-run-tests --bench --no-run-benchmarks --dependencies-only && \
stack install ormolu && \
cd / && \
# we run the build only to cache the built source in /root/.stack, we can remove the source code itself
rm -rf /wire-server
4 changes: 2 additions & 2 deletions deploy/services-demo/conf/nginz/nginx-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ http {
listen 8080;
listen 8081;

zauth_keystore resources/zauth/pubkeys.txt;
zauth_acl conf/nginz/zauth_acl.txt;
zauth_keystore /configs/resources/zauth/pubkeys.txt;
zauth_acl /configs/conf/nginz/zauth_acl.txt;

location /status {
zauth off;
Expand Down
2 changes: 0 additions & 2 deletions deploy/services-demo/resources/turn/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions deploy/services-demo/resources/zauth/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# automatically generated with `make git-add-cassandra-schema`
-- automatically generated with `make git-add-cassandra-schema`

CREATE KEYSPACE galley_test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;

Expand Down Expand Up @@ -1380,6 +1380,26 @@ CREATE TABLE spar_test.idp (
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';

CREATE TABLE spar_test.default_idp (
partition_key_always_default text,
idp uuid,
PRIMARY KEY (partition_key_always_default, idp)
) WITH CLUSTERING ORDER BY (idp ASC)
AND bloom_filter_fp_chance = 0.1
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';

CREATE TABLE spar_test.team_provisioning_by_team (
team uuid,
id uuid,
Expand Down
2 changes: 0 additions & 2 deletions docs/reference/user/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ Members of the same team are always considered connected, see [Connections betwe

Internally, connection status is a _directed_ edge from one user to another that is attributed with a relation state and some meta information. If a user has a connection to another user, it can be in one of the six [connection states](#RefConnectionStates).

TODO describe autoconnection and onboarding.

## Connection states {#RefConnectionStates}

### Sent {#RefConnectionSent}
Expand Down
3 changes: 2 additions & 1 deletion libs/api-bot/src/Network/Wire/Bot/Crypto.hs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ encrypt cl cnv val = fmap (OtrRecipients . UserClientMap)
ciphertext <- do
bs <- CBox.encrypt s val >>= unwrap >>= CBox.copyBytes
return $! decodeUtf8 $! B64.encode bs
return $ Map.insertWith Map.union u (Map.singleton c ciphertext) rcps
let userId = makeIdOpaque u
return $ Map.insertWith Map.union userId (Map.singleton c ciphertext) rcps

-- | Decrypt an OTR message received from a given user and client.
decrypt :: BotClient -> UserId -> ClientId -> ByteString -> BotSession ByteString
Expand Down
4 changes: 2 additions & 2 deletions libs/api-client/src/Network/Wire/Client/API/Conversation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ postOtrMessage cnv msg = sessionRequest req rsc readBody
-- will be thrown. It's not possible that some users will be added and
-- others will not.
addMembers :: (MonadSession m, MonadThrow m) => ConvId -> List1 UserId -> m (Maybe (ConvEvent SimpleMembers))
addMembers cnv mems = do
addMembers cnv (fmap makeIdOpaque -> mems) = do
rs <- sessionRequest req rsc consumeBody
case statusCode rs of
200 -> Just <$> responseJsonThrow (ParseError . pack) rs
Expand Down Expand Up @@ -114,7 +114,7 @@ createConv ::
-- | Conversation name
Maybe Text ->
m Conversation
createConv users name = sessionRequest req rsc readBody
createConv (fmap makeIdOpaque -> users) name = sessionRequest req rsc readBody
where
req =
method POST
Expand Down
30 changes: 7 additions & 23 deletions libs/brig-types/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ library:
- base64-bytestring >=1.0
- bytestring >=0.9
- bytestring-conversion >=0.2
- case-insensitive
- cassandra-util
- containers >=0.5
- currency-codes >=2.0
- errors >=1.4
- extra
- galley-types >=0.45.7
- hashable
- iproute >=1.5
Expand All @@ -34,6 +37,9 @@ library:
- lens-aeson
- network-uri >=2.6
- pem >=0.2
- QuickCheck >=2.9
- quickcheck-instances >=0.3.16
- random
- safe >=0.3
- scientific >=0.3.4
- singletons >=2.0
Expand All @@ -42,21 +48,8 @@ library:
- time >=1.1
- types-common >=0.16
- unordered-containers >=0.2
- uri-bytestring
- uuid >=1.3
- case-insensitive
when:
- condition: flag(cql)
cpp-options: -DWITH_CQL
dependencies:
- cassandra-util
- condition: flag(arbitrary)
cpp-options: -DWITH_ARBITRARY
dependencies:
- extra
- QuickCheck >=2.9
- quickcheck-instances >=0.3.16
- random
- uri-bytestring
tests:
brig-types-tests:
main: Main.hs
Expand Down Expand Up @@ -91,12 +84,3 @@ tests:
- uuid
- uri-bytestring
- vector
flags:
cql:
description: Enable cql instances
manual: true
default: false
arbitrary:
description: Enable quickcheck arbitrary instances
manual: true
default: true
1 change: 0 additions & 1 deletion libs/brig-types/src/Brig/Types.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Brig.Types (module M) where

import Brig.Types.Activation as M
import Brig.Types.AddressBook as M
import Brig.Types.Client as M
import Brig.Types.Connection as M
import Brig.Types.Properties as M
Expand Down
109 changes: 0 additions & 109 deletions libs/brig-types/src/Brig/Types/AddressBook.hs

This file was deleted.

Loading