Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
296 commits
Select commit Hold shift + click to select a range
71a0f67
Release 1.61.2
ubhattacharjya Jun 2, 2022
e3f8c13
Add Ubuntu CodeBuild project - ARM
prateekchaudhry Jun 2, 2022
324386f
Refactor CodeBuild CF and Buildspec
prateekchaudhry Jun 3, 2022
60551e4
Added a minimal ECR image for the signing build environment (#3239)
YashdalfTheGray Jun 6, 2022
d789eea
Adds better logging around SMB mapping for FSX
jterry75 Jun 3, 2022
3a84546
Add json codebuild, ecs-anywhere script signing
prateekchaudhry Jun 9, 2022
6e21488
Update read me
ubhattacharjya Jun 6, 2022
a5f8d25
Release 1.61.3
mythri-garaga Jun 15, 2022
a16d4ed
removed building the pause container because we already have that bui…
YashdalfTheGray Jun 28, 2022
4b69c8e
Add buildvcs=false for go 1.18 builds
fierlion Jun 28, 2022
966524c
Merge pull request #3273 from fierlion/fierlion/updateVcsFalse
fierlion Jun 29, 2022
61ff422
Added the changes to safely parse the SSM parameters for windows cont…
saurabhc123 Jun 22, 2022
3bc7710
Addressed the review comments.
saurabhc123 Jun 23, 2022
5f67348
Incorporating another reivew comment.
saurabhc123 Jun 23, 2022
e966829
Incorporating another review comment.
saurabhc123 Jun 24, 2022
079ddca
Add ubuntu build_log variable
prateekchaudhry Jul 6, 2022
3bc440c
Make buildvcs=false conditional on go version
prateekchaudhry Jul 11, 2022
ce43e14
amazon-ecs-cni-plugins update, logging improvements
sparrc Jul 15, 2022
0d831b0
amazon-ecs-cni-plugins: VethDelete bugfix for "exchange full" errors
sparrc Jul 18, 2022
b5bac2a
packaging update golang >= 1.18.0; Remove ecs-init spec copying in Ma…
prateekchaudhry Jul 20, 2022
5bb246e
Update Windows builds to golang 1.18.3
jterry75 Jul 22, 2022
fe0fbfc
Update GO_VERSION to 1.18.3 (#3301)
amogh09 Jul 23, 2022
e0a148a
Merge pull request #3317 from jterry75/update_windows_golang_version
fierlion Jul 23, 2022
14ffc09
Release 1.62.0
fierlion Jul 26, 2022
667ad6a
Merge pull request #3319 from fierlion/v1.62.0-stage
fierlion Jul 26, 2022
3f73bab
Merge pull request #3321 from aws/dev
fierlion Jul 26, 2022
9cec4c3
Add ecs-init build tag argument in integrated spec files
fierlion Aug 1, 2022
b3f213a
Merge pull request #3324 from fierlion/fierlion/addInitBuildTag
fierlion Aug 1, 2022
19fc6a5
Build changes - Add GitShortSha to config, Add md5, json file creation
prateekchaudhry Aug 3, 2022
a967d05
Merge pull request #3327 from prateekchaudhry/buildAgentFiles
fierlion Aug 3, 2022
60efb59
Release 1.62.1
fierlion Aug 3, 2022
6bc4b34
Merge pull request #3325 from fierlion/v1.62.1-stage
fierlion Aug 4, 2022
a86d46d
Add ecs-init build tag argument in integrated spec files
fierlion Aug 1, 2022
79b953f
Build changes - Add GitShortSha to config, Add md5, json file creation
prateekchaudhry Aug 3, 2022
aaf6d07
Release 1.62.1
fierlion Aug 3, 2022
92e2aa5
swapped the impl of GetAllNetworkInterfaces from net pkg to pwsh cmdlet
Aug 4, 2022
2b080e8
Merge pull request #3328 from rawahars/dev
fierlion Aug 4, 2022
d1c4aa4
Merge branch 'dev'
fierlion Aug 5, 2022
11b64b2
Add ServiceName to task (#3342)
amogh09 Aug 16, 2022
1498089
Update short hash and add init release version; add healthcheck and e…
fierlion Aug 16, 2022
575bae7
Release 1.62.2
YashdalfTheGray Aug 17, 2022
e393af1
Release 1.62.2
YashdalfTheGray Aug 17, 2022
8d72189
fix format string for ecs-init
konoui Jul 2, 2022
2398a94
Update changelog generation script to add amazon-linux-ami-integrated
fierlion Aug 24, 2022
2aebce5
Increase sleep when killing mock exec command agent
amogh09 Aug 24, 2022
dcacbf5
Keep looping if expectedPid matches process id and we are checking fo…
amogh09 Aug 25, 2022
76013cd
Fix json syntax in release-config
fierlion Aug 25, 2022
ae536c1
add RPMs and Anywhere scripts to validation
fierlion Aug 17, 2022
dec1c2d
Update dependencies to include security patches reported by dependabo…
yinyic Aug 26, 2022
9daad2d
add configurable alternate credential profile
fierlion Aug 26, 2022
15bee65
Update dependencies to include security patches reported by dependabo…
yinyic Aug 30, 2022
5000681
Fix cgroupv2 mem usage calculation to match docker cli
sparrc Aug 30, 2022
26b7f68
Update ECS_RESERVED_MEMORY description in README (#3363)
Realmonia Sep 1, 2022
99cff4f
Add env with required path for appmesh integration.
fierlion Sep 6, 2022
ba8b968
Release 1.63.0
chienhanlin Sep 6, 2022
53d8995
Add VpcId to TMDE v4 Task Responses (#3288)
amogh09 Sep 7, 2022
8898f84
add codeowners file; update token permission to read only for workflow
mythri-garaga Sep 2, 2022
1775dcb
Add ServiceName to TMDE v4 TaskResponse (#3362)
amogh09 Sep 8, 2022
1178209
Change JSON key for VPC ID in TMDE v4 TaskResponse from VpcId to VPCI…
amogh09 Sep 9, 2022
7347b50
Dependabot ecs-init fix (#3388)
yinyic Sep 12, 2022
637446a
Release 1.63.1
chienhanlin Sep 12, 2022
31e066e
Revert "swapped the impl of GetAllNetworkInterfaces from net pkg to p…
jterry75 Sep 1, 2022
21a220e
Improve logging when ENI LinkName is not resolved.
jterry75 Sep 9, 2022
bd4ecb1
Bump Go version to 1.19.1 (#3398)
sparrc Sep 26, 2022
a8f2f8a
Update debian recipe to use system golang version
fierlion Sep 23, 2022
4d02364
Merge pull request #3408 from fierlion/fierlion/debianGoBump
fierlion Oct 3, 2022
467e24f
TACS payload changes
mythri-garaga Mar 31, 2022
55313c1
Connect to stats endpoint for service connect enabled tasks
ubhattacharjya Apr 14, 2022
87f67b0
Add Service Connect internal model
angelcar Apr 14, 2022
39790f7
Add SC VIP Extra hosts to pause container
angelcar Apr 19, 2022
eabf036
Add container dependencies for Service Connect
angelcar Apr 19, 2022
428d273
Add ephemeral port generator util
angelcar Apr 21, 2022
2bf53f7
Initialize ephemeral ports for Service Connect
angelcar Apr 21, 2022
1e47a07
paginate the service connect metrics
mythri-garaga Apr 19, 2022
13fe601
Inject APPNET_LISTENER_PORT_MAPPING env var to Service Connect container
angelcar Apr 25, 2022
aff0ff6
Update Service Connect internal model with latest changes
angelcar Apr 27, 2022
27ea221
Refactor to clearly identify pause container code paths for awsvpc mode
angelcar Apr 28, 2022
143eb11
Update TACS model
mythri-garaga May 2, 2022
7f58020
Parse Service Connect stats
May 2, 2022
65768bf
Populate TaskMetric with service connect stats
mythri-garaga May 3, 2022
63bc50a
Refactor out ServiceConnect from task engine (#3211)
aws-gibbskt May 11, 2022
1a51f9c
Add support for mapping relay parameters into task (#3202)
aws-gibbskt May 12, 2022
fa9a6ce
Service Connect - Start task workflow for bridge mode
yinyic May 4, 2022
8b386b8
Adding runtime configuration to ServiceConnect block (#3215)
aws-gibbskt May 18, 2022
0fa4651
Add SC pause container and update container dependency ordering (#3220)
yinyic May 24, 2022
3ac33e1
Connect to stats endpoint through UDS
ubhattacharjya May 25, 2022
9199479
Reduce the cyclomatic complexity of apiTask to 15 (#3221)
aws-gibbskt May 26, 2022
15678c9
Extract service connect config value from ACS
chienhanlin May 9, 2022
ff7c8e2
Add task_attachment.go and rename service_connect_validator.go
chienhanlin May 24, 2022
46a595f
Rename files to service_connect_attachment_parser
chienhanlin May 24, 2022
45f051f
Add Appnet Client (#3224)
angelcar May 27, 2022
00f50f9
Fix race condition in test (#3231)
yinyic May 27, 2022
c78200e
Set stats sent to true after getting the new SC stats
mythri-garaga May 12, 2022
ec9edaa
Add integration test for engine.go
mythri-garaga May 24, 2022
43a2e9f
Update ENV variables for ServiceConnect
aws-gibbskt May 24, 2022
2ea2721
Consolidate AppNet Agent versioning responsibility
aws-gibbskt May 27, 2022
e26cb17
Add direction to determine MetricType and delete bind mount as part o…
ubhattacharjya Jun 3, 2022
8a0b75a
Moved ServiceConnect config from task to a new package (#3249)
yinyic Jun 15, 2022
418187e
Bug Fix - Check the size of container metrics size when the container…
ubhattacharjya Jun 14, 2022
c807750
Update port bindings to associated pause containers for service conne…
chienhanlin Jun 8, 2022
3aab3b7
Integrate with Service Connect AWSVPC CNI plugin (#3255)
yinyic Jun 25, 2022
9f0eaa4
Make PublishServiceConnectTickerInterval a property of statsEngine in…
ubhattacharjya Jun 29, 2022
b010625
Set UID and proper directory permission for AppNet container (#3279)
yinyic Jul 5, 2022
4c4d081
Bugfix - collect and publish Service Connect metrics even when metric…
mythri-garaga Jun 28, 2022
3fd320c
Add a task attachment handler to manage attachments from ACS
chienhanlin Jun 3, 2022
ab2e365
Add loading of AppNet Agent and capability publishing (#3281)
aws-gibbskt Jul 7, 2022
e3ef771
Integrate with Service Connect bridge-mode CNI plugin (#3265)
yinyic Jul 8, 2022
95ce6e3
Make PubishMetricsTicker part of statsEngine
ubhattacharjya Jul 8, 2022
ca417e4
Skip adding network stats for pause containers of Service Connect ena…
mythri-garaga Jul 12, 2022
a995cd1
Adding support to launch Relay and assign task container images (#3280)
aws-gibbskt Jul 13, 2022
1921df0
Add additional field in return from DiscoverPollEndpoint (#3303)
aws-gibbskt Jul 14, 2022
4ab1644
Add support to retrieve SC endpoint from client (#3305)
aws-gibbskt Jul 14, 2022
6bfab0a
Minor updates for bootstrapping AppNet Relay task/container (#3304)
yinyic Jul 15, 2022
349a1a5
Use consistent package|path for serviceconnect
aws-gibbskt Jul 14, 2022
f83b376
Consolidate Service Connect Loader into Service Connect Manager (#3310)
aws-gibbskt Jul 19, 2022
d4ac745
Consolidate container from filesystem loading (#3312)
aws-gibbskt Jul 20, 2022
b7d7ce5
Consolidate agent/serviceconnect into agent/engine/serviceconnect (#3…
aws-gibbskt Jul 20, 2022
fa77f97
SC attachment fixes; Use network mode from ACS payload (#3295)
yinyic Jul 21, 2022
5ad9fe1
Update port mapping for container event for SC bridge-mode task (#3238)
yinyic Jul 22, 2022
12d7b79
Update the BridgeMode test to be more reliable
aws-gibbskt Jun 22, 2022
7d098a5
Programmatically retrieve service connect endpoint (#3322)
aws-gibbskt Aug 2, 2022
1b36594
Run AppNet Relay as non-root and remove it from introspection respons…
yinyic Aug 5, 2022
6667497
Fix race condition while collecting stats for different tasks concurr…
ubhattacharjya Aug 8, 2022
889962d
Fix memory leak while creating multiple httpClient
ubhattacharjya Aug 15, 2022
e28b00d
Add support for running the healthcheck in Relay
aws-gibbskt Aug 18, 2022
5666a36
Set AppNet UID to 20000; Add ECS_CONTAINER_INSTANCE_ARN Env (#3384)
yinyic Sep 9, 2022
a9fa39d
Fix AppNet Relay health check configuration; fix SC Manager property …
yinyic Sep 14, 2022
17c83bc
Explicitly set ENVOY_ADMIN_MODE for AppNet Relay (#3407)
yinyic Sep 28, 2022
0ae333e
Write AppNet logs to /var/log/ecs/ if no logging driver configured (#…
yinyic Sep 30, 2022
2e05d8f
Add a check for http response code
ubhattacharjya Oct 3, 2022
41e8e6a
Release 1.64.0
ubhattacharjya Oct 4, 2022
393972d
Merge pull request #3418 from ubhattacharjya/v1.64.0-stage
ubhattacharjya Oct 4, 2022
7e051ef
Add wget for ubuntu build and fix ecs-init version
ubhattacharjya Oct 5, 2022
67240c1
Merge pull request #3420 from ubhattacharjya/fixes
ubhattacharjya Oct 5, 2022
b344f11
Update service connect config validator
chienhanlin Oct 10, 2022
fc0b24b
Inject Agent API V1 endpoint path into containers as an environment v…
amogh09 Aug 18, 2022
c2aeff6
Add types for task protection handlers (#3350)
amogh09 Aug 22, 2022
330778c
HTTP handlers for task scale-in protection (#3353)
amogh09 Aug 23, 2022
9c79525
Request schema changes to agent task protection handlers (#3382)
amogh09 Sep 12, 2022
9773e27
Update ECS Client with task protection APIs (#3393)
amogh09 Sep 14, 2022
66c38f8
Endpoint update (#3394)
Realmonia Sep 16, 2022
c62535d
make expiration optional for task protection (#3395)
Realmonia Sep 16, 2022
4676f52
Refactor task protection v1 endpoint file structure to fit with lates…
Realmonia Sep 20, 2022
0d1e273
Add string method to TaskProtection type (#3400)
amogh09 Sep 26, 2022
a4f7a1c
Create ECS client for task protection and Implement UpdateTaskProtect…
Realmonia Sep 26, 2022
dceaba3
Get task protection (#3399)
Realmonia Sep 28, 2022
15db534
Update README and one comment in task server setup (#3416)
Realmonia Oct 4, 2022
0596101
checkout vpc plugin version that got missed in rebase
Realmonia Oct 5, 2022
8eb87a3
fix static check
Realmonia Oct 5, 2022
cc23b4e
Update response format (#3411)
Realmonia Oct 10, 2022
dd2cca4
Fix code comment in appmesh api
Oct 10, 2022
605a6d7
Add a timeout to ecs calls made by task protection handlers (#3431)
amogh09 Oct 13, 2022
add9b0b
refactored the networkutils and windows watcher package
Oct 14, 2022
8680732
changed method for retrieving Windows network statistics
Oct 14, 2022
2485833
fix minor unreachable code caused by t.Fatal
Abirdcfly Aug 31, 2022
125ca13
Fix typo in ReadMe
RasmusBroborg Oct 6, 2022
a4dc74b
Handle AppNet versioning for Service Connect
mythri-garaga Oct 3, 2022
0f00378
Add the CAP_CHOWN capability to support running rootless
Oct 14, 2022
f003b0f
Extend the mounting to include all dependencies
Oct 14, 2022
b2bed73
Update defaultServiceConnectIfName to meet new CNI API spec (#3434)
yinyic Oct 17, 2022
c0c801b
Add file watcher for Appnet agent image update
mythri-garaga Oct 12, 2022
5fb8e80
Release 1.65.0
mythri-garaga Oct 19, 2022
e2af254
Merge pull request #3437 from mythri-garaga/v1.65.0-stage
mythri-garaga Oct 20, 2022
05514f6
workaround git-secrets requiring the say command: https://github.com/…
singholt Oct 21, 2022
32fcc33
pulling gPRC dependencies vendor
saikiranakula-amzn Oct 21, 2022
3327676
Release 1.65.1
fierlion Oct 28, 2022
7b2c24d
Merge pull request #3450 from fierlion/v1.65.1-stage
fierlion Oct 28, 2022
28df5fc
increase waitCWLogs timeout for TestFirelensFluentbit integ test to 6…
singholt Nov 2, 2022
2d9c4b2
Fix some typo and update an entry in readme to match the actual code …
Realmonia Nov 3, 2022
773c4ed
Remove unused log lines
ubhattacharjya Nov 2, 2022
4aa977d
gMSA support on Linux - capability advertisement
saikiranakula-amzn Oct 24, 2022
7ac5c2a
Refactor needed methods to support gMSA linux (#3448)
saikiranakula-amzn Oct 28, 2022
fedc6f1
Agent changes to support gMSA on Linux
saikiranakula-amzn Oct 29, 2022
7c295ce
Refactor credentialspec common fields
saikiranakula-amzn Nov 3, 2022
85e598c
Merge pull request #3464 from saikiranakula-amzn/feature/gmsa-linux-s…
fierlion Nov 4, 2022
1000a55
Restart AppNet Relay on failure
yinyic Nov 4, 2022
097bf88
Merge pull request #3469 from yinyic/appnet-relay-restart
yinyic Nov 7, 2022
fe0ce62
Release 1.66.0
sparrc Nov 8, 2022
cce7134
Merge pull request #3474 from sparrc/v1.66.0-stage
sparrc Nov 8, 2022
64bd0ee
update models and api files with new port range fields
singholt Nov 2, 2022
c74df1f
advertise new capability to support container-port-range
singholt Nov 2, 2022
24141a7
add ContainerPortRange to PortBinding object
singholt Nov 8, 2022
ce2e0a1
add version.go generation script to makefile
fierlion Nov 9, 2022
27149d2
Merge pull request #3476 from fierlion/fierlion/updateAgentVersion
fierlion Nov 10, 2022
d367b12
Remove CAP_CHOWN (#3480)
Realmonia Nov 10, 2022
6347876
Release 1.66.1
Realmonia Nov 10, 2022
f004ace
Merge pull request #3481 from Realmonia/v1.66.1-stage
Realmonia Nov 10, 2022
e8d24d7
Add ecs-serviceconnect to CNI and Agent build scripts (#3482)
yinyic Nov 11, 2022
5614e83
add update-version.sh to dockerfree-agent-image
prateekchaudhry Nov 12, 2022
e1d16fd
Merge pull request #24 from prateekchaudhry/pathFix
prateekchaudhry Nov 12, 2022
59f0487
add update-version.sh to codebuild
prateekchaudhry Nov 12, 2022
b065fc4
Merge pull request #25 from prateekchaudhry/versionFixCodePipeline
prateekchaudhry Nov 12, 2022
7e3ab94
add update-version.sh to codebuild
prateekchaudhry Nov 12, 2022
7dabcd3
Merge branch 'initAgentRelease' into versionFixCodePipeline
prateekchaudhry Nov 12, 2022
06f28da
Merge pull request #26 from prateekchaudhry/versionFixCodePipeline
prateekchaudhry Nov 12, 2022
15a69e4
add update-version.sh to codebuild
prateekchaudhry Nov 12, 2022
371bbdf
Merge branch 'initAgentRelease' into versionFixCodePipeline
prateekchaudhry Nov 12, 2022
c9611e2
Merge pull request #27 from prateekchaudhry/versionFixCodePipeline
prateekchaudhry Nov 12, 2022
6e8c9a5
add update-version.sh to codebuild
prateekchaudhry Nov 12, 2022
06008fa
Release 1.66.2
Realmonia Nov 12, 2022
e1db388
Merge pull request #3483 from Realmonia/v1.66.2-stage
Realmonia Nov 12, 2022
7384085
add helper methods to get ephemeral host ports
singholt Nov 8, 2022
baa9cfb
supply port ranges to docker and add new container fields
singholt Nov 8, 2022
7f8f7b5
generate consolidated network bindings
singholt Nov 8, 2022
aba5150
use ubuntu 20.04 for linux gh workflow
prateekchaudhry Nov 30, 2022
2c1a6bc
update models and api files with new port range fields
singholt Nov 2, 2022
90ec6f6
advertise new capability to support container-port-range
singholt Nov 2, 2022
d2468ed
add ContainerPortRange to PortBinding object
singholt Nov 8, 2022
6892f72
add helper methods to get ephemeral host ports
singholt Nov 8, 2022
35cc410
supply port ranges to docker and add new container fields
singholt Nov 8, 2022
17171a0
generate consolidated network bindings
singholt Nov 8, 2022
2f09aac
Add support note to selinux option
fierlion Nov 29, 2022
847103d
Merge pull request #3503 from singholt/feature/container-port-range-r…
singholt Nov 30, 2022
786d505
change ContainerPort and ContainerPortRange to non-references
singholt Nov 28, 2022
0cf6fd5
use versiongen in agent build
fierlion Nov 29, 2022
6c4f474
Merge pull request #3496 from fierlion/fierlion/updateSelinuxReadme
fierlion Nov 30, 2022
d49ed88
Merge pull request #3497 from fierlion/fierlion/unifyShortHash
fierlion Dec 1, 2022
66ef2bb
fix concurrent host port search
singholt Nov 29, 2022
648f96e
Merge pull request #3494 from singholt/feature/container-port-range
singholt Dec 2, 2022
618408a
update package build readmes with new targets (#3490)
prateekchaudhry Dec 2, 2022
b3b6e49
bugfix: remove check for network mode during network bindings generation
singholt Dec 2, 2022
c6a2d92
check domain join based on the gMSA support env
saikiranakula-amzn Nov 22, 2022
ec636a8
Merge pull request #3506 from aws/feature/container-port-range
singholt Dec 5, 2022
d1fa74b
fix cgroup unit test
prateekchaudhry Nov 28, 2022
a768d2a
Release v1.67.0
YashdalfTheGray Dec 5, 2022
abeeaad
Merge pull request #3507 from YashdalfTheGray/v1.67.0-stage
YashdalfTheGray Dec 6, 2022
9fc6bdb
Read git hash from RELEASE_COMMIT file if possible
danehlim Dec 6, 2022
989593e
Release 1.67.1
danehlim Dec 7, 2022
972152b
Merge pull request #3510 from danehlim/v1.67.1-stage
danehlim Dec 7, 2022
690ba00
Fall back to saved state when checking state db
sparrc Dec 7, 2022
0adf573
SC bugfix: generate network bindings for SC containers
singholt Dec 12, 2022
4cc3613
Merge pull request #3513 from singholt/dev
YashdalfTheGray Dec 13, 2022
2ddc859
Release 1.67.2
ubhattacharjya Dec 13, 2022
fc99baf
Merge pull request #3514 from ubhattacharjya/v1.67.2-stage
ubhattacharjya Dec 13, 2022
172d452
Add ServiceConnect image to clean-up exclusion list
yinyic Dec 15, 2022
f96a061
Add new config option for DynamicHostPortRange
SreeeS Dec 20, 2022
d5232a9
bugfix for PR-3522: handle case when env-ECS_DYNAMIC_HOST_PORT_RANGE …
SreeeS Jan 3, 2023
2dcc42b
Release 1.68.0
fierlion Jan 6, 2023
b714733
Merge pull request #3528 from fierlion/v1.68.0-stage
fierlion Jan 6, 2023
c52c644
ECSCNIGitHash, VPCCNIGitHash update to reflect latest commits on subm…
SreeeS Jan 14, 2023
17daadd
Filter out metricCount=0 and its corresponding metricValue for servic…
Jan 20, 2023
13d1e85
Release 1.68.1
ubhattacharjya Jan 23, 2023
98ce829
Merge pull request #3539 from ubhattacharjya/v1.68.1-stage
ubhattacharjya Jan 23, 2023
491e3c4
Skip sending STSC events for internal tasks
yinyic Jan 24, 2023
b019481
go mod and vendor update (#3534)
sparrc Jan 25, 2023
b2427a4
Revert "go mod and vendor update (#3534)"
sparrc Jan 26, 2023
0376a64
Unify package build recipes and remove legacy init build targets (#3529)
prateekchaudhry Jan 11, 2023
31aa9c0
Remove legacy packaging (#3535)
prateekchaudhry Jan 28, 2023
0736809
Merge branch 'initAgentRelease' into test_cleanBuild
prateekchaudhry Jan 30, 2023
26b9096
Merge pull request #29 from prateekchaudhry/test_cleanBuild
prateekchaudhry Jan 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence, these accounts
# will be requested for review when someone opens a pull request.
* @aws/aws-ecs-agent
3 changes: 3 additions & 0 deletions .github/workflows/gitsecrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: GitSecretsScan

on: [push, pull_request]

permissions: read-all
jobs:
git-secret-check:
name: Git Secrets Scan
Expand All @@ -12,6 +13,8 @@ jobs:
path: src/github.com/aws/amazon-ecs-agent
- name: Git Secrets Scan Script
run: |
# workaround git-secrets requiring the say command: https://github.com/awslabs/git-secrets/pull/221
ln -s "$(which echo)" /usr/local/bin/say
set -ex
cd $GITHUB_WORKSPACE
git clone https://github.com/awslabs/git-secrets.git && cd git-secrets
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Linux

on: [pull_request]

permissions: read-all
jobs:
unit-tests:
name: Linux unit tests
Expand All @@ -11,12 +12,22 @@ jobs:
with:
path: src/github.com/aws/amazon-ecs-agent
- name: get GO_VERSION
id: get-go-version
run: |
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
echo "GO_VERSION=$(cat GO_VERSION)" >> $GITHUB_ENV
set -eou pipefail
go_version=$(cat -e GO_VERSION)
go_version=${go_version%?}
go_version_length=${#go_version}
go_version_re="^([0-9]+\.){1,2}([0-9]+)$"
if ! [[ $go_version_length -le 10 && $go_version =~ $go_version_re ]] ; then
echo "invalid GO version"
exit 1
fi
echo "::set-output name=GO_VERSION::$go_version"
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: ${{ steps.get-go-version.outputs.GO_VERSION }}
- uses: actions/checkout@v2
with:
submodules: true
Expand All @@ -28,3 +39,5 @@ jobs:
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
make test-silent
make analyze-cover-profile
make test-init
make analyze-cover-profile-init
65 changes: 61 additions & 4 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Static Checks

on: [push, pull_request]

permissions: read-all
jobs:
static-check:
name: Static Analysis
Expand All @@ -11,12 +12,22 @@ jobs:
with:
path: src/github.com/aws/amazon-ecs-agent
- name: get GO_VERSION
id: get-go-version
run: |
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
echo "GO_VERSION=$(cat GO_VERSION)" >> $GITHUB_ENV
set -eou pipefail
go_version=$(cat -e GO_VERSION)
go_version=${go_version%?}
go_version_length=${#go_version}
go_version_re="^([0-9]+\.){1,2}([0-9]+)$"
if ! [[ $go_version_length -le 10 && $go_version =~ $go_version_re ]] ; then
echo "invalid GO version"
exit 1
fi
echo "::set-output name=GO_VERSION::$go_version"
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: ${{ steps.get-go-version.outputs.GO_VERSION }}
- uses: actions/checkout@v2
with:
path: src/github.com/aws/amazon-ecs-agent
Expand All @@ -29,6 +40,42 @@ jobs:
make get-deps
make static-check

init-check:
name: Static Analysis Init
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: src/github.com/aws/amazon-ecs-agent
- name: get GO_VERSION
id: get-go-version
run: |
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
set -eou pipefail
go_version=$(cat -e GO_VERSION)
go_version=${go_version%?}
go_version_length=${#go_version}
go_version_re="^([0-9]+\.){1,2}([0-9]+)$"
if ! [[ $go_version_length -le 10 && $go_version =~ $go_version_re ]] ; then
echo "invalid GO version"
exit 1
fi
echo "::set-output name=GO_VERSION::$go_version"
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.get-go-version.outputs.GO_VERSION }}
- uses: actions/checkout@v2
with:
path: src/github.com/aws/amazon-ecs-agent
- name: run static checks
run: |
export GOPATH=$GITHUB_WORKSPACE
export PATH=$PATH:$(go env GOPATH)/bin
export GO111MODULE=auto
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
make get-deps-init
make static-check-init

x-platform-build:
name: Cross platform build
runs-on: ubuntu-latest
Expand All @@ -37,12 +84,22 @@ jobs:
with:
path: src/github.com/aws/amazon-ecs-agent
- name: get GO_VERSION
id: get-go-version
run: |
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
echo "GO_VERSION=$(cat GO_VERSION)" >> $GITHUB_ENV
set -eou pipefail
go_version=$(cat -e GO_VERSION)
go_version=${go_version%?}
go_version_length=${#go_version}
go_version_re="^([0-9]+\.){1,2}([0-9]+)$"
if ! [[ $go_version_length -le 10 && $go_version =~ $go_version_re ]] ; then
echo "invalid GO version"
exit 1
fi
echo "::set-output name=GO_VERSION::$go_version"
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
go-version: ${{ steps.get-go-version.outputs.GO_VERSION }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Windows

on: [pull_request]

permissions: read-all
jobs:
windows-unit-tests:
name: Windows unit tests
Expand All @@ -11,13 +12,21 @@ jobs:
with:
path: src/github.com/aws/amazon-ecs-agent
- name: get GO_VERSION
id: get-go-version
run: |
cd "$Env:GITHUB_WORKSPACE"
cd "src/github.com/aws/amazon-ecs-agent"
echo "GO_VERSION_WINDOWS=$(type GO_VERSION_WINDOWS)" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
$ErrorActionPreference = "Stop"
$go_version_win = $(type GO_VERSION_WINDOWS)
$go_version_re = "^\d+\.{1,2}\d+$"
if (-Not ($go_version_win.Length -le 10 -or $go_version_win -match $go_version_re) ) {
echo "invalid GO version"
exit 1
}
Write-Output "::set-output name=GO_VERSION_WINDOWS::$go_version_win"
- uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION_WINDOWS }}
go-version: ${{ steps.get-go-version.outputs.GO_VERSION_WINDOWS }}
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ _bin/
*.swp
*.orig
/agent/version/_version.go
/ecs-init/version/version.go
.agignore
*.sublime-*
.DS_Store
Expand All @@ -20,3 +21,23 @@ _bin/
*.iml
cover.out
coverprofile.out
/amazon-ecs-init*
/BUILDROOT/
/x86_64/
/sources.tar
/ecs-init-*
/ecs.conf
/.deb-done
/.rpm-done
/.srpm-done
/BUILD
/RPMS
/SOURCES
/SRPMS
/ecs-init.spec
/sources.tgz
ecs-agent-*.tar
/ecs.service
*.log
*.DS_Store
.run/
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

109 changes: 109 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,113 @@
# Changelog
## 1.68.1
* Bug - Update ECS CNI and VPC plugins to fix instances with IMDSv1 disabled [#3531](https://github.com/aws/amazon-ecs-agent/pull/3531)
* Bug - Filter out metricCount=0 and its corresponding metricValue for service connect metric TargetResponseTime [#3537](https://github.com/aws/amazon-ecs-agent/pull/3537)

## 1.68.0
* Bug - Add ServiceConnect image to clean-up exclusion list [#3521](https://github.com/aws/amazon-ecs-agent/pull/3521)
* Enhancement: added new agent configuration to specify ephemeral host port range [#3522](https://github.com/aws/amazon-ecs-agent/pull/3522)

## 1.67.2
* Bug - Fix the generation of network bindings for Service Connect container [#3513](https://github.com/aws/amazon-ecs-agent/pull/3513)
* Bug - Prevent resetting valid agent state db when IMDS fails on startup [#3509](https://github.com/aws/amazon-ecs-agent/pull/3509)

## 1.67.1
* Bug - Read git hash from RELEASE_COMMIT file if possible [#3508](https://github.com/aws/amazon-ecs-agent/pull/3508)

## 1.67.0
* Bug - Don't log errors on instances not using GMSA [#3489](https://github.com/aws/amazon-ecs-agent/pull/3489)
* Enhancement - Update packaging Readme files with updated instructions to build init files [#3490](https://github.com/aws/amazon-ecs-agent/pull/3490)
* Bug - Fix unit tests for cgroup v2 [#3491](https://github.com/aws/amazon-ecs-agent/pull/3491)
* Enhancement - Update readme for ECS_SELINUX_CAPABLE to clarify Z-mode mount only and limited support [#3496](https://github.com/aws/amazon-ecs-agent/pull/3496)
* Bug - Fix agent short hash version bug [#3497](https://github.com/aws/amazon-ecs-agent/pull/3497)
* Bug - Use Ubuntu 20.04 for linux GH Unit tests [#3501](https://github.com/aws/amazon-ecs-agent/pull/3501)
* Feature - Container port range mapping [#3506](https://github.com/aws/amazon-ecs-agent/pull/3506)

## 1.66.2
* Bug - Add ecs-serviceconnect to CNI and Agent build scripts [#3482](https://github.com/aws/amazon-ecs-agent/pull/3482)
* Bug - add call to update-version.sh to dockerfree-agent-image [#3484](https://github.com/aws/amazon-ecs-agent/pull/3484)

## 1.66.1
* Bug - Update ecs agent version short hash to point to built head [#3476](https://github.com/aws/amazon-ecs-agent/pull/3476)
* Bug - Remove CAP_CHOWN [#3480](https://github.com/aws/amazon-ecs-agent/pull/3480)

## 1.66.0
* Feature - gMSA on Linux support [#3464](https://github.com/aws/amazon-ecs-agent/pull/3464)
* Enhancement - Restart AppNet Relay on failure [#3469](Restart AppNet Relay on failure)

## 1.65.1
* Enhancement - Add grpc vendor dependencies [#3439](https://github.com/aws/amazon-ecs-agent/pull/3439)
* Bug - Workaround git-secrets scan issue: awslabs/git-secrets#221 [#3442](https://github.com/aws/amazon-ecs-agent/pull/3442)

## 1.65.0
* Feature - ECS Agent changes to support task scale in protection feature. ECS Agent API Endpoint is also introduced with this feature. This feature allows a user to update and get task protection state of a task from a task container by calling ECS Agent API Endpoint, which protects the task from being terminated in a scale-in event [#3427](https://github.com/aws/amazon-ecs-agent/pull/3427) Github feature request - [#125](https://github.com/aws/containers-roadmap/issues/125)
* Enhancement - Update service connect config validator to validate fields with a global standard, or consumed and proceeded by ECS Agent for service connect [#3424](https://github.com/aws/amazon-ecs-agent/pull/3424)
* Enhancement - ServiceConnect AppNet version handling; init bootstrap; CNI interface name update for service connect [#3436](https://github.com/aws/amazon-ecs-agent/pull/3436)
* Enhancement - Add file watcher for Appnet agent image update for service connect [#3435](https://github.com/aws/amazon-ecs-agent/pull/3435)
* Enhancement - Change method for retrieving Windows network statistics in case of awsvpc network mode for Windows [#3425](https://github.com/aws/amazon-ecs-agent/pull/3425)
* Bug - Fix minor unreachable code caused by t.Fatal [#3372](https://github.com/aws/amazon-ecs-agent/pull/3372)

## 1.64.0
* Feature - Add service connect feature. This feature enables ECS Service to be discoverable and ECS will leverage the container port mappings, service name and default application namespace associated with the cluster and the service to register your service for discovery and to enable discovery of dependencies through DNS lookup [#3414](https://github.com/aws/amazon-ecs-agent/pull/3414)
* Bugfix: Bump Go to 1.19.1 for CVE-2022-27664 [#3398](https://github.com/aws/amazon-ecs-agent/pull/3398)

## 1.63.1
* Feature - Add VPC ID to TMDE v4 Task Responses. [#3288](https://github.com/aws/amazon-ecs-agent/pull/3288) [#3385](https://github.com/aws/amazon-ecs-agent/pull/3385)
* Feature - Add ServiceName to TMDE v4 Task Responses. [#3362](https://github.com/aws/amazon-ecs-agent/pull/3362)
* Enhancement - Add codeowners file and update token permission to read only for workflow. [#3374](https://github.com/aws/amazon-ecs-agent/pull/3374)
* Enhancement - Dependabot ecs-init fixes. [#3388](https://github.com/aws/amazon-ecs-agent/pull/3388)

## 1.63.0
* Feature - Add configurable default profile ECS_ALTERNATE_CREDENTIAL_PROFILE. [#3365](https://github.com/aws/amazon-ecs-agent/pull/3365)
* Enhancement - Update ECS_RESERVED_MEMORY description in README. [#3363](https://github.com/aws/amazon-ecs-agent/pull/3363)
* Enhancement - Update dependencies to include security patches reported by dependabot for agent [#3367](https://github.com/aws/amazon-ecs-agent/pull/3367)
* Enhancement - Update dependencies to include security patches reported by dependabot for ecs-init. [#3277](https://github.com/aws/amazon-ecs-agent/pull/3277)
* Enhancement - Reduce the flakiness of TestExecCommandAgent. [#3355](https://github.com/aws/amazon-ecs-agent/pull/3355)
* Bug - Add appmesh path to agent container image config. [#3378](https://github.com/aws/amazon-ecs-agent/pull/3378)
* Bug - Fix cgroupv2 mem usage calculation to match docker cli. [#3370](https://github.com/aws/amazon-ecs-agent/pull/3370)
* Bug - Fix json syntax in release-config. [#3359](https://github.com/aws/amazon-ecs-agent/pull/3359)
* Bug - Update validation script with more comprehensive set of files. [#3358](https://github.com/aws/amazon-ecs-agent/pull/3358)
* Bug - Update changelog generation to add missing spec file. [#3356](https://github.com/aws/amazon-ecs-agent/pull/3356)
* Bug - Fix format string for ecs-init. [#3282](https://github.com/aws/amazon-ecs-agent/pull/3282)

## 1.62.2
* Enhancement - Load ServiceName from ACS Task Payload. [#3342](https://github.com/aws/amazon-ecs-agent/pull/3342)
* Bug - Update healthcheck and ports in dockerfree build. [#3343](https://github.com/aws/amazon-ecs-agent/pull/3343)

## 1.62.1
* Bug - Fix an issue with cgroup mount [#3324](https://github.com/aws/amazon-ecs-agent/pull/3324)
* Enhancement - Build changes - Add GitShortSha to config, Add md5, json file creation [#3327](https://github.com/aws/amazon-ecs-agent/pull/3327)

## 1.62.0
* Enhancement - Update golang version to 1.18.3 [#3301](https://github.com/aws/amazon-ecs-agent/pull/3301)
* Enhancement - Update windows golang version to 1.18.3 [#3317](https://github.com/aws/amazon-ecs-agent/pull/3317)
* Bugfix - amazon-ecs-cni-plugins: Always run DeleteVeth on cleanup, fixes veth "exchange full" errors [#3311](https://github.com/aws/amazon-ecs-agent/pull/3311)

## 1.61.3
* Enhancement - Add command and error logging for FSx file mapping when calling out to PowerShell [#3240](https://github.com/aws/amazon-ecs-agent/pull/3240)
* Enhancement - Update README.md with missing environment variables [#3244](https://github.com/aws/amazon-ecs-agent/pull/3244)

## 1.61.2
* Enhancement - Integrate new/updated build targets and processes [#3234](https://github.com/aws/amazon-ecs-agent/pull/3234)
* Enhancement - Trimming task reason to a max of 1024 characters as per Back-end model [#3229](https://github.com/aws/amazon-ecs-agent/pull/3229)
* Enhancement - Add log message when receiving error during cached image inspection [#3216](https://github.com/aws/amazon-ecs-agent/pull/3216)
* Bug - Fix an issue where a task can be stuck in PENDING for ever when container dependencies can never be fulfilled [#3218](https://github.com/aws/amazon-ecs-agent/pull/3218)

## 1.61.1
* Enhancement - Remove hard-coded task CPU limit and advertise a new capability ecs.capability.increased-task-cpu-limit [#3197](https://github.com/aws/amazon-ecs-agent/pull/3197)
* Enhancement - Simplify api/task code [#3176](https://github.com/aws/amazon-ecs-agent/pull/3176)
* Enhancement - Remove unused .travis.yml file [#3171](https://github.com/aws/amazon-ecs-agent/pull/3171)
* Bug - Fix potential goroutine leaks [#3170](https://github.com/aws/amazon-ecs-agent/pull/3170)
* Bug - Fix credential rotation issue with ECS-A Windows [#3184](https://github.com/aws/amazon-ecs-agent/pull/3184)
* Bug - Fix Windows base image versions for integration tests [#3179](https://github.com/aws/amazon-ecs-agent/pull/3179)

## 1.61.0
* Enhancement - Support for unified cgroups and the systemd cgroup driver [#3127](https://github.com/aws/amazon-ecs-agent/pull/3127)
* Enhancement - Apply minimumCPUShare to both task and container CPU shares [#3156](https://github.com/aws/amazon-ecs-agent/pull/3156)

## 1.60.1
* Enhancement - Add dockerfree init build targets [#3149](https://github.com/aws/amazon-ecs-agent/pull/3149)
* Enhancement - Merge ecs-init repo [#3141](https://github.com/aws/amazon-ecs-agent/pull/3141)

## 1.60.0
* Enhancement - Update cgroups library to the latest release [#3126](https://github.com/aws/amazon-ecs-agent/pull/3126)
Expand Down
2 changes: 1 addition & 1 deletion GO_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.19.1
2 changes: 1 addition & 1 deletion GO_VERSION_WINDOWS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.5
1.19.1
Loading