Skip to content

Changed write method from PUT to POST - #156

Merged
aviadhahami merged 1 commit into
nodevault:masterfrom
owenfarrell:write_method
May 13, 2023
Merged

aviadhahami merged 1 commit into
nodevault:masterfrom
owenfarrell:write_method

Conversation

@owenfarrell

Copy link
Copy Markdown
Contributor

Per the Vault API, version 1 of the K/V engine supports both PUT and POST methods when creating/updating secrets. But version 2 of the K/V engine only support POST.

This change updates the method used to write data from PUT to POST in order to provide better continuity for the K/V secrets engine, as well as align with other engines (AWS, Azure, GCP, et. al.) that only support POSTs.

@codecov

codecov Bot commented May 4, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #156 (71c65ba) into master (5d12381) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #156   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          146       146           
  Branches        37        37           
=========================================
  Hits           146       146           
Impacted Files Coverage Δ
src/index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d12381...71c65ba. Read the comment docs.

@owenfarrell
owenfarrell force-pushed the write_method branch 3 times, most recently from 8c3d9a8 to 71c65ba Compare August 3, 2020 18:48
@owenfarrell
owenfarrell deleted the write_method branch December 20, 2020 20:06
@owenfarrell
owenfarrell restored the write_method branch December 20, 2020 20:06
@owenfarrell owenfarrell reopened this Dec 20, 2020
@rbcaixeta rbcaixeta mentioned this pull request Nov 11, 2022
@aviadhahami

Copy link
Copy Markdown
Collaborator

please resolve conflicts :)

@aviadhahami aviadhahami left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

conflicting changes

Signed-off-by: Owen Farrell <owen.farrell@gmail.com>
@owenfarrell

Copy link
Copy Markdown
Contributor Author

@aviadhahami

@codecov-commenter

codecov-commenter commented May 11, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #156 (07b79c3) into master (ab2857a) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff            @@
##            master      #156   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          141       141           
=========================================
  Hits           141       141           
Impacted Files Coverage Δ
src/index.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@aviadhahami aviadhahami left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm! Thx for your contribution!

@aviadhahami
aviadhahami merged commit 61273fb into nodevault:master May 13, 2023
@owenfarrell
owenfarrell deleted the write_method branch December 22, 2023 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants