AJ Heller
da43a61322
Automated rollback of commit 822311c0d9
.
...
PiperOrigin-RevId: 621025232
1 year ago
AJ Heller
822311c0d9
[security] Refactor credentials types to remove special handling for insecure creds ( #36176 )
...
Forked from #35957
This PR refactors the credentials types to remove Secure and Insecure Channel and Call credentials types. We standardize on a `c_creds()` accessor method for all credentials types, which can now be treated uniformly. This notably removes special-case handling of insecure credentials.
The special code-paths for insecure creds are no longer necessary in the wake of #25586 .
Closes #36176
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36176 from drfloob:fork/35957/creds-API fd64d59c23
PiperOrigin-RevId: 621008166
1 year ago
Eugene Ostroukhov
1a086609d7
[server] Fix typo in the class name ( #35216 )
...
Closes #35216
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35216 from eugeneo:tasks/typo-aync d9f58bc130
PiperOrigin-RevId: 588146516
1 year ago
Gregory Cooke
9969d820b5
[TLS - Revocation] Crl Provider ( #34715 )
...
This reverts commit 7af5efcfd3
.
2 years ago
apolcyn
7af5efcfd3
Revert "[TLS - Revocation] Crl Provider ( #33786 )" ( #34713 )
...
This reverts commit 0f0396ae92
.
2 years ago
Gregory Cooke
0f0396ae92
[TLS - Revocation] Crl Provider ( #33786 )
...
The basic APIs for the CRL Reloading features.
This adds external types to represent CRL Providers, CRLs, and
CertificateInfo.
Internally we will use `CrlImpl` - this layer is needed to hide OpenSSL
details from the user.
GRFC - https://github.com/grpc/proposal/pull/382
Things Done
* Add external API for `CrlProvider`, `Crl`, `CertInfo` (`CertInfo` is
used during CRL lookup rather than passing the entire certificate).
* Add code paths in `ssl_transport_security` to utilize CRL providers
* Add `StaticCrlProvider`
* Refactor `crl_ssl_transport_security_test.cc` so it is more extensible
and can be used with providers
2 years ago
Yijie Ma
bae0c705aa
[Deps] Update to Clang-16 ( #34492 )
...
<!--
If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.
If your pull request is for a specific language, please add the
appropriate
lang label.
-->
2 years ago
Yijie Ma
f99b8b5bc4
Convert c-style comments to C++-style comments ( #31923 )
...
* baseline
* fix clang-tidy
* manually revert these files
* manually fixup at eof
* revert 2 more files
* change check_deprecated_grpc++.py
* change end2end_defs.include template
* fix check_include_guards.py
* untrack tools/distrib/python/convert_cstyle_comments_to_cpp.py
not yet ready to be submitted
* fix
yapf check_include_guards.py
remove a space...
* fix version.cc.template
* fix version_info.h.template
2 years ago
Craig Tiller
0f9d024fec
[iwyu] c++ ( #29721 )
...
* Revert "Revert "[iwyu] grpc++ (#29610 )" (#29720 )"
This reverts commit 0642bc213d
.
* fixup status_code_enum import issue
* fix
* Automated change: Fix sanity tests
* import fixes
* fix import
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
Craig Tiller
0642bc213d
Revert "[iwyu] grpc++ ( #29610 )" ( #29720 )
...
This reverts commit c8159eabdf
.
3 years ago
Craig Tiller
c8159eabdf
[iwyu] grpc++ ( #29610 )
...
* [iwyu] grpc++
* fix
* fix
* Automated change: Fix sanity tests
* fix
* fix
* fix
* [iwyu] Better script
* eliminate race
* fixes
* Automated change: Fix sanity tests
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
yihuaz
b458db9246
Eliminate gRPC insecure build ( #25586 )
...
* force submit
* fix test error
* remove is_client from local tsi and its callsites
* fix too_many_pings_test
* add missing dep
3 years ago
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
4 years ago
itsemmanuelfrancis
471df71003
removing grpc_metadata::flags, improving GRPC_INITIAL_METADATA_* comments ( #26562 )
4 years ago
Esun Kim
ac080fd17a
Fix readability-inconsistent-declaration-parameter-name manually
4 years ago
ZhenLian
518ed1303c
Add Credential Loading From Static Providers For TLS Credentials
5 years ago
Karthik Ravi Shankar
dbec2415bf
More local fixes
5 years ago
Karthik Ravi Shankar
1de0bfd9e2
Revert "Revert "Move create_channel and credentials from ::grpc_impl to ::grpc""
5 years ago
Karthik Ravi Shankar
f1bc43edf6
Revert "Move create_channel and credentials from ::grpc_impl to ::grpc"
5 years ago
Karthik Ravi Shankar
2fc4cfadcf
Move ServerCredentials from ::grpc_impl to ::grpc
...
Reverts: https://github.com/grpc/grpc/pull/18452
5 years ago
Karthik Ravi Shankar
e6a6fdb313
Fix secure test
5 years ago
Esun Kim
165ee5007a
Replaced grpc::string with std::string
5 years ago
Karthik Ravi Shankar
7f2eaaabac
Move create_channel and credentials from ::grpc_impl to ::grpc
...
Reverts: https://github.com/grpc/grpc/pull/18374 and
https://github.com/grpc/grpc/pull/18444
Credentials and create_channel are very closely intertwined, so it is
easier to migrate them together.
5 years ago
Matthew Stevenson
864e232edf
Update TlsServerCredentials to initialize C-core.
5 years ago
Yihua Zhang
a6dbc7adb5
rename spiffe to tls
5 years ago
Vijay Pai
500b0e6d8e
Remove unused parameter warnings from include/ and src/core
6 years ago
Vijay Pai
d6998122db
Use range-based fors in src/cpp/{client,server}
6 years ago
Matthew Stevenson
ff9697acd7
Changed SPIFFE credentials naming to TLS credentials, per Jiangtao's comments.
6 years ago
Matthew Stevenson
e26e2b6b8b
First Spiffe1 commit
6 years ago
Karthik Ravi Shankar
2f2ed7228b
Fix clang_format_code.sh errors
6 years ago
Karthik Ravi Shankar
ecfc107f32
Make more changes to remove grpc qualifier from tests
6 years ago
Karthik Ravi Shankar
54171e276f
Fold server credentials from grpc to grpc_impl namespace
6 years ago
Soheil Hassas Yeganeh
9decf48632
Move security credentials, connectors, and auth context to C++
...
This is to use `grpc_core::RefCount` to improve performnace.
This commit also replaces explicit C vtables, with C++ vtable
with its own compile time assertions and performance benefits.
It also makes use of `RefCountedPtr` wherever possible.
6 years ago
Yash Tibrewal
f8561952e9
Don't use default capture
7 years ago
Yash Tibrewal
e08a2b387a
Prefer lambda expressions over std::bind
7 years ago
Yihua Zhang
acc6ba0c24
Add C++ wrapper for local credentials
7 years ago
Yihua Zhang
fe2fa0c1c8
Add C++ experimental API extensions for ALTS C stack
7 years ago
Vijay Pai
7fed69b7ad
Use static_cast rather than reinterpret_cast whenever possible
7 years ago
Muxi Yan
0e00c43082
Move headers from grpc++ to grpcpp
7 years ago
Jan Tattermusch
c9ec2c0888
Revert "Stop using std::thread in C++ library since it can trigger exceptions"
7 years ago
Vijay Pai
5dd32268be
Switch C++ sync server to use gpr_thd rather than std::thread and provide resource exhaustion mechanism
7 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
Craig Tiller
7c70b6c144
Revert "Revert "Metadata handling rewrite""
...
This reverts commit 5e01e2ac97
.
8 years ago
Craig Tiller
5e01e2ac97
Revert "Metadata handling rewrite"
8 years ago
Craig Tiller
f658bf0e1b
Start resolving memory issues in C++ metadata
9 years ago
Craig Tiller
cca7589333
Start moving C++ to slice interfaces
9 years ago
Deepak Lukose
dba4c5fd01
Add various options to verify ssl/tls client cert including letting the
...
application handle the authentication.
9 years ago
Vijay Pai
e57abcfbdb
C++ changes required to maintain gcc4.4 compatibility - reduce use
...
of ambiguous nullptr, eliminate use of brace initializer lists
10 years ago
Craig Tiller
71a0f9d3b0
Fix clang-format script
10 years ago
yang-g
61e461e890
Guard against empty vector
10 years ago