Skip to content
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

fix: set up the sdssh group before using it in ACLs #7426

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

cfm
Copy link
Member

@cfm cfm commented Jan 24, 2025

Status

Ready for review

Description of Changes

Fixes #7425—I believe as non-invasively as possible.

Testing

I've successfully installed a Monitor Server from scratch with this change, following #7417. In addition, please consider:

  • Are there reasons we shouldn't move the create_users task from the later common playbook to the earlier restrict-direct-access playbook?
  • Staging CI passes.

Deployment

Assuming that the above checks out, this change should have no deployment considerations: it changes the sequence of provisioning, not the final provisioned state.

Specifically, enroll the SecureDrop SSH user in the "sdssh" group before
setting sshd's "AllowGroups" directive.
@cfm cfm requested a review from a team as a code owner January 24, 2025 01:10
@legoktm legoktm self-assigned this Jan 24, 2025
Copy link
Member

@legoktm legoktm left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good. The noble staging failure is unrelated: test_unattended_upgrades_functional

I looked for other uses of the the SSH user since we're creating it at a different stage and the only use was in the reset-ssh-key playbook, which is an entirely separate thing.

@legoktm legoktm added this pull request to the merge queue Jan 24, 2025
Merged via the queue into develop with commit 2b0454c Jan 24, 2025
45 of 46 checks passed
@legoktm legoktm deleted the stg-7425-sdssh-dependency branch February 3, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

servers can become inaccessible if SSH login is restricted to the sdssh group before it's applied to any users
2 participants