Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
74aca35
feat(azure): Logic Apps run histories, Http polling and webhook trigg…
Nov 21, 2026
0e6853d
feat(azure): API Management policy expressions, JWT validation, quota…
Nov 21, 2026
a10008b
docs(azure): record Logic Apps and API Management parity; allow certi…
Nov 21, 2026
4bb012a
fix(azure): Logic Apps poll credentials stay same-origin, bounded Ret…
Nov 21, 2026
6346a93
fix(azure): API Management atomic quota admission, per-certificate cl…
Nov 21, 2026
53d93e4
fix(azure): Logic Apps webhook callback host kept per workflow; deter…
Nov 21, 2026
0b619cd
fix(azure): API Management stops sessions and one-way requests on clo…
Nov 21, 2026
c8b40e8
feat(transcribe): decode FLAC, MP3, Ogg Vorbis and more WAV encodings
Nov 21, 2026
ca39f7e
feat(ecs): resume launches of tasks restored mid-provisioning
Nov 21, 2026
385fc3d
fix(transcribe): bound decoded audio, cancel on delete, tolerate plac…
Nov 21, 2026
a451968
fix(ecs): restored launches survive a second restore, stopped tasks n…
Nov 21, 2026
80a2446
docs(azure): regenerate service READMEs
Nov 21, 2026
b2edf2d
docs: regenerate service READMEs
Nov 21, 2026
0c590d7
build: tidy the desktop module for the audio decoders; format the wea…
Nov 21, 2026
92945c2
perf: generate SNS signing and Entra issuer keys on first use
Nov 21, 2026
2078a08
test(gcpbigquery): wait for query jobs before using their tables
Nov 21, 2026
c7a94da
test(gcpbigquery): assert the duplicate-table job error instead of ig…
Nov 21, 2026
e980299
fix(dynamodb): release capacity counters of deleted tables
Nov 21, 2026
236f2be
fix(ecs): never hand two live tasks in a cluster the same private IP
Nov 21, 2026
31cfff3
test(app): drop the wall-clock delete assertion from the InfluxDB sec…
Nov 21, 2026
1d88f53
test(gcpspanner): take the dump deadline out of the per-database budg…
Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Every service links to its own page with a coverage breakdown — audited operat
| Service | Parity | PARITY Entries | Notes |
|---|---|---|---|
| [ECR](services/ecr/README.md) | A | 58 | 2 structural gaps; 2 deferred |
| [ECS](services/ecs/README.md) | A | 65 | 5 gaps; 5 structural gaps |
| [ECS](services/ecs/README.md) | A | 65 | 4 gaps; 5 structural gaps |
| [EKS](services/eks/README.md) | A | 71 | 5 structural gaps; 1 deferred |

### Storage
Expand Down Expand Up @@ -899,7 +899,7 @@ Every service links to its own page with a coverage breakdown — audited operat
| [SageMaker](services/sagemaker/README.md) | A | 70 | 19 structural gaps |
| [SageMaker Runtime](services/sagemakerruntime/README.md) | A | 3 | 1 structural gap |
| [Textract](services/textract/README.md) | A | 25 | 2 structural gaps; 1 deferred |
| [Transcribe](services/transcribe/README.md) | A | 44 | 5 gaps; 2 structural gaps |
| [Transcribe](services/transcribe/README.md) | A | 44 | 6 gaps; 2 structural gaps |
| [Translate](services/translate/README.md) | A | 19 | 2 structural gaps |

