navapbc / wic-participant-recertification-portal

https://navapbc.github.io/wic-participant-recertification-portal/
Apache License 2.0
0 stars 1 forks source link

[PRP 205] Add IAM policy so users can manage MFA #19

Closed rocketnova closed 1 year ago

rocketnova commented 1 year ago

Ticket

https://wicmtdp.atlassian.net/browse/PRP-205

Changes

What was added, updated, or removed in this PR.

Context for reviewers

Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified.

I ran into issues trying to enable MFA for users in the wic-prp-eng user group, so this PR allows them to add/manage their own MFA devices.

In addition, I had been running into max character limit issues for the IAM policy and it turns out that inline policies have a lower max character limit. In addition, it's best practice to use customer managed policies instead of inline policies, so I switched our policy accordingly.

Testing

Screenshots, GIF demos, code examples or output to help show the changes working as expected. ProTip: you can drag and drop or paste images into this textbox.

  1. Auth as a user in the wic-prp-eng group
  2. Attempt to [create an MFA device](AWS
  3. It should allow you to