grpc / grpc/grpc-java

binder: SecurityPolicies.allOf() and anyOf() should efficiently interop with AsyncSecurityPolicy

Aperta
#11,547 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
binder enhancement
Lingua principale
Java
Stelle
12.1k
Fork
4k
Merge medio
2g 17h
PR unite (30g)
37

Descrizione

### Is your feature request related to a problem?
As it stands, these composite security policies can be used with AsyncSecurityPolicy, but they end up blocking an additional thread on Future.get() [here](https://github.com/grpc/grpc-java/blob/782a44ad62f84d19291b0771b56b431e6e723752/binder/src/main/java/io/grpc/binder/AsyncSecurityPolicy.java#L45).

### Describe the solution you'd like
We could create new allOfAsync() and anyOfAsync() methods or try to update the existing methods to special case AsyncSecurityPolicy..

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reading binder/src/main/java/io/grpc/binder/AsyncSecurityPolicy.java at the Future.get() call linked in the issue, then inspect the existing SecurityPolicies.allOf() and anyOf() APIs. Determine whether async-specific methods or special handling best avoids the extra blocking thread, and consider how the chosen API should preserve existing composite-policy behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
security
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.