Skip to content

Tighten CodeDeploy config file permissions#10205

Merged
AndrewAsseily merged 1 commit intoaws:v2from
aahallal:fix-codedeploy-config-file-permissions
Apr 10, 2026
Merged

Tighten CodeDeploy config file permissions#10205
AndrewAsseily merged 1 commit intoaws:v2from
aahallal:fix-codedeploy-config-file-permissions

Conversation

@aahallal
Copy link
Copy Markdown
Contributor

@aahallal aahallal commented Apr 9, 2026

Changed the CodeDeploy on-premises instance configuration file creation to use os.open() with explicit permissions (0o600) instead of the default open() function. This ensures the configuration file is created with owner-only read/write permissions, improving security by preventing other users on the system from accessing potentially sensitive configuration data.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Copy Markdown
Contributor

@AndrewAsseily AndrewAsseily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🏆

@AndrewAsseily AndrewAsseily changed the title Change CodeDeploy config file permissions to owner only Tighten CodeDeploy config file permissions Apr 10, 2026
@AndrewAsseily AndrewAsseily merged commit e3180a7 into aws:v2 Apr 10, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants