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: add storage bucket resource #417

Merged
merged 10 commits into from
Jun 28, 2023
Merged

feat: add storage bucket resource #417

merged 10 commits into from
Jun 28, 2023

Conversation

elimt
Copy link
Member

@elimt elimt commented Jun 22, 2023

  • Create a new resource for storage bucket
  • Add examples and docs for how to use new resource
  • Tests added but they do not run on purpose and have not been validated yet because we cannot run tests for enterprise features yet. That will be addressed separately

Considerations

  • Even though only AWS can be supported today, still added the pluginID & pluginName fields so it's easy to extend once other plugin types are supported
  • There is some logic around handling secrets sent to Boundary and validating secret HMAC changes that exist from boundary_host_catalog_plugin that was introduced in PR-159. Used the same logic we've been using for that

- Create a new resource for storage bucket
- Add examples and docs for how to use new resource
- Tests added but they do not run on purpose and have not been validated yet because we cannot run tests for enterprise features yet. That will be addressed separately

## Considerations
- Even though only AWS can be supported today, still added the `pluginID` & `pluginName` fields so it's easy to extend once other plugin types are supported
- There is some logic around handling secrets sent to Boundary and validating secret HMAC changes that exist from `boundary_host_catalog_plugin` that was introduced in [PR-159](#159). Used the same logic we've been using for that
@elimt elimt added this to the 0.13.x milestone Jun 22, 2023
@elimt elimt requested review from irenarindos and ddebko June 22, 2023 14:35
Copy link
Contributor

@louisruch louisruch left a comment

Choose a reason for hiding this comment

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

Took a quick look this morning thanks for jumping on this. I left a couple of comments but will leave it to your pod for a complete review and approval

docs/resources/storage_bucket.md Outdated Show resolved Hide resolved
docs/resources/storage_bucket.md Outdated Show resolved Hide resolved
docs/resources/storage_bucket.md Outdated Show resolved Hide resolved
internal/provider/resource_storage_bucket.go Outdated Show resolved Hide resolved
- make `secrets_hmac` readonly
- update docs and example
- remove default value of `PluginNameKey` from schema and set it during creation
Copy link
Contributor

@irenarindos irenarindos left a comment

Choose a reason for hiding this comment

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

Looks great! Just a few documentation comments.

docs/resources/storage_bucket.md Outdated Show resolved Hide resolved
docs/resources/storage_bucket.md Outdated Show resolved Hide resolved
docs/resources/storage_bucket.md Outdated Show resolved Hide resolved
- update docs
Copy link
Contributor

@irenarindos irenarindos left a comment

Choose a reason for hiding this comment

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

One more small thing but it's basically there!

docs/resources/storage_bucket.md Outdated Show resolved Hide resolved
@elimt elimt merged commit 9186304 into main Jun 28, 2023
@elimt elimt deleted the elimt-resource-storage-bucket branch June 28, 2023 14:38
elimt added a commit that referenced this pull request Jun 28, 2023
* feat: add storage bucket resource

- Create a new resource for storage bucket
- Add examples and docs for how to use new resource
- Tests added but they do not run on purpose and have not been validated yet because we cannot run tests for enterprise features yet. That will be addressed separately

## Considerations
- Even though only AWS can be supported today, still added the `pluginID` & `pluginName` fields so it's easy to extend once other plugin types are supported
- There is some logic around handling secrets sent to Boundary and validating secret HMAC changes that exist from `boundary_host_catalog_plugin` that was introduced in [PR-159](#159). Used the same logic we've been using for that
grantorchard pushed a commit to grantorchard/terraform-provider-boundary that referenced this pull request Aug 28, 2023
* feat: add storage bucket resource

- Create a new resource for storage bucket
- Add examples and docs for how to use new resource
- Tests added but they do not run on purpose and have not been validated yet because we cannot run tests for enterprise features yet. That will be addressed separately

## Considerations
- Even though only AWS can be supported today, still added the `pluginID` & `pluginName` fields so it's easy to extend once other plugin types are supported
- There is some logic around handling secrets sent to Boundary and validating secret HMAC changes that exist from `boundary_host_catalog_plugin` that was introduced in [PR-159](hashicorp#159). Used the same logic we've been using for that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants