Skip to content

Conversation

@paulgb
Copy link
Member

@paulgb paulgb commented Apr 4, 2025

We currently use the default permission, but since it contains a credential, we should make it user-only.

Suggested on discord: https://discord.com/channels/939641163265232947/1333815974985732250/1357233329375809537

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

{
use std::os::unix::fs::PermissionsExt;
let metadata = std::fs::metadata(&self.config_path)?;
let mut permissions = metadata.permissions();
Copy link
Contributor

Choose a reason for hiding this comment

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

Add error context to fs::metadata and set_permissions calls for improved debugging.

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
@paulgb paulgb merged commit 106ec60 into main Apr 4, 2025
1 check passed
@paulgb paulgb deleted the paulgb/set-permissions-on-config-file branch April 4, 2025 14:40
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