Commit Graph

34 Commits

Author SHA1 Message Date
davidadeleon
6741773b0f update vault auth submodules to api/v1.16.0 (#29548)
* update vault auth submodules to api/v1.16.0

* update go.mod

* make proto

---------

Co-authored-by: davidadeleon <ddeleon@hashicorp.com>
2025-02-11 07:28:45 -08:00
Violet Hynes
32d61c3893 Update go/x/net and go/x/crypto to latest versions throughout (#29422) 2025-01-27 10:47:40 -05:00
Tero Saarni
6f13aec0d3 core/api: Add missing LICENSE files to sub-modules (#27920)
Go module tooling mandates that each sub-module contains its own LICENSE file.
If absent, it defaults to the LICENSE file in the root of the git repository.
This resulted in the api/auth/* modules erroneously inheriting the BUSL
license instead of the correct MPL license, as indicated by the SPDX info in
the actual API code.

This update ensures that module documentation is displayed correctly on
pkg.go.dev and resolves issues with various tools showing incorrect license
information for the sub-modules.

Signed-off-by: Tero Saarni <tero.saarni@est.tech>
2024-09-23 13:06:35 -04:00
Victor Rodriguez
ab8bc34c53 update vault auth submodules to api/v1.15.0 (#28338) 2024-09-10 18:03:47 +00:00
idnandre
e26c246cbb chore: fix deprecated ioutil readall (#27823)
Signed-off-by: idnandre <andre@idntimes.com>
2024-07-30 09:18:24 -04:00
Violet Hynes
037d82130c VAULT-28422 Upgrade go-retryablehttp for CE (#27602) 2024-06-26 09:05:02 -04:00
Peter Wilson
26eae55a7d updated dependencies for auth/gcp (#27415) 2024-06-10 16:08:15 +00:00
Peter Wilson
545064cb6d update vault auth submodules to api/v1.14.0 (#27190)
* update vault auth submodules to api/v1.14.0

* go mod tidy in repo root
2024-05-23 11:00:55 -04:00
Violet Hynes
1529422559 Update Vault auth submodule API versions for 1.16 (#25290) 2024-02-08 10:46:33 -05:00
Violet Hynes
074a35eac6 Update aws-sdk-go to latest (#24916) 2024-01-17 15:17:00 -05:00
dependabot[bot]
bb82e0bdb7 Bump google.golang.org/grpc from 1.41.0 to 1.56.3 in /api/auth/gcp (#23970)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.41.0 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.41.0...v1.56.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2024-01-04 12:34:00 -05:00
Josh Black
1e34eb5ef8 update vault auth submodules to api/v1.10.0 (#22772) 2023-09-05 18:57:10 +00:00
Tanmay Pereira Naik
2269369229 docs: Update outdated vaultproject.io/docs/ links (#22162)
Signed-off-by: Tanmay Pereira Naik <59953366+tanmay-pnaik@users.noreply.github.com>
Co-authored-by: Brian Shumate <brianshumate@users.noreply.github.com>
2023-08-15 12:59:34 -04:00
Mauro Leggieri
951f1fef1b Add missing option for RSA2048 signature (#22227)
Add support to use the new RSA2048 signature to validate EC2 instances.

Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
2023-08-14 15:08:43 -04:00
Violet Hynes
cb7531d3e1 Update auth/api submodules to new API version (#20809)
* Update auth/api submodules to new API version

* Update auth/api submodules to new API version
2023-05-26 14:06:31 +00:00
Hamid Ghaf
e55c18ed12 adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00
Kuba Wieczorek
fffc3daa8d update vault auth submodules to new version of API (#19127) 2023-02-10 08:12:10 -08:00
Anton Averchenkov
39335cc8cd Update vault and api/auth submodules to use api/v1.8.3 (#18773) 2023-01-20 11:44:03 -05:00
AnPucel
b0adb620c4 Update vault to v1.8.1 (#17516)
* Update vault to v1.8.1

* Updating api/auth to use new version of api
2022-10-20 11:56:55 -07:00
Steven Clark
a156f4e4a6 update vault auth submodules to api/v1.8.0 (#17228) 2022-09-20 10:51:51 -04:00
Josh Black
03d2be4cb9 update gofumpt to 0.3.1 and reformat the repo (#17055)
* update gofumpt to 0.3.1 and reformat the repo

* output the version of the formatter we're using
2022-09-07 17:31:20 -07:00
VAL
8aac5c2057 Update to use latest api version (#16329) 2022-07-18 10:36:50 -07:00
Christopher Swenson
df79e2c0eb Update AWS auth method certificates (#15719)
Update AWS auth method certificates

Add tests that the `rsa2048` document can also be verified using the
`pkcs7` field for AWS auth.

Due to the use of SHA-1-based signatures for the `identity` and `pkcs7`
methods, we want to encourage moving toward using the RSA 2048 workflow,
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/verify-rsa2048.html

This doesn't require code changes for Vault necessarily, but adding in
the (many) certificates will help end users.

Also adds `rsa2048` option to API to fetch the RSA 2048 signature.

I will make a PR to update to the AWS auth docs to document the RSA 2048
flow soon after this.
2022-06-01 10:26:17 -07:00
Christopher Swenson
38b0fa6b53 Remove spurious fmt.Printf calls including one of a key (#15344)
And add a semgrep for fmt.Printf/Println.
2022-05-19 12:27:02 -07:00
Anton Averchenkov
7d520d4022 Use WriteWithContext in auth helpers (#14775) 2022-04-06 11:20:34 -04:00
Anton Averchenkov
8e0f267545 Update Vault to use api/v1.5.0 (#14718) 2022-03-28 12:11:03 -04:00
Victor Rodriguez
fb893ec97c Run 'make fmt'. (#13914) 2022-02-04 16:54:06 -05:00
Ricky Grassmuck
6dfce8fd68 [API] Add LDAP auth method (#13841)
* [api] Add LDAP auth method

This commit adds LDAP to the available Vault API auth methods.

* Add changelog entry for PR 13841

* Obtain password for LDAPAuth from File/EnvVar

* Fix name of package in error message
2022-02-04 11:10:51 -08:00
Josh Black
b17e3256dd reformat using 'make fmt' (#13794) 2022-01-27 10:06:34 -08:00
VAL
3688d63348 update vault and auth submodules to api v1.3.1 (#13509) 2021-12-23 09:45:30 -08:00
Anton Averchenkov
83f9186253 Respect WithWrappingToken for all secret ID's in approle auth (#13241) 2021-11-23 15:53:48 -08:00
VAL
d9a0adc64e GCP and Azure Login methods for Go client library (#13022)
* Add native Login method for GCP auth backend

* Add native Login method for Azure auth backend

* Add changelog entry

* Use official azure library Environment struct rather than passing string, add timeouts

* Use v1.3.0 which now has interface definition

* Don't throw away error and close resp body

* Back to WithResource so we can support non-Azure URLs for aud
2021-11-12 09:32:05 -08:00
VAL
cd1f974f36 Remove reference to local api module, use v1.3.0 (#13105) 2021-11-09 14:49:46 -08:00
VAL
3ed7bca8e4 Native Login method for Go client (#12796)
* Native Login method, userpass and approle interfaces to implement it

* Add AWS auth interface for Login, unexported struct fields for now

* Add Kubernetes client login

* Add changelog

* Add a test for approle client login

* Return errors from LoginOptions, use limited reader for secret ID

* Fix auth comment length

* Return actual type not interface, check for client token in tests

* Require specification of secret ID location using SecretID struct as AppRole arg

* Allow password from env, file, or plaintext

* Add flexibility in how to fetch k8s service token, but still with default

* Avoid passing strings that need to be validated by just having different login options

* Try a couple real tests with approle and userpass login

* Fix method name in comment

* Add context to Login methods, remove comments about certain sources being inherently insecure

* Perform read of secret ID at login time

* Read password from file at login time

* Pass context in integ tests

* Read env var values in at login time, add extra tests

* Update api version

* Revert "Update api version"

This reverts commit 1ef3949497dcf878c47e0e5ffcbc8cac1c3c1679.

* Update api version in all go.mod files
2021-10-26 16:48:48 -07:00