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

feat(IAM Policy Management): add support for v2/policies #178

Merged
merged 2 commits into from
Dec 2, 2022
Merged

Conversation

swcolley
Copy link
Contributor

Signed-off-by: Shaun Colley [email protected]

PR summary

Code to support new v2/policies API has been introduced. The new v2/policies API will have new JSON fields and existing v1/fields have been changed.

v1/policies API will continue to be supported.

Also updated test to remove use of callback done() with async/await (throws error to use one or other and followed pattern of access groups).

PR Checklist

Please make sure that your PR fulfills the following requirements:

Current vs new behavior

Current behavior will remain same (v1 will continue to be supported). New behavior is v2/policies support which allows for time based restriction policies using new rule field (an integration test has been added of this example).

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

See:
Issue: https://github.ibm.com/IAM/AM-issues/issues/925
TRI: https://github.ibm.com/IAM/architecture/blob/master/TRIDocs/Access-Management/Smart-Policies/smart_policies.md

@CLAassistant
Copy link

CLAassistant commented Nov 28, 2022

CLA assistant check
All committers have signed the CLA.

@pyrooka pyrooka self-requested a review November 30, 2022 11:13
@pyrooka pyrooka self-assigned this Nov 30, 2022
Copy link
Member

@pyrooka pyrooka left a comment

Choose a reason for hiding this comment

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

The changes look good, but there seem to be some code style related issues. As I see you can fix them by running npm run lint-fix. Also, you forgot to sign the CLA.

Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

LGTM

@padamstx padamstx merged commit d613f69 into main Dec 2, 2022
@padamstx padamstx deleted the v2-policies branch December 2, 2022 19:16
ibm-devx-sdk pushed a commit that referenced this pull request Dec 2, 2022
# [0.29.0](v0.28.0...v0.29.0) (2022-12-02)

### Features

* **IAM Policy Management:** add support for v2/policies ([#178](#178)) ([d613f69](d613f69))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 0.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants