Commit Graph

9356 Commits

Author SHA1 Message Date
pbatko-da
550ed7ca51
[User management] Document errors and required/optional fiels in user management proto definition. (#12873)
changelog_begin
changelog_end
2022-02-11 15:08:37 +01:00
pbatko-da
099c827338
[User management] Add user based authorization support to bench-tool. (#12871)
Adds a new bench-tool CLI option: '--user-based-authorization-secret=<secret>' that enables user based authorization.

changelog_begin
changelog_end
2022-02-11 14:45:31 +01:00
Victor Peter Rouven Müller
2617213251
Fix dependabot alert for glob-parent (#12890)
* Fix dependabot alert for glob-parent

changelog_begin
changelog_end

* Also update the yarn lock file after making changes xD
2022-02-11 12:58:37 +00:00
mziolekda
d9d8083451
Remove references to pre-canton sandbox from documentation (#12888)
* Remove references to pre-canton sandbox from documentation

CHANGELOG_BEGIN
CHANGELOG_END

* address review comments
2022-02-11 13:57:44 +01:00
Victor Peter Rouven Müller
300bbf86ae
[JSON-API] Fix duplicate calls to the command service while debug logging is enabled (#12699)
* Fix duplicate calls to the command service while debug logging is enabled

changelog_begin

- [HTTP-JSON] Fixed duplicate calls to the command service while debug logging is enabled.
- [HTTP-JSON] Fixed internal server errors which can occur while debug logging is enabled.

changelog_end

* Cleanup the code a bit, test still failing tho :(

* Finally fix the bug for real now

* Address review comments

* don't cast

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-02-11 12:53:31 +00:00
Victor Peter Rouven Müller
9e77b8dbf6
Fix logging of internal server errors for the json api (#12822)
changelog_begin

- [HTTP-JSON] Internal server errors are now properly logged again. See `issue #12887 <https://github.com/digital-asset/daml/issues/12887>`__.

changelog_end
2022-02-11 13:51:44 +01:00
Kamil Bozek
9785101254
Remove references to the legacy error codes from docs (#12749)
CHANGELOG_BEGIN
CHANGELOG_END
2022-02-11 13:23:07 +01:00
Victor Peter Rouven Müller
c0c40bd10f
Add autoformatting to ts bindings & navigator frontend (#12693)
* Add autoformatting for the ts&tsx files (typescript effectively)

changelog_begin
changelog_end

* Format ts files

* Fix ts linter warnings
2022-02-11 11:44:52 +00:00
Moisés Ackerman
a179f03197
Enable go-to-definition for interfaces (#12865)
* Add goto definition test cases for exceptions and interfaces

changelog_begin
changelog_end
2022-02-11 11:01:30 +00:00
Remy
6983af8133
Speedy: Fix computation of Node version (#12879)
The computation of Node version relies on the
`packageToTransactionVersion` field of the PartialTransaction.  This
is initialized during the Speedy `Machine` construction with the
compiledPackage used to initialized the Machine. However the
compiledPackage is a mutable field and can be udpated during
interpreation, potentially making the 'PartialTransaction''s
`packageToTransactionVersion` out of date.

This is not a production bug, as production code use the Machine's
`CompiledPackage` in a imutable way (with a mutable
ConcurrentCompilePackage), however this is a problem for testing code
that may use the field in a mutable way (with an immutable
`PureCompiledPackage`).

We solve the issue by making the computation of the version, outise
the PartialTransaction object.

CHANGELOG_BEGING
CHANGELOG_END
2022-02-11 10:22:10 +01:00
nickchapman-da
1ca90b6013
Split out phase1 of speedy compilation in preparation for making it stack-safe. (#12877)
changelog_begin
changelog_end
2022-02-11 09:14:40 +00:00
Stefano Baghino
72f673fb33
Fix typo in NOTICES.md (#12884)
changelog_begin
changelog_end
2022-02-11 08:19:26 +00:00
Moritz Kiefer
6a91fdfe22
Fix version check in docs cron (#12882)
2 is not a valid version

changelog_begin
changelog_end
2022-02-10 20:25:04 +00:00
mziolekda
42ff83d456
Remove daml on sql artifacts and docs (#12870)
* stop publishing daml on sql aka Daml Driver for PotgreSQL

CHANGELOG_BEGIN
Stop publishing Daml Driver for PostgreSQL
CHANGELOG_END
2022-02-10 18:01:18 +00:00
Oliver Seeliger
88305966ff
Update canton ledger api test tool tests (#12872)
* Canton test removal of pruning conformance test

changelog_begin
changelog_end

* Fixup tests so that they appear in the same order as in the canton repo
2022-02-10 18:31:35 +01:00
Stephen Compall
8ad957530f
port oauth2.TestMiddleware to test user tokens as well (#12855)
CHANGELOG_BEGIN
CHANGELOG_END
2022-02-10 16:16:31 +00:00
Gary Verhaegen
356dd58cf0
split: tell slack (#12874)
Also, change timing of nightly snapshot to work better with Canton.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-10 15:33:34 +00:00
azure-pipelines[bot]
ee004bcf21
rotate release duty after 2022-02-09 (#12832)
@ray-roestenburg-da is taking care of testing today's release, so they get pushed back to the end of the line.

Please do not merge this before the release is fully tested.

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-02-10 16:15:05 +01:00
Moisés Ackerman
a59156084f
Generate Eq instances for interfaces (#12850)
changelog_begin
changelog_end
2022-02-10 15:13:20 +00:00
Gary Verhaegen
9409ed4d09
release steps: clarify last one (#12875)
Also, remove the need to post on two channels.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-10 16:07:44 +01:00
Raymond Roestenburg
0c08c1cb01
Create users in quickstart template. (#12868)
changelog_begin
changelog_end
2022-02-10 15:25:26 +01:00
Moritz Kiefer
5b4fdf0757
Create alias contracts in frontend in create-daml-app (#12848)
* Create alias contracts in frontend in create-daml-app

Creating them in the setup script is nice but it makes it much harder
to port this to Daml hub where we cannot rely on this.

This also requires figuring out the public party in the frontend.

I’ve chosen to infer it from the user rights which seems broadly
sensible.

For the backwards compat mode, I just hardcoded it because there isn’t
a great way to figure it out.

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-02-10 15:04:13 +01:00
Samir Talwar
83ed13d799
Split the ledger-api-test-tool into libraries, under /ledger/ledger-api-tests. [KVL-1076] (#12771)
* Move //ledger/ledger-api-test-tool to //ledger/ledger-api-tests/tool.

And conformance.bzl to //ledger/ledger-api-tests.

* Move test tool infra to //ledger/ledger-api-tests/infrastructure.

* Split the ledger API test tool into smaller libraries.

There is no change to behavior.

CHANGELOG_BEGIN
CHANGELOG_END

* ledger-api-tests: Encapsulate performance tests.

* ledger-api-tests: Extract a "runner" library.

* ledger-api-tests: Publish libraries to Maven Central.

* ledger-api-tests: Fix Scaladoc so it compiles correctly.

Unfortunately I had to remove some Scaladoc in ActiveContractsServiceIT
which is incorrectly interpreted as not being attached to anything.
Fortunately, it's not actually that helpful.

* compatibility: Fix paths to the Ledger API Test Tool.

* Fix release types for ledger API test libraries.

* test-common: Publish generated Scala.

These libraries are dependencies of the ledger API tests components.

* ledger-api-tests: Use "com.daml" as the group ID everywhere.

* ledger-api-tests: Check that tests in `--additional` are valid.

* compatibility: Fix a reference to ledger-api-test-tool I missed.
2022-02-10 13:25:23 +00:00
Moritz Kiefer
0b64817fdb
Rename Canton repl to Canton console (#12866)
Product decided on console so console it is. Name bikeshedding will
not be accepted.

changelog_begin
changelog_end
2022-02-10 13:18:03 +00:00
Moritz Kiefer
a03a0896c5
Create users in skeleton template (#12864)
changelog_begin
changelog_end
2022-02-10 11:57:21 +00:00
Moritz Kiefer
ecaed8dcef
Rename Canton repl (#12863)
This is really somewhat specific to the Canton sandbox so we should
make that explcit.

changelog_begin
changelog_end
2022-02-10 12:36:10 +01:00
azure-pipelines[bot]
1d145e0238
update NOTICES file (#12857)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-02-10 11:16:08 +00:00
Stefano Baghino
0fbf76599a
Restore comment about keeping Helm Chart docs in sync (#12862)
As noted by @garyverhaegen-da in https://github.com/digital-asset/daml/pull/12859#issuecomment-1034744480

Double checked that the comment syntax is used correctly and doesn't get
rendered on our docs.

changelog_begin
changelog_end
2022-02-10 10:58:04 +00:00
Stefano Baghino
1f247b0d40
Remove unnecessary comment from Helm Chart docs (#12859)
changelog_begin
changelog_end
2022-02-10 10:12:40 +00:00
Kamil Bozek
77401d452c
Remove the possibility to turn on legacy error codes [DPP-773] (#12721)
* Remove the possibility to turn on legacy error codes

CHANGELOG_BEGIN
- Switching to the legacy error codes is not possible.
CHANGELOG_END

* Revert breaking experimental features proto definitions

* Deprecate legacy error codes in proto definitions

* Proper todo naming

* Adjust compatibility tests

* Fix unintentional paste
2022-02-10 10:09:02 +01:00
pbatko-da
803f33b27e
[User management] Use encoded protobuf as page token for listing users. [DPP-888] (#12764)
changelog_begin
changelog_end
2022-02-10 10:08:23 +01:00
Moritz Kiefer
d2f6224546
Fix Canton sha256sum (#12858)
changelog_begin
changelog_end
2022-02-10 08:31:33 +00:00
Moritz Kiefer
9830e8947f
Drop uniqueness from user aliases (#12846)
* Drop uniqueness from user aliases

We cannot support this on Daml Hub or multi-domain Canton so dropping
it seems more reasonable unfortunately.

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-02-10 08:44:53 +01:00
Moritz Kiefer
8b8ee4c9e5
Bump Canton and reenable tests (#12852)
* Bump Canton and reenable tests

fixes #12808

changelog_begin
changelog_end

* display names are no longer defaulted

changelog_begin
changelog_end

* topology-change-delay is redundant

changelog_begin
changelog_end

* Switch away from grpcurl

changelog_begin
changelog_end

* try to fix canton conformance tests

changelog_begin
changelog_end

* that’s not how you scala

changelog_begin
changelog_end
2022-02-10 08:13:44 +01:00
Marton Nagy
f27977953d
Clean maximum ledger time interface (#12844)
* add Scala Doc, change name for communicating the purpose better
* change return type for not passing data in exceptions
* adapt usage

changelog_begin
changelog_end
2022-02-10 02:06:59 +00:00
Gary Verhaegen
449a68cb33
Fix es (#12845)
A node seemed to have died so I connected to investigate and you know
the rest of this story.

CHANGELOG_BEGIN
CHANGELOG_END
2022-02-09 19:33:25 +00:00
Stefano Baghino
69a4136057
Add @ray-roestenburg-da to CODEOWNERS (#12847)
* Add @ray-roestenburg-da to `CODEOWNERS`

Add @ray-roestenburg-da to `CODEOWNERS` for all code
in the App Runtime team (bindings, HTTP JSON API, trigger
service, auth middlware, non-repudiation middleware).

changelog_begin
changelog_end

* Address https://github.com/digital-asset/daml/pull/12847#discussion_r802700759
2022-02-09 19:35:36 +01:00
Moisés Ackerman
e5c00c4dea
Replace quickstart scenarios with daml script (#12827)
* Replace references to scenarios with script in quickstart guide

* ensure initial part of trade_test matches initialize script

* update transaction view result

changelog_begin
changelog_end
2022-02-09 18:48:09 +01:00
Moritz Kiefer
0fb0bf2f52
Disable implicit party allocation in Daml Studio (#12839)
* Disable implicit party allocation in Daml Studio

fixes #12058

This matches what sandbox does in 2.0 so it reduces a source of
inconsistency and potential confusion.

changelog_begin
changelog_end

* Update compiler/scenario-service/protos/scenario_service.proto

Co-authored-by: Remy <remy.haemmerle@daml.com>

Co-authored-by: Remy <remy.haemmerle@daml.com>
2022-02-09 17:47:40 +00:00
tudor-da
a860b9390f
[Sandbox-on-X] Deduplication state perf optimization (#12802)
* [Sandbox-on-X] Optimal deduplication algorithm

changelog_begin
changelog_end

* Dropped `Unsafe` from UnsafeDeduplicationStateQueueMap

* Addressed Marton's review comments
* Update the deduplication state on duplicate
* Optimize `withoutOlderThan`

* Reverted DeduplicationStateQueueMap optimization
2022-02-09 16:08:39 +00:00
Sofia Faro
55cada7c47
Make interfaceTypeRep return a TemplateTypeRep (#12838)
* Make interfaceTypeRep return a TemplateTypeRep

Part of https://github.com/digital-asset/daml/issues/12788

* Update bazel-haskell-deps and code

changelog_begin
changelog_end

* Add missing import

* update ghc-lib sha

* update bazel-haskell-deps
2022-02-09 15:39:08 +00:00
Moritz Kiefer
eb19df6cd8
Setup infrastructure to cross-link to Canton docs (#12824)
* Setup infrastructure to cross-link to Canton docs

fixes #12811

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-02-09 16:21:56 +01:00
Moritz Kiefer
857dff9cd6
Remove option to spin up ledger in-process in daml test-script (#12842)
* Remove option to spin up ledger in-process in daml test-script

This drops the dependency on the kv sandbox which we need to kill for
2.0.

part of #12837

changelog_begin
changelog_end

* .

changelog_begin
changelog_end
2022-02-09 16:18:40 +01:00
Moritz Kiefer
a30b7b9dda
New split release including jdbc downgrade (#12843)
changelog_begin
changelog_end
2022-02-09 13:52:16 +00:00
Moritz Kiefer
b7fc9f5731
Downgrade pgjdbc to 42.2.25 (#12834)
This also includes a fix for the CVE and 42.3 resulted in performance
degredations for Canton.

changelog_begin
changelog_end
2022-02-09 12:41:31 +01:00
Stephen Compall
dc77d35f97
move endpoint functions to separate package (#12805)
* move user management endpoint functions to separate module

* no changelog

CHANGELOG_BEGIN
CHANGELOG_END

* move create and exercise endpoints to separate module

* fix copyright headers

* mark the helpers package-private

* more privacy modifiers

* import cleanup

* move Forwarded header test to unit tests

* move decodeAndParseUserIdFromToken to UserManagement

* move package endpoints to separate module
2022-02-09 11:32:31 +01:00
Moritz Kiefer
690eb350de
Bump rules_haskell (#12828)
This includes a patch which should make single-threaded
compilation (what we use) deterministic and therefore improve caching.

changelog_begin
changelog_end
2022-02-09 11:16:30 +01:00
Adriaan Moors
46c32289c0
Navigator supports user management (#12187)
Add basic support for user management to navigator:
log in as a user, act/read as its primary party.

When user management is supported & enabled, you can
only log in as a user (and that user must have a
primary party, which is what you'll actually be
acting/reading as).

The above is the default behavior. It can be disabled
using a feature flag (`--feature-user-management`),
and you can also still specify parties explicitly 
in the config file.


CHANGELOG_BEGIN
Navigator supports user management by default. To disable,
use `--feature-user-management false` or specify parties 
explicitly in `daml.yaml`.
CHANGELOG_END



Co-authored-by: Robert Autenrieth <31539813+rautenrieth-da@users.noreply.github.com>
Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
Co-authored-by: Victor Peter Rouven Müller <mueller.vpr@gmail.com>
2022-02-09 10:28:30 +01:00
azure-pipelines[bot]
d3ec383991
update NOTICES file (#12833)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2022-02-09 10:15:35 +01:00
nicu-da
7b70711c55
[ledger-api-test-tool] - Retry pruning and add extra submissions (#12825) 2022-02-08 10:44:55 -08:00