Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 15 additions & 15 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.22.10
version: 1.25.0
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.6.7
ref: v1.7.2
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
- go@1.21.0
- node@18.20.5
- node@22.16.0
- python@3.10.8
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
Expand All @@ -23,23 +23,23 @@ lint:
- pydgraph/proto/api_pb*.py

enabled:
- trivy@0.59.1
- trivy@0.66.0
- trivy@0.58.2
- renovate@39.161.0
- renovate@41.99.6
- actionlint@1.7.7
- bandit@1.8.2
- bandit@1.8.6
- black@25.1.0
- checkov@3.2.365
- checkov@3.2.470
- git-diff-check
- isort@6.0.0
- markdownlint@0.44.0
- prettier@3.4.2
- ruff@0.9.4
- shellcheck@0.10.0
- isort@6.0.1
- markdownlint@0.45.0
- prettier@3.6.2
- ruff@0.12.12
- shellcheck@0.11.0
- shfmt@3.6.0
- taplo@0.9.3
- trufflehog@3.88.4
- yamllint@1.35.1
- taplo@0.10.0
- trufflehog@3.90.6
- yamllint@1.37.1
actions:
enabled:
- trunk-announce
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project
adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

**Added**

- Add v25 Dgraph API
- Added new `run_dql()` method for executing DQL queries directly
- Added `allocate_uids()` method for allocating unique identifiers
- Added `allocate_timestamps()` method for allocating timestamps
- Added `allocate_namespaces()` method for allocating namespace IDs
- Added namespace management methods:
- `create_namespace()` - Creates a new namespace and returns its ID
- `drop_namespace()` - Drops the specified namespace
- `list_namespaces()` - Lists all available namespaces
- Updated proto definitions to support Dgraph v25 API
- Enhanced client functionality with new gRPC service methods

## [v24.3.0] - 2025-07-29

**Chore**
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Valid connection string args:
| apikey | \<key\> | a Dgraph Cloud API Key |
| bearertoken | \<token\> | an access token |
| sslmode | disable \| require \| verify-ca | TLS option, the default is `disable`. If `verify-ca` is set, the TLS certificate configured in the Dgraph cluster must be from a valid certificate authority. |
| namespace | \<namespace\> | a previously created integer-based namespace, username and password must be supplied |

Note the `sslmode=require` pair is not supported and will throw an Exception if used. Python grpc
does not support traffic over TLS that does not fully verify the certificate and domain. Developers
Expand All @@ -115,6 +116,7 @@ Some example connection strings:
| dgraph://sally:supersecret@dg.example.com:443?sslmode=verify-ca | Connect to remote server, use ACL and require TLS and a valid certificate from a CA |
| dgraph://foo-bar.grpc.us-west-2.aws.cloud.dgraph.io:443?sslmode=verify-ca&apikey=\<your-api-connection-key\> | Connect to a Dgraph Cloud cluster |
| dgraph://foo-bar.grpc.hypermode.com:443?sslmode=verify-ca&bearertoken=\<some access token\> | Connect to a Dgraph cluster protected by a secure gateway |
| dgraph://sally:supersecret@dg.example.com:443?namespace=2 | Connect to a ACL enabled Dgraph cluster in namespace 2 |

Using the `Open` function with a connection string:

Expand Down
12 changes: 6 additions & 6 deletions examples/tls/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ services:
command:
dgraph alpha --port_offset 0 --my=alpha1:7080 --zero=zero1:5080 --expose_trace --trace
ratio=1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --security
whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl
"secret-file=/dgraph-acl/hmac-secret;access-ttl=3s;refresh-ttl=5s" --tls
whitelist=0.0.0.0/0 --acl "secret-file=/dgraph-acl/hmac-secret;access-ttl=3s;refresh-ttl=5s"
--tls
"client-auth-type=REQUIREANDVERIFY;ca-cert=/dgraph-tls/ca.crt;server-cert=/dgraph-tls/node.crt;server-key=/dgraph-tls/node.key"

alpha2:
Expand All @@ -95,8 +95,8 @@ services:
command:
dgraph alpha --port_offset 2 --my=alpha2:7082 --zero=zero1:5080 --expose_trace --trace
ratio=1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --security
whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl
"secret-file=/dgraph-acl/hmac-secret;access-ttl=3s;refresh-ttl=5s" --tls
whitelist=0.0.0.0/0 --acl "secret-file=/dgraph-acl/hmac-secret;access-ttl=3s;refresh-ttl=5s"
--tls
"client-auth-type=REQUIREANDVERIFY;ca-cert=/dgraph-tls/ca.crt;server-cert=/dgraph-tls/node.crt;server-key=/dgraph-tls/node.key"

alpha3:
Expand All @@ -123,6 +123,6 @@ services:
command:
dgraph alpha --port_offset 3 --my=alpha3:7083 --zero=zero1:5080 --expose_trace --trace
ratio=1.0 --profile_mode block --block_rate 10 --logtostderr -v=2 --security
whitelist=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 --acl
"secret-file=/dgraph-acl/hmac-secret;access-ttl=3s;refresh-ttl=5s" --tls
whitelist=0.0.0.0/0 --acl "secret-file=/dgraph-acl/hmac-secret;access-ttl=3s;refresh-ttl=5s"
--tls
"client-auth-type=REQUIREANDVERIFY;ca-cert=/dgraph-tls/ca.crt;server-cert=/dgraph-tls/node.crt;server-key=/dgraph-tls/node.key"
Loading
Loading