Skip to content

DLPX-93763 GCP cloud-init may allow privileged user creation#108

Closed
david-mendez1 wants to merge 2 commits intodevelopfrom
dlpx/pr/david-mendez1/724e0754-e0bb-493d-8912-971a42d9d13a
Closed

DLPX-93763 GCP cloud-init may allow privileged user creation#108
david-mendez1 wants to merge 2 commits intodevelopfrom
dlpx/pr/david-mendez1/724e0754-e0bb-493d-8912-971a42d9d13a

Conversation

@david-mendez1
Copy link

@david-mendez1 david-mendez1 commented Mar 27, 2025

Background

Recently, a customer provided examples of privileged shell access with a custom user created on a GCP deployment. This seemed to indicate that an arbitrary user was created, possibly during VM creation.

In further review and discussion with others in #dlpx-gcp Slack room, it appears that user-metadata can be leveraged to ‘insert’ operations via cloud-init and thereby create additional users on the Delphix VM.

Problem

Originally Delphix removed the module `users-groups` from cloud.cfg.tmpl to avoid this issue of being able to create a user. 2 yrs ago, upstream changed the format of the cloud init modules to use underscores rather than hyphens. During a merge conflict, we inadvertently merged the unwanted `users_groups` back into cloud.init.

canonical/cloud-init#4272

Solution

Remove users_groups from cloud.cfg.tmpl

Testing Done

https://selfservice-jenkins.eng-tools-prd.aws.delphixcloud.com/job/appliance-build-orchestrator-pre-push/10685/
Note: upgrade failed due to know bug https://perforce.atlassian.net/browse/DLPX-93809

@david-mendez1 david-mendez1 force-pushed the dlpx/pr/david-mendez1/724e0754-e0bb-493d-8912-971a42d9d13a branch from 29132aa to 8866b7c Compare March 27, 2025 00:38
@david-mendez1 david-mendez1 marked this pull request as ready for review March 27, 2025 00:55
Copy link
Contributor

@jwk404 jwk404 left a comment

Choose a reason for hiding this comment

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

LGTM, pending a good test run.

mend-for-github-com bot and others added 2 commits May 29, 2025 12:36
* Add .whitesource configuration file

* DLPX-93075 Configure Mend for cloud-init

---------

Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com>
Co-authored-by: Shibasish Nandi <119420781+ShibasishDelphix@users.noreply.github.com>
@david-mendez1 david-mendez1 force-pushed the dlpx/pr/david-mendez1/724e0754-e0bb-493d-8912-971a42d9d13a branch from 8866b7c to 9dd1b8f Compare May 29, 2025 19:37
@david-mendez1
Copy link
Author

Fix not needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants