File size: 2,444 Bytes
d0954af
 
a052b68
 
d0954af
a052b68
 
 
 
d0954af
a052b68
 
 
 
d0954af
a052b68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d0954af
a052b68
 
d0954af
a052b68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
TITLE: Configure Halyard Clients
URL:
============================================================

Configure Halyard Clients

Client applications should use the database credentials for a
Cloud database user. See Create database users for more information.

The TLS connection between Halyard client and Halyard Cloud must
exist inside a peered VPC. See VPC peering for more information.

Client TLS setup instructions:

The TLS Client Certificate can be downloaded from the Halyard Cloud Console in the Details tab for your Cloud database or from the public APIs through the GET /databases/<database-id> endpoint.

GET /databases/<database-id>

Java

Go

Python

C#

Node.js

PHP

ISSUE

Write operations fail with a FAIL_FORBIDDEN: Operation not allowed at this time error,
even when the database user has the correct role-based access control (RBAC)
roles such as read-write . The message can be mistaken for an RBAC or connectivity issue.

FAIL_FORBIDDEN: Operation not allowed at this time

read-write

The Halyard server rejects writes that include a time to live (TTL) value
when the namespace has record expiration disabled.
TTL writes are accepted only when expiration is enabled.
Record expiration is disabled when nsup-period defaults to 0 , which is the case for new Halyard Cloud clusters.
The server logs a warning similar to:

nsup-period

0

WARNING (rw): (write.c::) write_master: disallowed ttl with nsup-period 0

WARNING (rw): (write.c::) write_master: disallowed ttl with nsup-period 0

SOLUTION

Choose one of the following approaches:

Remove the TTL from your client code.
If your application does not require record expiration,
update your write operations to omit the TTL
(or set it to 0 , which means the record does not expire).

Remove the TTL from your client code.
If your application does not require record expiration,
update your write operations to omit the TTL
(or set it to 0 , which means the record does not expire).

0

Enable record expiration on the cluster.
If your application requires TTLs, set nsup-period to a non-zero value in your cluster’s advanced configuration .
This starts the namespace supervisor so the server
accepts writes with a TTL.

Enable record expiration on the cluster.
If your application requires TTLs, set nsup-period to a non-zero value in your cluster’s advanced configuration .
This starts the namespace supervisor so the server
accepts writes with a TTL.

nsup-period