Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
db1c0b0
Implement DaprSession for distributed session management and update M…
filintod Oct 19, 2025
f17fe4f
revert minor doc change
filintod Oct 19, 2025
eefd150
Merge branch 'main' into add-dapr-session
filintod Oct 19, 2025
ffbb8ae
add missing consistency in get methods, tests, use constants for cons…
filintod Oct 19, 2025
0726985
use consistency constants in more places
filintod Oct 19, 2025
d3a558c
increase coverage to be above 95% limit. update docs, add a couple ed…
filintod Oct 20, 2025
7c3aef6
Merge branch 'main' into add-dapr-session
filintod Oct 20, 2025
ade9144
mention encrypted session support in dapr statestore
filintod Oct 20, 2025
23136fa
improve docs, following openai cookbook suggestions
filintod Oct 20, 2025
40a65dc
pros/cons
filintod Oct 20, 2025
1c99128
make consistency constants part of public interface again
filintod Oct 20, 2025
f7e4769
update example to make the devex better, added reference to env var t…
filintod Oct 20, 2025
5ea717e
minor doc update
filintod Oct 21, 2025
f2341d3
Merge branch 'main' into add-dapr-session
filintod Oct 21, 2025
881fd03
remove extra file push by mistake
filintod Oct 21, 2025
d278e7a
Merge branch 'main' into add-dapr-session
filintod Oct 21, 2025
8f34021
correct docstring constant name
filintod Oct 21, 2025
3270020
feedback
filintod Oct 21, 2025
528b6af
let's try simpler let's aggressive docker check
filintod Oct 21, 2025
f4519df
Merge branch 'main' into add-dapr-session
filintod Oct 21, 2025
af03519
incorporate feedback, also add new context manager for session to aut…
filintod Oct 21, 2025
b8881b7
Merge branch 'main' into add-dapr-session
filintod Oct 21, 2025
42c802c
make unit test a unit test (not trying to connect to dapr)
filintod Oct 21, 2025
b0fed87
Merge branch 'main' into add-dapr-session
filintod Oct 21, 2025
7d444c4
Merge branch 'main' into add-dapr-session
filintod Oct 22, 2025
fac26d0
make example experience better by setting up components and starting …
filintod Oct 22, 2025
078e7d1
Merge branch 'main' into add-dapr-session
filintod Oct 22, 2025
57e0e63
Merge branch 'main' into add-dapr-session
filintod Oct 24, 2025
d1b4720
Merge branch 'main' into add-dapr-session
filintod Oct 27, 2025
80fd3e9
Merge branch 'main' into add-dapr-session
filintod Oct 29, 2025
72dd9eb
tackled feedback:
filintod Oct 29, 2025
401a906
Merge branch 'main' into add-dapr-session
filintod Oct 29, 2025
3637804
Merge branch 'main' into add-dapr-session
filintod Nov 5, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mention encrypted session support in dapr statestore
Signed-off-by: Filinto Duran <1373693+filintod@users.noreply.github.com>
  • Loading branch information
filintod committed Oct 20, 2025
commit ade91447d34b8483f68d174cfe34a973c847afa4
38 changes: 38 additions & 0 deletions docs/sessions/dapr_session.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,44 @@ spec:

[View all 30+ supported state stores →](https://docs.dapr.io/reference/components-reference/supported-state-stores/)

### State encryption

Dapr provides built-in automatic encryption at the state store level using AES-GCM (128, 192, or 256-bit keys). This enables encryption at rest without application code changes:

```yaml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: statestore
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: localhost:6379
- name: primaryEncryptionKey
secretKeyRef:
name: mysecret
key: mykey
# Optional: for key rotation
- name: secondaryEncryptionKey
secretKeyRef:
name: mysecret2
key: mykey2
```

**Key features:**
- Automatic encryption/decryption handled by Dapr
- Support for key rotation with primary/secondary keys
- Works with all Dapr state stores
- Encryption keys are fetched from secrets (never plaintext)

For detailed information on encryption configuration and key rotation strategies, see [Dapr's state encryption documentation](https://docs.dapr.io/developing-applications/building-blocks/state-management/howto-encrypt-state/).

**Note**: Dapr's state-level encryption is complementary to the SDK's `EncryptedSession` wrapper, which provides application-level encryption. Choose the approach that best fits your security requirements:
- **Dapr encryption**: Infrastructure-level, transparent to application code
- **`EncryptedSession`**: Application-level, works with any session backend (Redis, SQLite, etc.)

## Production deployment

### Kubernetes deployment
Expand Down