* feat: 🎸 create helper
Create `time-remaining` helper to track remaining session time.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* refactor: 💡 Clean up code for time-remaining helper
Moved time remaining helper into `core` addons folder. Cleaned up the
`time-remaining` helper to use the `DurationUnitFormat` service.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* Update session.hbs
removed test implementation
* refactor: 💡 files added for helper
files added for helper
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* Update session.hbs
fix linting
* refactor: 💡 fix uneeded spacing
Fix spacing on hbs file used for testing time-remaining helper
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* refactor: 💡 refactor time-remaining helper
Cleaned up code that was returning a string if `differenceInSeconds` was
less than or equal to zero. Code is now conditionally checking in the
`differenceInSeconds` variable if the `difference` is greater than zero.
If it is not then it will return zero and let the `DurationUnitFormat`
handle the rest.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* refactor: 💡 fix failing test
Fix failing `time-remaining` test
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-10519
* refactor: 💡 Refactor ldap account view and serializer
Refactor LDAP account view to only show `InfoField` fields if values are
not `undefined`. Also fixed bug for updating accounts.
✅ Closes: ICU-10514
* refactor: 💡 clean up code
Quick cleanup of code for accounts
* Update account.js
change text for commit
* Update index.hbs
* refactor: 💡 format hbs
format hbs
* fix: 🐛 accounts update refactor
Changed `type` and `auth_method_id` on `accounts` model to `readOnly` so
it is not sent in API payload.
✅ Closes: ICU-10503
* refactor: 💡 fix test
Refactor test to not include removed attributes.
* refactor: 💡 refactor test
Fix test
* feat: 🎸 Revised auth-method model
Revised auth-method model to include LDAP attributes
✅ Closes: ICU-10024
* chore: 🤖 create transform for `account_attribute_maps`
Create transform to handle `account_attribute_maps` array
* refactor: 💡 Refactor transform and serializer
Refactor `account_claims_map` transforms overall name and logic to be
used for `account_attributes_map`. Also refactored serializer to
serialize auth-method data, by type.
✅ Closes: ICU-100024
* refactor: 💡 refactor transform
Refactor `account_claim_maps` transform.
* Update addons/api/addon/serializers/auth-method.js
changing naming of serialize method
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* refactor: 💡 refactor serializer
Refactor naming convention for serializer methods and added comments for
attributes.
* refactor: 💡 quick refactor
fixed name for method call in serializer
* refactor: 💡 refactor attributes and serializer
Refactor attributes for `auth-methods` to use the `for` option to select
which attribute belongs to which auth-method.
* Update auth-method.js
comment change
* refactor: 💡 rebase
rebase
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* refactor: 💡 refactor serialize attribute method
refactor serialize attribute method not not include type for password,
and instead let `serializePassword` handle serialization
* refactor: 💡 refactor serializer
Refcator serializer to not include password type in attribute serializer
and added `for` to one missing attribute.
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
---------
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* chore: 🤖 Update session recording API
* chore: 🤖 Update usage of scope id for targets
* chore: 🤖 Update scope id usage for user in session recordings
* feat: 🎸 Update models for vault ssh cert feature (#1591)
✅ Closes: ICU-7546
* feat: 🎸 Setup types in cred library forms and use HDS component (#1597)
* feat: 🎸 Setup types in cred library forms and use HDS component
✅ Closes: ICU-7673
* feat: 🎸 Add vault ssh cert type for credential library (#1608)
* feat: 🎸 Add vault ssh cert type for credential library
✅ Closes: ICU-7678
* feat: 🎸 Enable feature flag for vault ssh cert work (#1614)
* fix: 🐛 Change fields to optional as they get default by backend (#1615)
* Chore/cleanup vault ssh cert (#1616)
* feat: 🎸 add egress and ingress worker filter to target model
✅ Closes: ICU-7300
* chore: 🤖 update mirage to include ingress/egress worker filter
* refactor: 💡 update target mirage config for worker filters
* refactor: 💡 update how target id is set in mirage factory
* refactor: 💡 update target id and default_port mirage setup
* test: 💍 fix missing address attribute in new tests
* refactor: 💡 Rename attributes called filter
* refactor: 💡 Remove adapter handling of old attribute errors
* refactor: 💡 Check for undefined in serializer instead of falsy
* refactor: 💡 change host_ids to a simple attribute
* refactor: 💡 manually manage host set array model attributes
* refactor: 💡 Fix host set IDs usage
* style: 💄 Fix comment and add braces for if statements
* refactor: 💡 Add back in empty array for normalizer
* refactor: 💡 Move attributes to generated model
* refactor: 💡 Update array actions when creating new host sets
* test: 💍 Add a few create tests for azure and aws host sets
* test: 💍 Add update tests for azure and aws host sets
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* chore: 🤖 JSON credential data modeling
Added json type to credential model, created `json_object` attribute for
`json` type, updated credential serializer to handle `json_object`
attribute data being sent to backend and updated normalizer to handlle
secret untracked 'json_object'.
✅ Closes: ICU-6653, ICU-6684, ICU-6685, ICU-6802, ICU-6803
* Update en-us.yaml
fixed spelling
* Update addons/api/addon/models/credential.js
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
* refactor: 💡 refactor credential serializer and .yaml
Refactored credential serializer to check for `json_object` existence
before serializing and changed help variable in `.yaml` file for
credentials.
* refactor: 💡 refactor for credential serializer
Refactor credential serializer removed redundant code,
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
* refactor: 💡 Add isSecret option for model attributes
Move secret attribute logic to application serializer that will remove
the key/value pair if the value is null or empty
✅ Closes: ICU-6800
* refactor: 💡 Add isSecret option to credential store token
* Update addons/api/addon/serializers/credential.js
Remove unneeded serialize method for credentials
Co-authored-by: Randall Morey <randall@randallmorey.com>
* refactor: 💡 add type check for serializing secret attributes
Co-authored-by: Randall Morey <randall@randallmorey.com>