Skip to content

Commit 3985096

Browse files
authored
Merge pull request #50 from jamesottinger/unifynodebalancerconfigssl
ssl changes to /nodebalancers/$id/configs/$id/ssl and PUT /nodebalancers/$id/configs/$id
2 parents dfc1797 + 0f038d8 commit 3985096

File tree

2 files changed

+20
-27
lines changed

2 files changed

+20
-27
lines changed

src/data/endpoints/nodebalancers.yaml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,14 @@ endpoints:
212212
type: Boolean
213213
optional: true
214214
value: true
215-
# ssl_cert:
216-
# description: SSL certificate served by the NodeBalancer when the protocol is "https".
217-
# ssl_key:
218-
# description: Unpassphrased private key for the SSL certificate when the protocol is "https".
215+
ssl_cert:
216+
description: SSL certificate served by the NodeBalancer when the protocol is "https".
217+
type: String
218+
optional: true
219+
ssl_key:
220+
description: Unpassphrased private key for the SSL certificate when the protocol is "https".
221+
type: String
222+
optional: true
219223
cipher_suite:
220224
description: SSL cipher suite to enforce.
221225
type: Enum
@@ -282,27 +286,6 @@ endpoints:
282286
python: |
283287
nb_config = linode.NodeBalancerConfig(client, 456, 123) # linode_client, nodebalancer_config_id, nodebalancer_id
284288
nb_config.delete()
285-
/nodebalancers/$id/configs/$id/ssl:
286-
group: Configs
287-
type: resource
288-
authenticated: true
289-
description: >
290-
Add or update SSL certificate and https protocol to an existing config profile.
291-
methods:
292-
POST:
293-
oauth: nodebalancers:modify
294-
description: Adds/updates SSL certificates
295-
examples:
296-
curl: |
297-
curl -H "Content-Type: application/json" \
298-
-H "Authorization: Bearer $TOKEN" \
299-
-X POST -d '{
300-
"ssl_cert": "----- BEGIN CERTIFICATE ----- < etc...> ----- END CERTIFICATE -----",
301-
"ssl_key": "----- BEGIN PRIVATE KEY ----- < etc...> ----- END PRIVATE KEY -----"
302-
}' \
303-
https://$api_root/$version/nodebalancers/$nodebalancer_id/configs/$config_id/ssl
304-
python: |
305-
# currently unimplemented
306289
/nodebalancers/$id/configs/$id/nodes:
307290
group: Configs
308291
authenticated: true

src/data/objects/nodebalancer_config.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,23 @@ schema:
7070
ssl_commonname:
7171
editable: true
7272
type: String
73-
value:
73+
value: "www.example.com"
7474
description: Common Name of the configured SSL certificate, if present.
7575
ssl_fingerprint:
7676
editable: true
7777
type: String
78-
value:
78+
value: "00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33"
7979
description: SSL Certificate fingerprint, if present.
80+
ssl_cert:
81+
editable: true
82+
type: String
83+
value:
84+
description: SSL Certificate, if present.
85+
ssl_key:
86+
editable: true
87+
type: String
88+
value:
89+
description: SSL Key, if present.
8090
cipher_suite:
8191
editable: true
8292
type: Enum

0 commit comments

Comments
 (0)