Dharini Jeeva
3fc22b4aa3
fix: 🐛 clear token on normalization ( #1351 )
...
* fix: 🐛 clear token on normalization
2022-09-26 18:25:02 -07:00
Cameron Perera
cd9d3e91e5
refactor: 💡 Add worker_filter to vault credential stores ( #1310 )
...
* refactor: 💡 Add worker_filter to vault credential stores
Add worker_filter attribute to vault type credential store model
✅ Closes: ICU-5988
* refactor: 💡 Add worker_filter mirage mock for credential store (#1312 )
✅ Closes: ICU-5990
2022-09-13 15:23:28 -05:00
Dharini Jeeva
2614b311a1
Icu 5578 - introduce injected application credential on the api ( #1269 )
...
* chore: 🤖 include injected cred sources to the target model
2022-09-01 10:07:36 -07:00
Randall Morey and Zhihe Li
cde6abd445
refactor: 💡 convert brokered cred IDs array to simple attribute ( #1259 )
...
* refactor: 💡 convert brokered cred IDs array to simple attribute
* fix: 🐛 missing test assertion
* fix: 🐛 simplify computed
* refactor: 💡 convert host sources array to simple attribute (#1260 )
* refactor: 💡 convert host source IDs array to simple attribute
* fix: 🐛 host source tests
* Refactor role fragment arrays (#1262 )
* refactor: 💡 convert grant strings to regular attribute
* refactor: 💡 convert principals array to simple attribute
* Update ui/admin/app/routes/scopes/scope/roles/role.js
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
* fix: 🐛 remove unused import
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
2022-08-31 09:55:59 -07:00
Cameron Perera
83c7b76f48
refactor: 💡 Update passphrase to private_key_passphrase ( #1290 )
...
✅ Closes: ICU-5916
2022-08-30 20:40:31 -05:00
Zhihe Li
3130831ae0
feat: 🎸 Add create worker page ( #1244 )
...
* feat: 🎸 Add create worker page
✅ Closes: ICU-5246
2022-08-26 11:50:53 -04:00
Cameron Perera
9a10b68bbe
refactor: 💡 update credential serializer to delete password ( #1277 )
...
* refactor: 💡 update credential serializer to delete password
update credential serializer to delete password attribute if empty
string or null allowing the user to update just the username if needed.
✅ Closes: ICU-5731
* refactor: 💡 update serializer comments and test names
2022-08-25 17:02:48 -05:00
fb981c02ea
Icu 5651 create spk type ( #1266 )
...
Add functionality for creating a ssh private key credential and add
corresponding acceptance tests.
✅ Closes: ICU-5651
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com >
Co-authored-by: Randall Morey <randall@randallmorey.com >
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com >
2022-08-24 15:50:48 -07:00
Cameron Perera
50038cdf85
Icu 5646 serializer ( #1257 )
...
* feat: 🎸 Update Credential Serializer
Add support for SSH Private Key credentials
✅ Closes: ICU-5646
* test: 💍 Add normalize test for ssh private key credentials
* refactor: 💡 remove deletion of hmac attributes in serializer
2022-08-16 14:35:33 -05:00
Dharini Jeeva
e3324ad64a
chore: 🤖 rename application_credentials_sources_ids to brokered ( #1255 )
2022-08-15 09:48:12 -07:00
Devon Anderson and Dharini Jeeva
62077d3c25
feat: 🎸 Add worker serializer ( #1230 )
...
* feat: 🎸 Add worker serializer
Add worker serializer that focus' on `config_tags.type` and
`canonical_tags.type`.
[API](https://docs.google.com/document/d/1G-lfl8gk9NfoKFImSpHb90E3xC3CSEVDwVy3bJ9eOhA/edit#heading=h.9e06o4b8etpi )
✅ Closes: ICU-5241
* refactor: 💡 refactored `models/worker.js`
Because `canonical_tags` and `config_tags` are `readOnly` attributes, we
could use `attr` decorator instead of `fragment`.
✅ Closes: ICU-5241
* refactored `model/worker.js and deleted un-needed files
* refactor: 💡 Refactored model/worker.js and created test
Refactored model/worker.js to include custom method for POST route for
adding new worker.
BREAKING CHANGE: 🧨 no
✅ Closes: ICU-5241
* refactor: 💡 Refactored custom POST route method for worker
Refactored custom method on `model/worker.js` to include serialization
for `worker_genrated_auth_token`
BREAKING CHANGE: 🧨 no
✅ Closes: ICU-5241
* refactor: 💡 Refactor test
Refactor model/worker-test.js and serializers/worker.js
BREAKING CHANGE: 🧨 no
✅ Closes: ICU-5241
* Update addons/api/addon/serializers/worker.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com >
* update worker.js documentation block
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com >
2022-08-09 15:34:42 -04:00
Dharini Jeeva
1f0baceb5e
Icu 5476 refactor target model serializer and mirage ( #1235 )
...
chore: 🤖 refactor target model to support credentials
2022-08-08 09:21:07 -07:00
lisbet-alvarez and Cameron Perera
821b9b56a7
Icu 5230 credential serializer ( #1200 )
...
* feat: 🎸 Create Credential Model in API
✅ Closes: ICU-5229
* feat: 🎸 update credential model
Add attributes to credential model
✅ Closes: ICU-5229
* feat: 🎸 no verify
✅ Closes: ICU-5230
* feat: 🎸 Add credential serializer and tests
✅ Closes: ICU-5230
* feat: 🎸 Add credential serializer
Credential serializer along with unit tests were added.
✅ Closes: ICU-5230
* feat: 🎸 Credential serializer & unit tests
✅ Closes: ICU-5230
* fix: 🐛 Resolved commit conflicts
✅ Closes: ICU-5230
* fix: 🐛 deleted password_hmac from inside the serializer
✅ Closes: ICU-5230
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com >
2022-07-20 12:34:18 -07:00
Randall Morey
bdabcc119e
Refactor base scope fragment ( #1166 )
...
* refactor: 💡 migrate managed-group off fragments
* refactor: 💡 migrate credential-store off fragments
* refactor: 💡 migrate credential-library off fragments
* refactor: 💡 migrate account off fragments
* refactor: 💡 convert base model scope field to simple attr
* fix: 🐛 skip broken test
2022-07-18 11:30:53 -07:00
Dharini Jeeva
6c3e5ba4a8
chore: 🤖 add static credential store support ( #1191 )
...
* chore: 🤖 add static credential store support to the API layer
2022-07-15 13:24:04 -07:00
Carlos Alcaide Corvo
163bbc9fb8
refactor: 💡 Refactor default values for target creation ( #1180 )
2022-07-12 08:36:35 -07:00
Carlos Alcaide Corvo
6f8afbb7af
Chore update eslint and plugins update ( #1171 )
2022-07-07 11:18:51 -07:00
Randall Morey
890cfe5168
Refactor attributes fragments ( #1156 )
...
* refactor: 💡 migrate managed-group off fragments
* refactor: 💡 migrate credential-store off fragments
* refactor: 💡 migrate credential-library off fragments
* refactor: 💡 migrate account off fragments
2022-06-28 19:30:26 -04:00
Zhihe Li
97196368cb
Fix Users page not updating fields correctly ( #1105 )
...
* fix: 🐛 Normalize update responses to track removed fields
✅ Closes: ICU-4189
2022-05-12 10:16:14 -04:00
Cameron Perera and Dharini Jeeva
226475a47d
feat: 🎸 Add "worker_filter" attribute to target model ( #1049 )
...
* feat: 🎸 Add "worker_filter" attribute to target model
✅ Closes: ICU-3887
* feat: 🎸 Add missing attribute description for worker_filter
* feat: 🎸 Update worker_filter description
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com >
2022-04-12 16:16:51 -05:00
dharini
8f60066cc8
fix: 🐛 remove sync_interval_seconds attribute from static type
2022-03-03 14:17:11 -08:00
dharini
d50b3a5625
feat: 🎸 add sync_interval_seconds to plugin host-sets
2022-03-02 09:44:30 -08:00
Carlos Alcaide Corvo
b33a4d0b1d
refactor: 💡 Refactor app normalize and host catalog normalize
...
Refactor app normalize to deal with nestedAttributes and nestedSecrets
as expected, before it was not working as expected. Refactor the host
catalog normalize method. Add normalize test on host catalog to validate
changes on normalize methods.
2022-02-10 11:43:30 -08:00
Carlos Alcaide Corvo
46246441aa
Refactor some readOnly attributes to have no type. Stop nesting plugin type fields. Refactor serializer/normalizer tests
2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo
75f75878a1
Add real payload and real expectations on host normalisation unit test
2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo
12277c5557
Move new fields attributes from host generated model to plain host model. Add normalization tests
2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo
f8c4eb470f
feat: 🎸 Add new fields to host
...
Add new fields to host and refactor field address to use no more
fragment-host-attribute-model
2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo
e52093c6ed
PR suggestions applied
2022-02-04 09:26:26 -08:00
Carlos Alcaide Corvo
5e12566a65
Refactor tests
2022-02-03 11:27:08 -08:00
Carlos Alcaide Corvo
5e918cdddc
Add all the new fields. Refactor serializer to fit new changes. Work in progress with normalize
2022-02-03 11:27:08 -08:00
Carlos Alcaide Corvo
f64f6bfd05
feat: 🎸 Add new fields to host-set model
...
Add new fields to host-set model
2022-02-03 11:27:08 -08:00
Carlos Alcaide Corvo
ffb00c708f
Refactor mirage factory. Rephrase test description. Refactor some tests to not test secret fields
2022-01-24 10:01:17 -08:00
Carlos Alcaide Corvo
614be72a6e
Add isNestedSecret option to model, add secrets field to model, add isNestedSecert serialization. Change tests to the last changes
2022-01-21 12:55:04 -08:00
Carlos Alcaide Corvo
6eccb0ea6c
Simplified tests code
2022-01-21 10:05:04 -08:00
Carlos Alcaide Corvo
cc07df5806
Delete old comment
2022-01-21 09:57:58 -08:00
Carlos Alcaide Corvo
72dcd0d3ae
Fix unit test for azure host-catalog plugin
2022-01-21 09:57:36 -08:00
Carlos Alcaide Corvo
bab8c8ea44
Add update tests for serializer
2022-01-21 09:49:48 -08:00
Randall Morey
cd60c0bbc3
chore: add writeOnce field support
2022-01-20 17:20:24 -05:00
Randall Morey
1889dd0090
chore: tweak dynamic fields serialization
2022-01-20 16:47:46 -05:00
Carlos Alcaide Corvo
9558f2e480
Modify serializer test to not test field exclusion. Add to mirage more host-catalogs. Add to mirage new fields per host-catalog
2022-01-20 12:55:31 -08:00
Carlos Alcaide Corvo
cd96313857
feat: 🎸 Add fields to host-catalog model
...
Add new fields to host-catalog model for plugin type host-catalog.
Fields are corresponding to Azure and Aws plugins.
2022-01-20 08:35:41 -08:00
Randall Morey
ac14e8786d
feat: 🎸 support isNestedAttribute in models
2022-01-18 13:44:27 -05:00
Carlos Alcaide Corvo
148b40195e
Fix typo in key/value object for testing
2021-11-05 10:32:32 -07:00
Carlos Alcaide Corvo
087e1346d3
feat: 🎸 Refactor serializer and model for managed-group
...
Refactor serializer and model with suggestions from previous PR for
managed-group.
2021-11-05 08:55:37 -07:00
Carlos Alcaide Corvo
14623a6386
feat: 🎸 Refactor all managed-group plurals to singular
...
Refactor all file names and classes declaration from managed-groups
(plural) to managed-group (singular)
2021-11-05 08:55:37 -07:00
Carlos Alcaide Corvo
d506d4a015
Change typo on tests
2021-11-05 08:55:37 -07:00
Carlos Alcaide Corvo
285f711e78
Delete default value at model level for managed group type
2021-11-05 08:55:37 -07:00
Carlos Alcaide Corvo
5df6b6de11
feat: 🎸 Refactor modeling
...
Remove OIDC as default value for fragment field filter. Applied default
value OIDC to type field. Accomodate tests for the changes. Add a
readOnly serializer test. Delete from fragment serializer not
serializing readOnly, because that is a case it will never reproduce on
such model.
2021-11-05 08:55:37 -07:00
Carlos Alcaide Corvo
2620607cc3
feat: 🎸 Finish fragment serializer and tests
...
Finish fragment serializer and refactor the tests of the model to
accomadate the change.
2021-11-05 08:55:37 -07:00
Carlos Alcaide Corvo
499432522a
Unfinished fragment managed groups modeling
2021-11-05 08:55:37 -07:00