mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-31 18:48:08 +00:00
* fix * changelog Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
This commit is contained in:
3
changelog/23470.txt
Normal file
3
changelog/23470.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
ui: Fix AWS secret engine to allow empty policy_document field.
|
||||||
|
```
|
||||||
@@ -6,6 +6,8 @@
|
|||||||
import { helper as buildHelper } from '@ember/component/helper';
|
import { helper as buildHelper } from '@ember/component/helper';
|
||||||
|
|
||||||
export function jsonify([target]) {
|
export function jsonify([target]) {
|
||||||
|
// aws secret engine needs to be able to send an empty json value on the field policy_document
|
||||||
|
if (!target) return;
|
||||||
return JSON.parse(target);
|
return JSON.parse(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export default Model.extend({
|
|||||||
editType: 'json',
|
editType: 'json',
|
||||||
helpText:
|
helpText:
|
||||||
'A policy is an object in AWS that, when associated with an identity or resource, defines their permissions.',
|
'A policy is an object in AWS that, when associated with an identity or resource, defines their permissions.',
|
||||||
defaultValue: '{\n}',
|
// Cannot have a default_value on policy_document because in some cases AWS expects this value to be empty.
|
||||||
}),
|
}),
|
||||||
fields: computed('credentialType', function () {
|
fields: computed('credentialType', function () {
|
||||||
const credentialType = this.credentialType;
|
const credentialType = this.credentialType;
|
||||||
|
|||||||
Reference in New Issue
Block a user