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

This allows the management of identity entities and aliases of entities #247

Merged

Conversation

OperationalDev
Copy link
Contributor

Implementation of feature request #174

Many thanks to @simonswine for all the groundwork on #220

@ghost ghost added the size/XL label Nov 27, 2018
@OperationalDev
Copy link
Contributor Author

Entity related tests pass if I bump the vault version to 0.11.5

GCP Tests pass if I include #243 and bump the vault version to 1.0.0-beta2

Copy link
Contributor

@tyrannosaurus-becks tyrannosaurus-becks left a comment

Choose a reason for hiding this comment

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

@OperationalDev thank you for working on this!

The code looks very good, and the tests as well. It would be great to get some clean tests on this before merging it. I do see that the tests failures appear unrelated and apply to GCP. Would it be possible to merge in master and push it, just to make sure the tests are clean?

@@ -2,7 +2,7 @@ version: "2.2"

services:
vault:
image: vault:0.11.1
image: vault:0.11.5
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to add this feature without bumping the Vault version? Or is this absolutely necessary in this PR? I ask because if it is necessary, because I'm following semver in this repo, I'll need to thoughtfully time merging and releasing this PR, which may delay it.

I saw your reference to the alias issue that was fixed in the later versions, so I see why you're doing it. Just checking in about the trade-offs.

Copy link
Contributor Author

@OperationalDev OperationalDev Dec 11, 2018

Choose a reason for hiding this comment

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

Thanks for taking the time to review my PR.

The only issue with staying on 0.11.1 is that then we cannot move an alias between entities. I don't think this is a big problem.
If we remove the test for moving an alias between entities, then the build does pass (after merging master)

Works for me as I have no intention of moving aliases between entities.
Let me know how you would like to proceed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, removed the test and we're looking good on v0.11.1

@tyrannosaurus-becks tyrannosaurus-becks self-assigned this Dec 11, 2018
@OperationalDev
Copy link
Contributor Author

Silly question, can we also submit pull requests for the docs?

@tyrannosaurus-becks
Copy link
Contributor

tyrannosaurus-becks commented Dec 18, 2018

@OperationalDev

Can we also submit pull requests for the docs?

Yes! Docs changes can either be included with the PR that has related code changes, or done separately.

Copy link
Contributor

@tyrannosaurus-becks tyrannosaurus-becks left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks for your work on this.


if disabled, ok := d.GetOk("disabled"); ok {
data["disabled"] = disabled
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a blocker at all, but if you feel like it, updating an entity's name is also supported.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added updating the entity name

return nil
}

for _, k := range []string{"name", "metadata", "disabled"} {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious about why policies isn't included here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No good reason, will add.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

"github.com/hashicorp/vault/api"
)

func TestAccIdentityEntityAlias(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The tests won't build for me currently due to a dependency issue; I think master needs to be merged in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought I had merged master in, will take a look.

Copy link
Contributor Author

@OperationalDev OperationalDev Dec 24, 2018

Choose a reason for hiding this comment

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

Merged in master, should be working now, I managed to build.

@OperationalDev
Copy link
Contributor Author

Made recommended changes. For the docs, I will submit a separate pull request.

@cvbarros cvbarros mentioned this pull request Jan 29, 2019
Copy link
Contributor

@tyrannosaurus-becks tyrannosaurus-becks left a comment

Choose a reason for hiding this comment

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

@OperationalDev this looks great! Thank you!

@tyrannosaurus-becks tyrannosaurus-becks merged commit 5c909f5 into hashicorp:master Jan 29, 2019
dandandy pushed a commit to dandandy/terraform-provider-vault that referenced this pull request Jun 17, 2021
…ases

This allows the management of identity entities and aliases of entities
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.

2 participants