Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIF sidebranch #28148

Merged
merged 14 commits into from
Aug 29, 2024
Merged

WIF sidebranch #28148

merged 14 commits into from
Aug 29, 2024

Conversation

Monkeychip
Copy link
Contributor

@Monkeychip Monkeychip commented Aug 21, 2024

  • Enterprise test pass

Description

Adds WIF workflow to the AWS Secrets engine. All changes have already been approved in separate PRs.

  1. adds identity_token_key to AWS mount. A user can add and create one.
    image
  2. adds WIF fields and issuer to AWS configuration.
    image
  3. Displays WIF and issuer on AWS configuration.
    image

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 21, 2024
@Monkeychip Monkeychip added this to the 1.18.0-rc milestone Aug 21, 2024
Copy link

github-actions bot commented Aug 21, 2024

CI Results:
All Go tests succeeded! ✅

Monkeychip and others added 9 commits August 21, 2024 15:05
* initial work.

* remove access_type

* better no model logic well kind of

* rollback attrs

* remove defaults

* stopping point

* wip changing back to sidebranch

* hustling shuffling and serializing

* some of the component test coverage

* disable acces type if editing

* test coverage

* hide max retries that sneaky bugger

* cleanup

* cleanup

* Update root-config.js

* remove flash message check, locally passes great but on ci flaky

* clean up

* thank you chelsea

* test clean up per enterprise vs community

* address pr comments

* welp a miss add
* Add type declaration files for aws config models

* use updated task syntax for save method on configure-aws

* fix types on edit route

* fetch issuer on configure edit page if aws + enterprise

* track issuer within configure-aws component

* add placeholder support on form-field

* Add warning if issuer changed from previous value or could not be read

* cleanup

* preliminary tests

* dont use while loop so we can test the modal

* tests

* cleanup

* fix tests

* remove extra tracked value and duplicate changed attrs check

* modal footer

---------

Co-authored-by: Angel Garbarino <[email protected]>
* display issuer on configuration details

* workflow complete, now on to testing

* handle issuer things

* fix all the broken tests things

* add test coveragE:

* cleanup

* rename model/adapter

* Update configure-aws.ts

* Update aws-configuration-test.js

* 90 percent there for pr comments

* last one for tonight

* a few more because why not

* hasDirtyAttributes fixes

* revert back to previous noRead->queryIssuerError
@Monkeychip Monkeychip added the ui label Aug 29, 2024
@Monkeychip Monkeychip marked this pull request as ready for review August 29, 2024 16:49
@Monkeychip Monkeychip requested a review from a team as a code owner August 29, 2024 16:49
Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@hashishaw hashishaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 🚢 🚀

const data = serializer.serialize(snapshot);
return this.ajax(`${this.buildURL()}/identity/oidc/config`, 'POST', { data }).then((resp) => {
// id is returned from API so we do not need to explicitly set it here
return {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we can just return resp here

@Monkeychip Monkeychip merged commit 3abca46 into main Aug 29, 2024
33 of 51 checks passed
@Monkeychip Monkeychip deleted the ui/VAULT-27326/wif-aws-sidebranch-3 branch August 29, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants