Commit Graph
117 Commits
Author SHA1 Message Date
Dharini Jeeva 93c8d481fd Icu 12567 add new field credential mapping overrides (#2156)
* chore: 🤖 add credential type select list
2024-02-23 10:07:52 -08:00
Dharini Jeeva 592bb15022 chore: 🤖 add credential type select list (#2144)
* chore: 🤖 add credential type select list
2024-02-16 15:57:14 -08:00
Dharini Jeeva db50bfc9df fix: 🐛 delete and retain_until should be readonly and Scope level policies (#2104)
* fix: 🐛 delete and retain_until should be readonly

* fix: 🐛 global scope should have policies from self and orgs
2024-01-23 11:31:43 -08:00
Dharini JeevaandLisbet Alvarez fb9a080d2e feat: reapply storage policies to session recording (#2095)
* refactor: 💡 add global settings link

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12257

* fix: 🐛 route

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12257

* fix: 🐛 comment

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12257

* feat: 🎸 add reapply sp to session recording page

* fix: 🐛 normalize

* feat: 🎸 upates

* fix: 🐛 logs

* fix: 🐛 comment

* test: 💍 add tests

* fix: 🐛 normalizer, style

* fix: 🐛 normalize

* fix: 🐛 normalizw

* fix: 🐛 normalize

* test: 💍 add tests for serializer n normalizer

* fix: 🐛 name

* fix: 🐛 do not delete, send null

* fix: 🐛 return

---------

Co-authored-by: Lisbet Alvarez <lisbet.alvarez@hashicorp.com>
2024-01-17 14:37:54 -05:00
Dharini Jeeva eefb9eba4f feat: 🎸 scope policy association api changes (#2086)
scope policy association API changes
2024-01-12 11:29:19 -08:00
Dharini Jeeva e3406d9a95 feat: storage policy API and mirage changes (#2054)
* feat: 🎸 add storage policy API and mirage
2024-01-03 11:52:17 -08:00
Devon Anderson f282dbb5b1 feat: 🎸 Create time-remaining helper (#2012)
* 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
2023-11-28 17:42:22 -05:00
Dharini Jeeva 3f2f2ba756 feat: 🎸 Allow prompts in oidc auth method form (#2007)
* feat: 🎸 Allow prompts in OIDC auth method form
2023-11-28 11:59:16 -08:00
0129784322 fix url when user tries to access resource with incorrect url (#1958)
* refactor: 💡 auth-method, account, & managed abilities & routes

* refactor: 💡 credential store resources abilities & routes

* refactor: 💡 group abilities & routes

* refactor: 💡 host-catalog resources abilities & routes

* refactor: 💡 role abilities & routes

* test: 💍 fix route-info-test

* test: 💍 fix host serializer tests

* test: 💍 fix create-test for host-sets

* refactor: 💡 session recording resources abilities & routes

* refactor: 💡 storage bucket abilities & routes

* refactor: 💡 target abilities & routes

* refactor: 💡 user abilities & routes

* refactor: 💡 worker abilities & routes

* refactor: 💡 remove ability changes and add comments

* Update ui/admin/app/utils/route-info.js

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

* test: 💍 add test cases and rename util file

* refactor: 💡 remove dup file and update imports

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11282

* docs: ✏️ update comments & remove console.log

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11282

* Update ui/admin/app/routes/scopes/scope/auth-methods/auth-method.js

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>

---------

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
2023-11-02 16:08:25 -07:00
Dharini Jeeva d0a505558b refactor: 💡sb dynamic credential type secret fields and how we serialize (#1907)
* refactor: 💡 secret fields and how we serialize
2023-09-20 14:55:05 -07:00
Dharini Jeeva 1b84a70ca0 feat: (LDAP) add attributes to model and component (#1908)
* feat: 🎸 add two new fields to LDAP form
2023-09-20 09:18:30 -07:00
Dharini Jeeva 78d1e09a0d Icu 11022 update dynamic credentials in sb form (#1901) 2023-09-18 14:23:30 -07:00
Dharini Jeeva 29e57935f6 Icu 10926 add dynamic credential fields in sb model (#1891)
* feat: 🎸 add support for dynamic credentials in storage bucket
2023-09-11 15:31:57 -07:00
Devon Anderson e089d1c3ff refactor: 💡 Refactor ldap account view and serializer (#1826)
* 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
2023-08-04 19:46:44 -04:00
Devon Anderson c425bb7686 fix: 🐛 accounts update refactor (#1822)
* 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
2023-08-04 07:46:58 -04:00
Lisbet AlvarezandDharini Jeeva 52cf2c0c53 feat: 🎸 ldap auth-method new form component (#1782)
* feat: 🎸 ldap auth-method new form component

✅ Closes: ICU-10073

* style: 💄 fix linting error and add comment

* style: 💄 add spacing and make titles more bold

* Update ui/admin/app/components/form/auth-method/ldap/index.hbs

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>

* refactor: 💡 pr feedback updates

---------

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
2023-07-18 15:12:47 -07:00
Dharini Jeeva 52c2483161 feat: 🎸 add support for ldap managed group in serializer (#1781) 2023-07-17 15:32:46 -07:00
Dharini Jeeva c8f5952e66 chore: 🤖 add ldap to managed groups model (#1778) 2023-07-14 11:53:29 -07:00
Devon AndersonandDharini Jeeva d7b6eba2af [ICU-10024] feat: Revise auth-method model (#1762)
* 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>
2023-07-13 09:19:38 -04:00
Lisbet Alvarez 56e8a73100 refactor: 💡 update accounts model with ldap account attributes (#1766)
✅ Closes: ICU-10050
2023-07-12 10:57:14 -07:00
hashicorp-copywrite[bot] e8f15e2eab [COMPLIANCE] Add Copyright and License Headers 2023-06-19 16:23:53 +00:00
Zhihe Li e36ee56de1 Merge from main (#305)
Merge from main
2023-05-31 17:13:56 -07:00
Zhihe Li 55f7406576 chore: 🤖 Update storage buckets to handle new api changes (#266) 2023-05-22 17:28:48 -04:00
Zhihe Li a03202f51c chore: 🤖 Include created_time as part of session recordings (#260) 2023-05-18 17:27:32 -04:00
Zhihe Li ed5416477d chore: 🤖 More updates for models and mirage (#253) 2023-05-17 12:01:34 -04:00
Dharini Jeeva 5844768f57 chore: 🤖 add disable cred rotation field to storage bucket creation form (#246)
* chore: 🤖 add disable cred rotation field
2023-05-09 14:06:05 -07:00
Zhihe Li 0dee7b5a02 chore: 🤖 Update session recording API (#243)
* chore: 🤖 Update session recording API

* chore: 🤖 Update usage of scope id for targets

* chore: 🤖 Update scope id usage for user in session recordings
2023-05-08 18:05:01 +00:00
Zhihe Li 3693ee88c0 refactor: 💡 Change bytes to be strings (#161) 2023-03-28 16:20:40 -04:00
Zhihe Li 1f581fcc75 chore: 🤖 Remove type on channel recordings (#155) 2023-03-28 16:08:15 +00:00
Zhihe Li e460a5e429 chore: 🤖 Update models to new field names (#149) 2023-03-24 10:52:55 -04:00
Zhihe Li 31b0a57639 feat: 🎸 Add new target field for storage bucket (#133)
✅ Closes: ICU-8077
2023-03-22 10:52:33 -04:00
Zhihe Li a829727b1b Feat/update models (#128)
* feat: 🎸 Add mime types field

* feat: 🎸 Add duration field to models
2023-03-20 14:06:15 -04:00
Zhihe Li d08ce29e5a Chore/update model names (#125)
* chore: 🤖 Rename recording to session-recording

* chore: 🤖 Update names for connection models

* chore: 🤖 Update channel models to new name

* chore: 🤖 Update remaining models after merge conflict
2023-03-16 13:49:04 -04:00
Zhihe Li 5992829fa2 feat: 🎸 Add serializer and adapter for storage bucket (#117)
* feat: 🎸 Add serializer and adapter for storage bucket

✅ Closes: ICU-8358
2023-03-15 15:18:02 -04:00
Zhihe Li b9cf61932b feat: 🎸 Add session recording models (#100)
* feat: 🎸 Add session recording models

✅ Closes: ICU-8075
2023-03-07 16:38:41 -05:00
Zhihe Li 4d62e67f2a feat: 🎸 Add storage bucket models (#85)
* feat: 🎸 Add storage bucket models

✅ Closes: ICU-8076
2023-03-03 12:56:28 -05:00
hashicorp-copywrite[bot]andCameron Perera 3d610427d0 [COMPLIANCE] Add Copyright and License Headers (#1617)
* [COMPLIANCE] Add Copyright and License Headers

* chore: 🤖 update Copyright headers to satisfy our lint rules

---------

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
2023-03-01 09:39:41 -06:00
Zhihe Li a8bbf91a0a fix: 🐛 Fix generic-vault getting extra null fields when saving (#1640)
* fix: 🐛 Fix generic-vault getting extra null fields when saving

✅ Closes: ICU-8141
2023-02-24 13:11:17 -05:00
Zhihe Li f0530e1f8f Vault SSH Cert Feature (#1596)
* 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)
2023-02-01 13:46:23 -05:00
Cameron Perera 63f619b1ff Add egress and ingress worker filters to target model (#1554)
* 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
2023-01-10 15:28:20 -06:00
Zhihe Li 6d048d8e10 feat: 🎸 Update target model for address (#1557)
✅ Closes: ICU-7489
2023-01-09 12:35:42 -05:00
Zhihe Li c3d9fd8fc5 Icu 6657 auth method model fragments refactor (#1507)
* refactor: 💡 Remove fragment usage for arrays in auth method
* chore: 🤖 Remove ember-data-model-fragments

✅ Closes: ICU-6657
2022-12-02 14:29:53 -05:00
Zhihe Li f8429b15e9 Chore/cleanup filter attribute (#1500)
* refactor: 💡 Rename attributes called filter

* refactor: 💡 Remove adapter handling of old attribute errors

* refactor: 💡 Check for undefined in serializer instead of falsy
2022-12-02 13:44:11 -05:00
Zhihe Li ff7a1fedea Icu 6794 refactor attributes using the newer is nested attribute annotation (#1481) 2022-11-23 14:40:07 -05:00
Randall MoreyandZhihe Li f7c1523adb Refactor host set fragment arrays (#1464)
* 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>
2022-11-21 19:07:46 -05:00
Devon AndersonandCameron Perera e3d44eb813 chore: 🤖 JSON credential data modeling (#1485)
* 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>
2022-11-21 16:28:10 -05:00
Cameron PereraandRandall Morey 84077b5d8a Icu 6800 api is secret data modeling (#1448)
* 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>
2022-11-14 14:45:53 -06:00
Zhihe Li 82bbe798fd feat: 🎸 update the tags badge in workers list view (#1326)
* feat: 🎸 update the tags badge in workers list view

✅ Closes: ICU-6035
2022-09-16 14:53:29 -04:00
Devon Anderson 8efa3168c8 feat: 🎸 Update worker model (#1313)
* feat: 🎸 Update worker model

Update worker modeel for `release_version` field

✅ Closes: ICU-6044

* refactor: 💡 update mirage factory

Update mirage factory for worker and `release_version`

✅ Closes: ICU-6044

* feat: 🎸 Update detailed worker view (#1315)

Update detailer worker view to include read-only `release_version` field

✅ Closes: ICU-6046

* feat: 🎸 Update workers list-view (#1314)

Update workers list-view to include `release-version`

✅ Closes: ICU-6045
2022-09-13 16:49:48 -04: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