aws / aws/aws-dynamodb-encryption-java

Don't print AttributeValues in EncryptionContext.toString()

Aperta
#100 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
141
Fork
74
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

https://github.com/aws/aws-dynamodb-encryption-java/blob/master/sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/encryption/EncryptionContext.java#L220

https://github.com/aws/aws-dynamodb-encryption-java/blob/master/sdk2/src/main/java/software/amazon/cryptools/dynamodbencryptionclientsdk2/encryption/EncryptionContext.java#L182

A safe `toString()` method for `EncryptionContext` would be extremely useful for logging within material providers, and we can get there by excluding attributeValues from being printed. Since it is likely that tests rely on this today, we should consider doing this with a minor bump. (Note: We haven't published the sdk2 version yet, so it's not necessary to do a bump there.)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Compare the SDK1 and SDK2 EncryptionContext.java files at the linked toString() locations, then inspect the existing tests that cover their current string output. Exclude attributeValues from the logged representation while preserving the remaining context, and consider the SDK1 minor-version bump; no SDK2 bump is needed because it has not been published.

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

Valutazione

Stack tecnologico
java
Ambito
security
Tipo di issue
Funzionalità
Difficoltà
2/5
Tempo stimato
Mezza giornata
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.