Commit Graph

18 Commits

Author SHA1 Message Date
Arjan Singh Bal 09dd4ba0fb
testdata: Wrap lines to 80 columns in markdown file (#8235) 2025-04-08 14:32:55 +05:30
Gregory Cooke 4b5505d301
[Security] Add support for SPIFFE Bundle Maps in XDS bundles (#8180)
This adds support for configuring SPIFFE Bundle Maps inside of credentials via xds bundles.

See the gRFC for more detail grpc/proposal#462
2025-04-04 13:12:53 -04:00
Gregory Cooke 1f6b0cff02
[Security] Add support for SPIFFE Bundle Maps in certificate providers (#8167) 2025-03-17 14:39:04 -04:00
Gregory Cooke 75d4a60639
[Security] Add support for parsing SPIFFE Bundle Maps (#8124)
This adds a dependency on go-spiffe in order to parse SPIFFE bundles. More specifically, that library does not yet support SPIFFE bundle maps, but it does support SPIFFE bundles. This adds parsing of these maps to grpc-go
2025-03-12 13:32:01 -04:00
Arjan Singh Bal 4bb0170ac6
status: Fix status incompatibility introduced by #6919 and move non-regeneratable proto code into /testdata (#7724) 2024-10-22 23:16:16 +05:30
eshitachandwani e8a70c6c71
vet: add check to ensure terminating newline (#7645) 2024-10-07 10:34:22 -07:00
Nathan Baulch c8951abc16
*: fix minor typos (#7487)
* Fix typos

* Fix reflecton tests
2024-08-14 22:43:01 +05:30
erm-g 8edfa1a17b
authz: End2End test for AuditLogger (#6304)
* Draft of e2e test

* No Audit, Audit on Allow and Deny

* Audit on Allow, Audit on Deny

* fix typo

* SPIFFE related testing

* SPIFFE Id validation and certs creation script

* Address PR comments

* Wrap tests using grpctest.Tester

* Address PR comments

* Change package name to authz_test to fit other end2end tests

* Add licence header, remove SPIFFE slice

* Licence year change

* Address PR comments part 1

* Address PR comments part 2

* Address PR comments part 3

* Address PR comments final part

* Drop newline for a brace

* Address PR comments, fix outdated function comment

* Address PR comments

* Fix typo

* Remove unused var

* Address PR comment, change most test error handling to Errorf

* Address PR comments
2023-06-01 19:32:33 -04:00
Easwar Swaminathan 6131e9d46e
examples: regenerate certs to use SHA256 signing algorithm (#5256) 2022-03-21 10:41:21 -07:00
Easwar Swaminathan 344b93a285
testdata: use SHA256 as signing algorithm in testdata certs (#5074) 2021-12-23 14:02:05 -08:00
ZhenLian 84e85f71c9
internal/credentials: fix a bug and add one more helper function SPIFFEIDFromCert (#3929)
* internal/credentials: fix a bug and add one more helper function
2020-10-09 12:57:50 -07:00
Easwar Swaminathan 2983360ff4
Fix interop tests which rely on the old certs/keys. (#3804) 2020-08-10 15:53:34 -07:00
Easwar Swaminathan fd393c8989
testdata: Update testdata certs. (#3786)
* This will be used in certprovider tests where we would want more than one server and client certs.
* Also, updated existing usages of these certs to point to the new  files.
* Also copy over the required certs/key files. This avoids the example gomodule from depending on gRPC testdata package which should be able to change independently.
* Fix interop test's SAN.
2020-08-05 09:55:07 -07:00
Jiangtao Li fe80f08f1f
Update test credentials to 2048-bit RSA keys (#3467) 2020-03-23 15:48:25 +01:00
Menghan Li e00d24941b
testdata: get test assets related to package root instead of GOPATH (#2272)
fixes #2270
2018-08-22 09:00:39 -07:00
田欧 ca9e0c3458 Add testdata package and unify testdata to only one dir (#1297) 2017-07-25 10:24:45 -07:00
Julien Boeuf 123c91d04f Updating the test SSL certs.
- For interoperability testing, we need the same certs everywhere.
- This was not possible before because Go could not deal with some field
  being encoded as PRINTABLESTRING in the CA and UTF8STRING in the
  server1 cert. However, the certs have been fixed in:
  https://github.com/grpc/grpc/pull/4096
- Also changed the go root testdata cert to avoid confusion (maybe there
  should not be that many copy of the certs in the repo but I will leave
  this to the repo maintainers).
2015-11-11 14:50:21 -08:00
iamqizhao cb8841c36e move some tests from end2end.go to clientconn_test.go 2015-11-06 11:33:13 -08:00