### Media
Expand Down
7 changes: 7 additions & 0 deletions desktop/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,26 @@ require (
github.com/gorilla/mux v1.8.1 // indirect
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0 // indirect
github.com/hajimehoshi/go-mp3 v0.3.4 // indirect
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/icza/bitio v1.1.0 // indirect
github.com/iskorotkov/avro/v2 v2.35.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/pgx/v5 v5.11.0 // indirect
github.com/jackc/puddle/v2 v2.2.3 // indirect
github.com/jfreymuth/oggvorbis v1.0.5 // indirect
github.com/jfreymuth/vorbis v1.0.2 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.20.3 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/labstack/echo/v5 v5.4.1 // indirect
github.com/mattn/go-colorable v0.1.16 // indirect
github.com/mattn/go-isatty v0.0.24 // indirect
github.com/mewkiz/flac v1.0.14 // indirect
github.com/mewkiz/pkg v0.0.0-20250417130911-3f050ff8c56d // indirect
github.com/mewpkg/term v0.0.0-20241026122259-37a80af23985 // indirect
github.com/microsoft/go-mssqldb v1.11.2 // indirect
github.com/miekg/dns v1.1.73 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
Expand Down
18 changes: 18 additions & 0 deletions desktop/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -850,12 +850,19 @@ github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5T
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0 h1:Bd7KaOxzULLxtZ/K5s1aLbWhR0+5RToO65TXHsf3bqQ=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0/go.mod h1:nN7ts3dFXKtCZWc//yfkpcQNKJABg16/uDVAZpLDalo=
github.com/hajimehoshi/go-mp3 v0.3.4 h1:NUP7pBYH8OguP4diaTZ9wJbUbk3tC0KlfzsEpWmYj68=
github.com/hajimehoshi/go-mp3 v0.3.4/go.mod h1:fRtZraRFcWb0pu7ok0LqyFhCUrPeMsGRSVop0eemFmo=
github.com/hajimehoshi/oto/v2 v2.3.1/go.mod h1:seWLbgHH7AyUMYKfKYT9pg7PhUu9/SisyJvNTT+ASQo=
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 h1:QxkVTxwColcduO+LP7eJO56r2hFiG8zEbfAAzRv52KQ=
github.com/hashicorp/golang-lru/arc/v2 v2.0.7/go.mod h1:Pe7gBlGdc8clY5LJ0LpJXMt5AmgmWNH1g+oFFVUHOEc=
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
github.com/icza/bitio v1.1.0 h1:ysX4vtldjdi3Ygai5m1cWy4oLkhWTAi+SyO6HC8L9T0=
github.com/icza/bitio v1.1.0/go.mod h1:0jGnlLAx8MKMr9VGnn/4YrvZiprkvBelsVIbA9Jjr9A=
github.com/icza/mighty v0.0.0-20180919140131-cfd07d671de6 h1:8UsGZ2rr2ksmEru6lToqnXgA8Mz1DP11X4zSJ159C3k=
github.com/icza/mighty v0.0.0-20180919140131-cfd07d671de6/go.mod h1:xQig96I1VNBDIWGCdTt54nHt6EeI639SmHycLYL7FkA=
github.com/iskorotkov/avro/v2 v2.35.0 h1:UJoOjHeInrzB09APUZP28nJxyWeKenrPctDVx3VS3C4=
github.com/iskorotkov/avro/v2 v2.35.0/go.mod h1:msR3h6CL3GwE4r6s8LgN1dUUHlm8mHx8tVvCZF8H5Xo=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
Expand All @@ -866,6 +873,10 @@ github.com/jackc/pgx/v5 v5.11.0 h1:IzBBtyK9AHqf98cctWFifYSci2hgQR/cd56wB4p+ogg=
github.com/jackc/pgx/v5 v5.11.0/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4=
github.com/jackc/puddle/v2 v2.2.3 h1:f8HoREISb3l5eO9coPgK7U3hKLhWGokOFVcThl5jrao=
github.com/jackc/puddle/v2 v2.2.3/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/jfreymuth/oggvorbis v1.0.5 h1:u+Ck+R0eLSRhgq8WTmffYnrVtSztJcYrl588DM4e3kQ=
github.com/jfreymuth/oggvorbis v1.0.5/go.mod h1:1U4pqWmghcoVsCJJ4fRBKv9peUJMBHixthRlBeD6uII=
github.com/jfreymuth/vorbis v1.0.2 h1:m1xH6+ZI4thH927pgKD8JOH4eaGRm18rEE9/0WKjvNE=
github.com/jfreymuth/vorbis v1.0.2/go.mod h1:DoftRo4AznKnShRl1GxiTFCseHr4zR9BN3TWXyuzrqQ=
github.com/jinzhu/copier v0.3.5 h1:GlvfUwHk62RokgqVNvYsku0TATCF7bAHVwEXoBh3iJg=
github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg=
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
Expand Down Expand Up @@ -901,6 +912,12 @@ github.com/mattn/go-colorable v0.1.16 h1:+2YjeAe7xP1OQbZW1jERPWWCDLlNqFNCvjiqGiA
github.com/mattn/go-colorable v0.1.16/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI=
github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A=
github.com/mewkiz/flac v1.0.14 h1:hyRGAM8NCKznoPmIi9zz2jyO+nfmxY2ErqBnHZ+gxh4=
github.com/mewkiz/flac v1.0.14/go.mod h1:HfPYDA+oxjyuqMu2V+cyKcxF51KM6incpw5eZXmfA6k=
github.com/mewkiz/pkg v0.0.0-20250417130911-3f050ff8c56d h1:IL2tii4jXLdhCeQN69HNzYYW1kl0meSG0wt5+sLwszU=
github.com/mewkiz/pkg v0.0.0-20250417130911-3f050ff8c56d/go.mod h1:SIpumAnUWSy0q9RzKD3pyH3g1t5vdawUAPcW5tQrUtI=
github.com/mewpkg/term v0.0.0-20241026122259-37a80af23985 h1:h8O1byDZ1uk6RUXMhj1QJU3VXFKXHDZxr4TXRPGeBa8=
github.com/mewpkg/term v0.0.0-20241026122259-37a80af23985/go.mod h1:uiPmbdUbdt1NkGApKl7htQjZ8S7XaGUAVulJUJ9v6q4=
github.com/microsoft/go-mssqldb v1.11.2 h1:FCgeBIK8um2+X4tbun6Q71N1KsfyCDPKY41e1yGVjSE=
github.com/microsoft/go-mssqldb v1.11.2/go.mod h1:CYgwG5AMXFojbjTg+GNP5G/y6uz1BhTyZaPqQWzkGnQ=
github.com/miekg/dns v1.1.73 h1:uhT8nJxmTrPJYClxVxTCX+CVn6qnzSiybRk72Z6DgrE=
Expand Down Expand Up @@ -1195,6 +1212,7 @@ golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220712014510-0a85c31ab51e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs=
Expand Down
9 changes: 8 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.27.3

require (
cel.dev/cel-go v0.33.2
cloud.google.com/go v0.123.0
cloud.google.com/go/apigateway v1.17.0
cloud.google.com/go/artifactregistry v1.27.0
cloud.google.com/go/batch v1.24.1
Expand Down Expand Up @@ -309,10 +310,13 @@ require (
github.com/google/uuid v1.6.0
github.com/googleapis/gax-go/v2 v2.27.0
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674
github.com/hajimehoshi/go-mp3 v0.3.4
github.com/iskorotkov/avro/v2 v2.35.0
github.com/jackc/pgx/v5 v5.11.0
github.com/jfreymuth/oggvorbis v1.0.5
github.com/klauspost/compress v1.20.3
github.com/labstack/echo/v5 v5.4.1
github.com/mewkiz/flac v1.0.14
github.com/microsoft/go-mssqldb v1.11.2
github.com/miekg/dns v1.1.73
github.com/moby/moby/api v1.56.1
Expand Down Expand Up @@ -363,7 +367,6 @@ require (

require (
cel.dev/expr v0.25.2 // indirect
cloud.google.com/go v0.123.0 // indirect
cloud.google.com/go/auth v0.24.1 // indirect
cloud.google.com/go/auth/oauth2adapt v0.3.0 // indirect
cloud.google.com/go/compute/metadata v0.10.0 // indirect
Expand Down Expand Up @@ -469,9 +472,11 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0 // indirect
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/icza/bitio v1.1.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.3 // indirect
github.com/jfreymuth/vorbis v1.0.2 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.4.0 // indirect
Expand All @@ -482,6 +487,8 @@ require (
github.com/magiconair/properties v1.18.12 // indirect
github.com/mattn/go-colorable v0.1.15 // indirect
github.com/mattn/go-isatty v0.0.24 // indirect
github.com/mewkiz/pkg v0.0.0-20250417130911-3f050ff8c56d // indirect
github.com/mewpkg/term v0.0.0-20241026122259-37a80af23985 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/go-archive v0.3.3 // indirect
github.com/moby/patternmatcher v0.6.1 // indirect
Expand Down
18 changes: 18 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -935,12 +935,19 @@ github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5T
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0 h1:Bd7KaOxzULLxtZ/K5s1aLbWhR0+5RToO65TXHsf3bqQ=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.31.0/go.mod h1:nN7ts3dFXKtCZWc//yfkpcQNKJABg16/uDVAZpLDalo=
github.com/hajimehoshi/go-mp3 v0.3.4 h1:NUP7pBYH8OguP4diaTZ9wJbUbk3tC0KlfzsEpWmYj68=
github.com/hajimehoshi/go-mp3 v0.3.4/go.mod h1:fRtZraRFcWb0pu7ok0LqyFhCUrPeMsGRSVop0eemFmo=
github.com/hajimehoshi/oto/v2 v2.3.1/go.mod h1:seWLbgHH7AyUMYKfKYT9pg7PhUu9/SisyJvNTT+ASQo=
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 h1:QxkVTxwColcduO+LP7eJO56r2hFiG8zEbfAAzRv52KQ=
github.com/hashicorp/golang-lru/arc/v2 v2.0.7/go.mod h1:Pe7gBlGdc8clY5LJ0LpJXMt5AmgmWNH1g+oFFVUHOEc=
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
github.com/icza/bitio v1.1.0 h1:ysX4vtldjdi3Ygai5m1cWy4oLkhWTAi+SyO6HC8L9T0=
github.com/icza/bitio v1.1.0/go.mod h1:0jGnlLAx8MKMr9VGnn/4YrvZiprkvBelsVIbA9Jjr9A=
github.com/icza/mighty v0.0.0-20180919140131-cfd07d671de6 h1:8UsGZ2rr2ksmEru6lToqnXgA8Mz1DP11X4zSJ159C3k=
github.com/icza/mighty v0.0.0-20180919140131-cfd07d671de6/go.mod h1:xQig96I1VNBDIWGCdTt54nHt6EeI639SmHycLYL7FkA=
github.com/iskorotkov/avro/v2 v2.35.0 h1:UJoOjHeInrzB09APUZP28nJxyWeKenrPctDVx3VS3C4=
github.com/iskorotkov/avro/v2 v2.35.0/go.mod h1:msR3h6CL3GwE4r6s8LgN1dUUHlm8mHx8tVvCZF8H5Xo=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
Expand All @@ -951,6 +958,10 @@ github.com/jackc/pgx/v5 v5.11.0 h1:IzBBtyK9AHqf98cctWFifYSci2hgQR/cd56wB4p+ogg=
github.com/jackc/pgx/v5 v5.11.0/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4=
github.com/jackc/puddle/v2 v2.2.3 h1:f8HoREISb3l5eO9coPgK7U3hKLhWGokOFVcThl5jrao=
github.com/jackc/puddle/v2 v2.2.3/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/jfreymuth/oggvorbis v1.0.5 h1:u+Ck+R0eLSRhgq8WTmffYnrVtSztJcYrl588DM4e3kQ=
github.com/jfreymuth/oggvorbis v1.0.5/go.mod h1:1U4pqWmghcoVsCJJ4fRBKv9peUJMBHixthRlBeD6uII=
github.com/jfreymuth/vorbis v1.0.2 h1:m1xH6+ZI4thH927pgKD8JOH4eaGRm18rEE9/0WKjvNE=
github.com/jfreymuth/vorbis v1.0.2/go.mod h1:DoftRo4AznKnShRl1GxiTFCseHr4zR9BN3TWXyuzrqQ=
github.com/jinzhu/copier v0.3.5 h1:GlvfUwHk62RokgqVNvYsku0TATCF7bAHVwEXoBh3iJg=
github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg=
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
Expand Down Expand Up @@ -990,6 +1001,12 @@ github.com/mattn/go-colorable v0.1.15 h1:+u9SLTRGnXv73cEsnsmoZBom+dMU88B2M0aDcWy
github.com/mattn/go-colorable v0.1.15/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI=
github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A=
github.com/mewkiz/flac v1.0.14 h1:hyRGAM8NCKznoPmIi9zz2jyO+nfmxY2ErqBnHZ+gxh4=
github.com/mewkiz/flac v1.0.14/go.mod h1:HfPYDA+oxjyuqMu2V+cyKcxF51KM6incpw5eZXmfA6k=
github.com/mewkiz/pkg v0.0.0-20250417130911-3f050ff8c56d h1:IL2tii4jXLdhCeQN69HNzYYW1kl0meSG0wt5+sLwszU=
github.com/mewkiz/pkg v0.0.0-20250417130911-3f050ff8c56d/go.mod h1:SIpumAnUWSy0q9RzKD3pyH3g1t5vdawUAPcW5tQrUtI=
github.com/mewpkg/term v0.0.0-20241026122259-37a80af23985 h1:h8O1byDZ1uk6RUXMhj1QJU3VXFKXHDZxr4TXRPGeBa8=
github.com/mewpkg/term v0.0.0-20241026122259-37a80af23985/go.mod h1:uiPmbdUbdt1NkGApKl7htQjZ8S7XaGUAVulJUJ9v6q4=
github.com/microsoft/go-mssqldb v1.11.2 h1:FCgeBIK8um2+X4tbun6Q71N1KsfyCDPKY41e1yGVjSE=
github.com/microsoft/go-mssqldb v1.11.2/go.mod h1:CYgwG5AMXFojbjTg+GNP5G/y6uz1BhTyZaPqQWzkGnQ=
github.com/miekg/dns v1.1.73 h1:uhT8nJxmTrPJYClxVxTCX+CVn6qnzSiybRk72Z6DgrE=
Expand Down Expand Up @@ -1315,6 +1332,7 @@ golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220712014510-0a85c31ab51e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.50.0 h1:dkKZEFTEKaLr1sjhs0WiKqoi8Jj5nHbS3Njmx1UoMJs=
Expand Down
23 changes: 16 additions & 7 deletions internal/app/leak_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/blackbirdworks/gopherstack/pkgs/chaos"
"github.com/blackbirdworks/gopherstack/pkgs/service"
cloudtrailbackend "github.com/blackbirdworks/gopherstack/services/cloudtrail"
ddbbackend "github.com/blackbirdworks/gopherstack/services/dynamodb"
)

const (
Expand Down Expand Up @@ -61,6 +62,9 @@ type leakEnv struct {
// resetBounded clears the intentionally bounded event stores (CloudTrail
// keeps up to 100k events) so they do not mask real growth.
resetBounded func()
// drainDeleted finalises resources queued for async deletion so the
// snapshots never straddle a janitor pass.
drainDeleted func()
cfg aws.Config
}

Expand Down Expand Up @@ -101,7 +105,14 @@ func newLeakEnv(t *testing.T) *leakEnv {
ct, ok := byName["CloudTrail"].(*cloudtrailbackend.Handler)
require.True(t, ok)

return &leakEnv{cfg: cfg, resetBounded: ct.Reset}
ddb, ok := byName["DynamoDB"].(*ddbbackend.DynamoDBHandler)
require.True(t, ok)

return &leakEnv{
cfg: cfg,
resetBounded: ct.Reset,
drainDeleted: func() { ddb.DrainDeletedTables(context.Background()) },
}
}

// leakOwnedSeries reports whether the series carries a label value naming a
Expand All @@ -122,6 +133,7 @@ func takeLeakSnapshot(t *testing.T, env *leakEnv) leakSnapshot {
t.Helper()

env.resetBounded()
env.drainDeleted()

for range 3 {
runtime.GC()
Expand Down Expand Up @@ -492,9 +504,8 @@ func TestLeakDynamoDB(t *testing.T) {
ctx := context.Background()

cases := []struct {
op func(t *testing.T, c *sdkdynamodb.Client) func(i int)
name string
settle bool
op func(t *testing.T, c *sdkdynamodb.Client) func(i int)
name string
}{
{name: "item_crud", op: func(t *testing.T, c *sdkdynamodb.Client) func(int) {
t.Helper()
Expand Down Expand Up @@ -593,7 +604,7 @@ func TestLeakDynamoDB(t *testing.T) {
_, err = c.DeleteTable(ctx, &sdkdynamodb.DeleteTableInput{TableName: aws.String(name)})
require.NoError(t, err)
}
}, settle: true},
}},
{name: "transact_unique_token", op: func(t *testing.T, c *sdkdynamodb.Client) func(int) {
t.Helper()
leakDDBTable(t, c, "leak-tok", false)
Expand Down Expand Up @@ -673,8 +684,6 @@ func TestLeakDynamoDB(t *testing.T) {
//nolint:paralleltest // measures process-wide heap and goroutine counts
t.Run(tc.name, func(t *testing.T) {
env := newLeakEnv(t)
budget := budget
budget.settle = tc.settle
assertNoLeak(t, env, budget, tc.op(t, leakDDB(env)))
})
}
Expand Down
3 changes: 0 additions & 3 deletions internal/app/timestreaminfluxdb_wiring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ func TestTimestreamInfluxDBAuthSecretWiring(t *testing.T) {
assert.Equal(t, tt.wantUsername, secret["username"])
assert.Equal(t, "Passw0rdPassw0rd", secret["password"])
assert.Len(t, secret["token"], 64)

_, err = ts.DeleteDbInstance(t.Context(), &timestreaminfluxdb.DeleteDbInstanceInput{Identifier: out.Id})
assert.Error(t, err, "a CREATING instance cannot be deleted yet")
})
}
}
7 changes: 6 additions & 1 deletion pkgs/aadauth/claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ func (iss *Issuer) Parse(tokenString string) (jwt.MapClaims, error) {
return nil, fmt.Errorf("%w: unexpected signing method", ErrInvalidToken)
}

return &iss.privateKey.PublicKey, nil
priv, err := iss.key()
if err != nil {
return nil, err
}

return &priv.PublicKey, nil
})
if err != nil {
return nil, fmt.Errorf("%w: %w", ErrInvalidToken, err)
Expand Down
4 changes: 4 additions & 0 deletions pkgs/aadauth/export_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package aadauth

// KeyGenerated reports whether the RSA key has been generated yet.
func (iss *Issuer) KeyGenerated() bool { return iss.generated.Load() }
48 changes: 33 additions & 15 deletions pkgs/aadauth/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
"crypto/rsa"
"encoding/base64"
"fmt"
"sync"
"sync/atomic"
"time"

"github.com/golang-jwt/jwt/v5"
Expand Down Expand Up @@ -52,26 +54,32 @@ const DefaultTokenExpirySeconds = 3599
// which is acceptable because validation itself is opt-in and off by default
// (AZURE.md section 10.5).
type Issuer struct {
privateKey *rsa.PrivateKey
keyID string
key func() (*rsa.PrivateKey, error)
keyID string
generated atomic.Bool
}

// NewIssuer generates a fresh RSA-2048 keypair and a random key ID.
// NewIssuer returns an issuer with a random key ID; its RSA-2048 keypair is
// generated on first use, so unused issuers cost no key generation.
func NewIssuer() (*Issuer, error) {
privateKey, err := rsa.GenerateKey(rand.Reader, rsaKeyBits)
if err != nil {
return nil, fmt.Errorf("aadauth: generating RSA key: %w", err)
}

kidBytes := make([]byte, keyIDLen)
if _, err = rand.Read(kidBytes); err != nil {
if _, err := rand.Read(kidBytes); err != nil {
return nil, fmt.Errorf("aadauth: generating key ID: %w", err)
}

return &Issuer{
privateKey: privateKey,
keyID: base64.RawURLEncoding.EncodeToString(kidBytes),
}, nil
iss := &Issuer{keyID: base64.RawURLEncoding.EncodeToString(kidBytes)}
iss.key = sync.OnceValues(func() (*rsa.PrivateKey, error) {
iss.generated.Store(true)

k, err := rsa.GenerateKey(rand.Reader, rsaKeyBits)
if err != nil {
return nil, fmt.Errorf("aadauth: generating RSA key: %w", err)
}

return k, nil
})

return iss, nil
}

// ClientCredentialsClaims are the AAD v2.0-shaped claims this package
Expand Down Expand Up @@ -125,10 +133,15 @@ func (iss *Issuer) IssueClientCredentialsToken(claims ClientCredentialsClaims, e
jwtClaims["scp"] = claims.Scope
}

priv, err := iss.key()
if err != nil {
return "", err
}

token := jwt.NewWithClaims(jwt.SigningMethodRS256, jwtClaims)
token.Header["kid"] = iss.keyID

signed, err := token.SignedString(iss.privateKey)
signed, err := token.SignedString(priv)
if err != nil {
return "", fmt.Errorf("aadauth: signing token: %w", err)
}
Expand All @@ -146,5 +159,10 @@ func (iss *Issuer) PublicKeyForKID(kid string) (*rsa.PublicKey, bool) {
return nil, false
}

return &iss.privateKey.PublicKey, true
priv, err := iss.key()
if err != nil {
return nil, false
}

return &priv.PublicKey, true
}
Loading