-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create new deploy test user for T12486 #3897
Open
Reception123
wants to merge
9
commits into
master
Choose a base branch
from
Reception123-patch-3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9642611
create new deploy test user for T12486
Reception123 bad649d
Update test151.yaml
Reception123 7cd7c3d
Update data.yaml
Reception123 73edcfd
Update data.yaml
Reception123 d1948b7
Update data.yaml
Reception123 6b08e54
Update data.yaml
Reception123 2ac3e02
nano is dangerous
Reception123 119e38e
Update data.yaml
Reception123 e45a214
Update data.yaml
Reception123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,14 @@ groups: | |
'ALL = (ALL) NOPASSWD: /usr/sbin/service mariadb status', | ||
'ALL = (ALL) NOPASSWD: /usr/bin/puppet *', | ||
'ALL = (ALL) NOPASSWD: /bin/journalctl *'] | ||
|
||
mediawiki-test-deploy-users: | ||
gid: 2009 | ||
description: ability to deploy changes on the MediaWiki test server | ||
members: [] | ||
privileges: ['ALL = (ALL) NOPASSWD: /usr/sbin/service mwdeploy *', | ||
'ALL = (ALL) NOPASSWD: /usr/bin/rsync *', | ||
'ALL = (www-data) NOPASSWD: /bin/sudoedit /srv/mediawiki-staging/*', | ||
'ALL = (www-data) NOPASSWD: /bin/rm /srv/mediawiki-staging/*'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. > sudo grep nobody /etc/sudoers
nobody ALL = (root) NOPASSWD: /bin/rm /tmp/poc/mediawiki-staging/*
> tree /tmp/poc
/tmp/poc
├── mediawiki
│ └── LocalSettings.php
├── mediawiki-staging
│ └── LocalSettings.php
└── something-important
3 directories, 3 files
> sudo -Hu nobody sh
sh-5.2$ sudo rm /tmp/poc/mediawiki/LocalSettings.php
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
For security reasons, the password you type will not be visible.
[sudo] password for nobody:
sudo: no password was provided
sudo: a password is required
sh-5.2$ sudo rm /tmp/poc/mediawiki-staging/../mediawiki/LocalSettings.php
sh-5.2$ ls /tmp/poc/mediawiki
sh-5.2$ |
||
users: | ||
johnflewis: | ||
ensure: absent | ||
|
@@ -194,3 +201,11 @@ users: | |
name: evalprime | ||
realname: EvalPrime | ||
ssh_keys: [ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII58/9ujLHNt1p1YOlHJr7Y2D7laEkYzQSOKcAhF8r1Q] | ||
testuser: | ||
ensure: present | ||
uid: 3000 | ||
name: Test User | ||
realname: Test User (user for testing access) | ||
ssh_keys: | ||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIApGU+6cUDu6gLhJY547Ge/2r4FU382qFx6wVGHN/+FP | ||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMGnrVrhB1ZfXRouXhLzjsWjx3dTVYxxvsIzTD2JJg/ reception |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can escalate to root with this: