mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-21 22:51:09 +02:00
* setup the toggle to display mount configuration options * whew.. getting there. aws only, borked for ssh * another round, better than before * masked things * changelog * fix broken oss test * move to component * handle ssh things and cleanup * wip test coverage * test coverage for the component * copywrite header miss * update no model error * setup configuration aws acceptance tests * update CONFIURABLE_SECRET_ENGINES * acceptance tests for aws * ssh configuration * clean up * remove comment * move to confirm model before destructuring * pr comments * fix check for ssh config error * add message check in api error test * pr comments
33 lines
970 B
JavaScript
33 lines
970 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Model, { attr } from '@ember-data/model';
|
|
import { expandAttributeMeta } from 'vault/utils/field-to-attrs';
|
|
|
|
export default class AwsRootConfig extends Model {
|
|
@attr('string') backend; // dynamic path of secret -- set on response from value passed to queryRecord
|
|
@attr('string') accessKey;
|
|
@attr('string') region;
|
|
@attr('string', {
|
|
label: 'IAM endpoint',
|
|
})
|
|
iamEndpoint;
|
|
@attr('string', {
|
|
label: 'STS endpoint',
|
|
})
|
|
stsEndpoint;
|
|
@attr('number', {
|
|
defaultValue: -1,
|
|
label: 'Maximum retries',
|
|
subText: 'Number of max retries the client should use for recoverable errors. Default is -1.',
|
|
})
|
|
maxRetries;
|
|
// there are more options available on the API, but the UI does not support them yet.
|
|
get attrs() {
|
|
const keys = ['accessKey', 'region', 'iamEndpoint', 'stsEndpoint', 'maxRetries'];
|
|
return expandAttributeMeta(this, keys);
|
|
}
|
|
}
|