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

Update hana db pkg #27950

Merged
merged 4 commits into from
Aug 5, 2024
Merged

Update hana db pkg #27950

merged 4 commits into from
Aug 5, 2024

Conversation

tvoran
Copy link
Member

@tvoran tvoran commented Aug 2, 2024

Description

Updates the HANA db package to v1.10.1.

Closes #27588

Tested against HANA express edition:

$ HANA_URL="hdb://<user>:<password>@localhost:39041" VAULT_ACC=1 go test -v -run "TestHANA" github.com/hashicorp/vault/plugins/database/hana
=== RUN   TestHANA_Initialize
--- PASS: TestHANA_Initialize (0.01s)
=== RUN   TestHANA_NewUser
=== RUN   TestHANA_NewUser/no_creation_statements
=== RUN   TestHANA_NewUser/with_creation_statements
--- PASS: TestHANA_NewUser (0.08s)
    --- PASS: TestHANA_NewUser/no_creation_statements (0.03s)
    --- PASS: TestHANA_NewUser/with_creation_statements (0.05s)
=== RUN   TestHANA_UpdateUser
=== RUN   TestHANA_UpdateUser/no_update_statements
=== RUN   TestHANA_UpdateUser/with_custom_update_statements
--- PASS: TestHANA_UpdateUser (0.19s)
    --- PASS: TestHANA_UpdateUser/no_update_statements (0.09s)
    --- PASS: TestHANA_UpdateUser/with_custom_update_statements (0.10s)
=== RUN   TestHANA_DeleteUser
=== RUN   TestHANA_DeleteUser/no_update_statements
=== RUN   TestHANA_DeleteUser/with_custom_update_statements
--- PASS: TestHANA_DeleteUser (0.96s)
    --- PASS: TestHANA_DeleteUser/no_update_statements (0.30s)
    --- PASS: TestHANA_DeleteUser/with_custom_update_statements (0.66s)
=== RUN   TestHANA_DefaultUsernameTemplate
--- PASS: TestHANA_DefaultUsernameTemplate (0.05s)
=== RUN   TestHANA_CustomUsernameTemplate
--- PASS: TestHANA_CustomUsernameTemplate (0.06s)
PASS
ok  	github.com/hashicorp/vault/plugins/database/hana	1.362s

TODO only if you're a HashiCorp employee

  • Labels: If this PR is the CE portion of an ENT change, and that ENT change is
    getting backported to N-2, use the new style backport/ent/x.x.x+ent labels
    instead of the old style backport/x.x.x labels.
  • Labels: If this PR is a CE only change, it can only be backported to N, so use
    the normal backport/x.x.x label (there should be only 1).
  • [x ENT Breakage: If this PR either 1) removes a public function OR 2) changes the signature
    of a public function, even if that change is in a CE file, double check that
    applying the patch for this PR to the ENT repo and running tests doesn't
    break any tests. Sometimes ENT only tests rely on public functions in CE
    files.
  • Jira: If this change has an associated Jira, it's referenced either
    in the PR description, commit message, or branch name.
  • RFC: If this change has an associated RFC, please link it in the description.
  • ENT PR: If this change has an associated ENT PR, please link it in the
    description. Also, make sure the changelog is in this PR, not in your ENT PR.

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

github-actions bot commented Aug 2, 2024

CI Results:
All Go tests succeeded! ✅

@tvoran tvoran marked this pull request as ready for review August 2, 2024 02:32
@tvoran tvoran requested a review from a team as a code owner August 2, 2024 02:32
@tvoran tvoran requested a review from a team August 2, 2024 02:33
Copy link

github-actions bot commented Aug 2, 2024

Build Results:
All builds succeeded! ✅

