Skip to content

Conversation

@mawi-officiel
Copy link
Member

CIN CLI v3.0.2 - Security and Protection Improvements πŸ”’

πŸ›‘οΈ New Security Features

Protect Sensitive Commands with Sudo Privileges

  • Commands Now Protected:
  • delete framework - Delete CIN Framework
  • delete library - Delete libraries
  • rep [pagename] - Delete pages

How to Use

# Enable Administration Mode First
cin-cli> sudo enable

# Now Execute Sensitive Commands
cin-cli> delete framework
cin-cli> rep mypage

πŸ”§ Technical Improvements

  • Added requireSudoPermission() function to check permissions
  • Clear error messages when there are insufficient permissions
  • System-wide protection against unintended destructive operations

πŸ“‹ Security Requirements

  • Administration mode (sudo enable) must be enabled before performing any delete operation
  • Protection applies to all operations Deletion and Removal
  • Clear User Warning Messages

🎯 Purpose of the Update

This update meets contributor requests to improve security and prevent unintended destructive actions, providing an additional layer of protection for users.


# CIN CLI v3.0.2 - Security and Protection Improvements πŸ”’

## πŸ›‘οΈ New Security Features

### Protect Sensitive Commands with Sudo Privileges
- **Commands Now Protected:**
- `delete framework` - Delete CIN Framework
- `delete library` - Delete libraries
- `rep [pagename]` - Delete pages

### How to Use
```bash
# Enable Administration Mode First
cin-cli> sudo enable

# Now Execute Sensitive Commands
cin-cli> delete framework
cin-cli> rep mypage
```

## πŸ”§ Technical Improvements
- Added `requireSudoPermission()` function to check permissions
- Clear error messages when there are insufficient permissions
- System-wide protection against unintended destructive operations

## πŸ“‹ Security Requirements
- Administration mode (`sudo enable`) must be enabled before performing any delete operation
- Protection applies to all operations Deletion and Removal
- Clear User Warning Messages

## 🎯 Purpose of the Update
This update meets contributor requests to improve security and prevent unintended destructive actions, providing an additional layer of protection for users.

---
@mawi-officiel mawi-officiel requested a review from a team August 31, 2025 22:26
@mawi-officiel mawi-officiel self-assigned this Aug 31, 2025
@mawi-officiel mawi-officiel added the enhancement New feature or request label Aug 31, 2025
@mawi-officiel mawi-officiel merged commit 331dbb8 into main Aug 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant