Commit ae56597
committed
fix(agent-tunnel): address Copilot review on PR #1773
- EnrollmentClaims: override GetDefaultLifetime() to 3600s (was 300s).
The operator copy/paste flow easily exceeds 5 minutes; the old
EnrollmentTokenStore had a 1h default for the same reason.
- api/tunnel.rs: return 403 instead of 404 when JWT validation fails
and no static enrollment_secret is configured. The user's token is
unauthenticated, not a server-config issue. 404 stays for the case
where the agent tunnel feature is fully disabled.
- extract.rs: sync top-level rustdoc on AgentManagementReadAccess to
list AgentRead alongside the existing back-compat scopes.1 parent a55e6e9 commit ae56597
3 files changed
Lines changed: 20 additions & 2 deletions
File tree
- devolutions-gateway/src
- api
- utils/dotnet/Devolutions.Gateway.Utils/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
152 | | - | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
58 | 69 | | |
0 commit comments