@@ -51,7 +51,7 @@ more information about setting up the database secrets engine.
```text
$ vault write database/roles/my-role \
db_name=my-hana-database \
creation_statements="CREATE USER {{name}} PASSWORD {{password}} VALID UNTIL '{{expiration}}';\
creation_statements="CREATE USER {{name}} PASSWORD \"{{password}}\" VALID UNTIL '{{expiration}}';\
Copy link
Member Author

Choose a reason for hiding this comment

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

This is to account for generated passwords having -'s in them.

@tvoran
Copy link
Member Author

tvoran commented Aug 5, 2024

Thanks!

@tvoran tvoran merged commit a17121c into main Aug 5, 2024
93 of 105 checks passed
@tvoran tvoran deleted the VAULT-29068/update-hana-db-pkg branch August 5, 2024 23:26
akshya96 pushed a commit that referenced this pull request Aug 7, 2024
* database/hana: use go-hdb v1.10.1

* docs/hana: quotes around password so dashes don't break it
akshya96 added a commit that referenced this pull request Aug 20, 2024
* auto-roll billing start enos test

* enos: don't expect curl available in docker image (#27984)

Signed-off-by: Ryan Cragun <[email protected]>

* Update interoperability-matrix.mdx (#27977)

Updating the existing Vault/YubiHSM integration with a newer version of Vault as well as now supporting Managed Keys.

* Update hana db pkg (#27950)

* database/hana: use go-hdb v1.10.1

* docs/hana: quotes around password so dashes don't break it

* Clarify audit log failure telemetry docs. (#27969)

* Clarify audit log failure telemetry docs.

* Add the note about the misleading counts

* Auto-rolling billing start docs PR  (#27926)

* auto-roll docs changes

* addressing comments

* address comments

* Update website/content/api-docs/system/internal-counters.mdx

Co-authored-by: Sarah Chavis <[email protected]>

* addressing some changes

* update docs

* update docs with common explanation file

* updated note info

* fix 1.18 upgrade doc

* fix content-check error

* Update website/content/partials/auto-roll-billing-start-example.mdx

Co-authored-by: miagilepner <[email protected]>

---------

Co-authored-by: Sarah Chavis <[email protected]>
Co-authored-by: miagilepner <[email protected]>

* docker: add upgrade notes for curl removal (#27995)

Signed-off-by: Ryan Cragun <[email protected]>

* Update vault-plugin-auth-jwt to v0.21.1 (#27992)

* docs: fix upgrade 1.16.x (#27999)

Signed-off-by: Ryan Cragun <[email protected]>

* UI: Add unsupportedCriticalCertExtensions to jwt config expected payload (#27996)

* Client Count Docs Updates/Cleanup (#27862)

* Docs changes

* More condensation of docs

* Added some clarity on date ranges

* Edited wording'

* Added estimation client count info

* Update website/content/api-docs/system/internal-counters.mdx

Co-authored-by: miagilepner <[email protected]>

---------

Co-authored-by: miagilepner <[email protected]>

* update(kubernetes.mdx): k8s-tokenreview URL (#27993)

Co-authored-by: akshya96 <[email protected]>

* Update programmatic-management.mdx to clarify Terraform prereqs (#27548)

* UI: Replace getNewModel with hydrateModel when model exists (#27978)

* Replace getNewModel with hydrateModel when model exists

* Update getNewModel to only handle nonexistant model types

* Update test

* clarify test

* Fix auth-config models which need hydration not generation

* rename file to match service name

* cleanup + tests

* Add comment about helpUrl method

* Changelog for 1.17.3, 1.16.7 enterprise, 1.15.13 enterprise (#28018)

* changelog for 1.17.3, 1.16.7 enterprise, 1.15.13 enterprise

* Add spacing to match older changelogs

* Fix typo in variables.tf (#27693)

intialize -> initialize

Co-authored-by: akshya96 <[email protected]>

* Update 1_15-auto-upgrade.mdx (#27675)

* Update 1_15-auto-upgrade.mdx

* Update known issue version numbers for AP issue

---------

Co-authored-by: Sarah Chavis <[email protected]>

* Update 1_16-default-policy-needs-to-be-updated.mdx (#27157)

Made a few grammar changes plus updating term from Vault IU to Vault UI

* change instances variable to hosts

* for each hosts

* add cluster addr port

* Add ENVs using NewTestDockerCluster (#27457)

* Add ENVs using NewTestDockerCluster

Currently NewTestDockerCluster had no means for setting any
environment variables. This makes it tricky to create test
for functionality that require thems, like having to set
AWS environment variables.

DockerClusterOptions now exposes an option to pass extra
enviroment variables to the containers, which are appended
to the existing ones.

* adding changelog

* added test case for setting env variables to containers

* fix changelog typo; env name

* Update changelog/27457.txt

Co-authored-by: akshya96 <[email protected]>

* adding the missing copyright

---------

Co-authored-by: akshya96 <[email protected]>

* UI: Build KV v2 overview page (#28106)

* move date-from-now helper to addon

* make overview cards consistent across engines

* make kv-paths-card component

* remove overview margin all together

* small styling changes for paths card

* small selector additions

* add overview card test

* add overview page and test

* add default timestamp format

* cleanup paths test

* fix dateFromNow import

* fix selectors, cleanup pki selectors

* and more selector cleanup

* make deactivated state single arg

* fix template and remove @isDeleted and @isDestroyed

* add test and hide badge unless deactivated

* address failings from changing selectors

* oops, not ready to show overview tab just yet!

* add deletionTime to currentSecret metadata getter

* Bump actions/download-artifact from 4.1.7 to 4.1.8 (#27704)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.7 to 4.1.8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@65a9edc...fa0a91b)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: akshya96 <[email protected]>

* Bump actions/setup-node from 4.0.2 to 4.0.3 (#27738)

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@60edb5d...1e60f62)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: akshya96 <[email protected]>

* Add valid IP callout (#28112)

Co-authored-by: Yoko Hyakuna <[email protected]>

* Refactor SSH Configuration workflow (#28122)

* initial copy from other #28004

* pr feedback

* grr

* Bump browser-actions/setup-chrome from 1.7.1 to 1.7.2 (#28101)

Bumps [browser-actions/setup-chrome](https://github.com/browser-actions/setup-chrome) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/browser-actions/setup-chrome/releases)
- [Changelog](https://github.com/browser-actions/setup-chrome/blob/master/CHANGELOG.md)
- [Commits](browser-actions/setup-chrome@db1b524...facf10a)

---
updated-dependencies:
- dependency-name: browser-actions/setup-chrome
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: divyaac <[email protected]>

* Bump vault-gcp-secrets-plugin (#28089)

Co-authored-by: divyaac <[email protected]>

* docs: correct list syntax (#28119)

Co-authored-by: divyaac <[email protected]>

* add semgrepconstraint check in skip step

---------

Signed-off-by: Ryan Cragun <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Ryan Cragun <[email protected]>
Co-authored-by: Adam Rowan <[email protected]>
Co-authored-by: Theron Voran <[email protected]>
Co-authored-by: Paul Banks <[email protected]>
Co-authored-by: Sarah Chavis <[email protected]>
Co-authored-by: miagilepner <[email protected]>
Co-authored-by: Scott Miller <[email protected]>
Co-authored-by: Chelsea Shaw <[email protected]>
Co-authored-by: divyaac <[email protected]>
Co-authored-by: Roman O'Brien <[email protected]>
Co-authored-by: Adrian Todorov <[email protected]>
Co-authored-by: VAL <[email protected]>
Co-authored-by: Ikko Eltociear Ashimine <[email protected]>
Co-authored-by: Owen Zhang <[email protected]>
Co-authored-by: gkoutsou <[email protected]>
Co-authored-by: claire bontempo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Frappier <[email protected]>
Co-authored-by: Yoko Hyakuna <[email protected]>
Co-authored-by: Angel Garbarino <[email protected]>
Co-authored-by: Max Levine <[email protected]>
Co-authored-by: Steffy Fort <[email protected]>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HANA database secrets engine not working because of outdated driver
2 participants