joyent/node-triton#201 Assuming an RBAC role in triton CLI v5 throws error
Reviewed by: Julien Gilli <julien.gilli@joyent.com>
This commit is contained in:
parent
c56d0a25da
commit
9d8681a21b
@ -7,9 +7,13 @@ Known issues:
|
|||||||
|
|
||||||
## not yet released
|
## not yet released
|
||||||
|
|
||||||
|
- [joyent/node-triton#201] Fix `triton -r,--role ROLE ...` option for taking up
|
||||||
|
an RBAC role. This was introduced in v4.12.0 and was accidentally broken
|
||||||
|
in v5.0.0.
|
||||||
- [joyent/node-triton#217] `triton volume ls -l` should output a `RESOURCE`
|
- [joyent/node-triton#217] `triton volume ls -l` should output a `RESOURCE`
|
||||||
column.
|
column.
|
||||||
|
|
||||||
|
|
||||||
## 5.3.0
|
## 5.3.0
|
||||||
|
|
||||||
- [joyent/node-triton#173], [joyent/node-triton#174] and
|
- [joyent/node-triton#173], [joyent/node-triton#174] and
|
||||||
|
@ -62,6 +62,7 @@ var PROFILE_FIELDS = {
|
|||||||
keyId: true,
|
keyId: true,
|
||||||
insecure: true,
|
insecure: true,
|
||||||
user: true,
|
user: true,
|
||||||
|
roles: true,
|
||||||
actAsAccount: true
|
actAsAccount: true
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -234,6 +235,7 @@ function validateProfile(profile, profilePath) {
|
|||||||
profile.name === 'env' ? 'TRITON_USER or SDC_USER'
|
profile.name === 'env' ? 'TRITON_USER or SDC_USER'
|
||||||
: 'profile.user');
|
: 'profile.user');
|
||||||
assert.optionalString(profile.actAsAccount, 'profile.actAsAccount');
|
assert.optionalString(profile.actAsAccount, 'profile.actAsAccount');
|
||||||
|
assert.optionalArrayOfString(profile.roles, 'profile.roles');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
var msg = format('invalid %sprofile%s: %s',
|
var msg = format('invalid %sprofile%s: %s',
|
||||||
profile.name ? '"' + profile.name + '" ' : '',
|
profile.name ? '"' + profile.name + '" ' : '',
|
||||||
|
Reference in New Issue
Block a user