Settings

Overview

The Settings page allows administrators to configure system-wide options including data retention, performance parameters, and logging levels.

Navigation

Menu: System > Settings

Page Layout

A single card with centered content (max-width 800px) containing:

ControlLocationDescription
ReloadCard headerReload settings from server
Save AllCard headerSave all modified settings
FormCard bodySettings form with sections

The Save All button is disabled until changes are made.

Configuration Sections

Data Retention

Controls how long data is kept in the system.

SettingFieldRangeDescription
Retention Daysretention_days7-365Days to keep soft-deleted records
Audit Retention Daysaudit_retention_days7-365Days to keep audit logs

Retention Days: When records are deleted, they are soft-deleted first. After this many days, they are permanently purged from the database.

Audit Retention Days: Audit log entries older than this period can be cleaned up using the Cleanup button on the Audit Logs page.

Performance

Controls system performance and resource usage.

SettingFieldRangeDescription
Rate Limit (req/sec)rate_limit_per_second10-1000Maximum API requests per second per client
Worker Concurrencyworker_concurrency1-50Number of parallel jobs the worker processes
Auto-refresh Intervalauto_refresh_interval5-60Seconds between UI auto-refresh

Rate Limit: Protects the API from overload. Clients exceeding this limit receive HTTP 429 (Too Many Requests) errors. Higher values allow more throughput but may strain server resources.

Worker Concurrency: Higher values process more jobs simultaneously but use more CPU and memory. Set based on server capacity and typical workload.

Auto-refresh Interval: How often the UI automatically updates when viewing active scans or jobs. Lower values provide more real-time updates but increase API load.

Logging

Controls application logging behavior.

SettingFieldRangeDescription
Log Levellog_levelSelectApplication logging verbosity
Max Upload Size (MB)max_upload_size_mb1-100Maximum file size for uploads

Log Level Options:

LevelDescriptionUse Case
debugVerbose output including detailed diagnosticsTroubleshooting
infoNormal operational messagesProduction
warnWarning conditions that may need attentionReduced noise
errorError conditions onlyMinimal logging

Max Upload Size: Limits the size of uploaded files such as SSH private keys.

Known Issues

The Known Issues section allows you to exclude specific CIS rules from compliance score calculation and remediation scripts.

Why Use Known Issues

  • False positives: Rules that always fail due to environment specifics
  • Non-applicable rules: Rules not relevant to your infrastructure
  • Accepted risks: Rules intentionally not implemented for business reasons
  • Temporary exclusions: Rules requiring remediation later

Known Issues Table

ColumnDescription
Rule IDCIS rule identifier pattern (supports * for wildcard)
DescriptionReason for adding to the list
EnabledToggle to activate/deactivate
ActionsDelete button

Adding a Known Issue

  1. Click Add Known Issue
  2. Fill in the fields:
    • Rule ID: Exact ID or pattern with wildcard (e.g., xccdf_org.ssgproject.*audit*)
    • Description: Explanation of why the rule is excluded
  3. Click Add

Wildcard Patterns

The * character is supported for partial ID matching:

PatternMatches
xccdf_org.ssgproject.content_rule_audit_*All audit rules
*_partition_*All partition rules
xccdf_org.ssgproject.content_rule_file_*All file rules

System Impact

When a rule is in the known issues list:

  1. Adjusted Score: Compliance score is recalculated without excluded rules
  2. Remediation Scripts: Excluded rules are not included in generated Ansible playbooks
  3. Display: The remediation jobs table shows:
    • Rules to fix: X (actual count)
    • Excluded (Known Issues): Y

Example Usage

If audit rules systematically fail due to your environment:

  1. Add pattern *audit* with description “Audit rules not applicable in containerized environment”
  2. Enable the toggle
  3. Compliance score will be adjusted
  4. Remediation scripts will not include audit rules

Saving Settings

Settings are modified locally until explicitly saved:

  1. Modify desired settings using the form controls
  2. The Save All button becomes enabled
  3. Click Save All button
  4. Each setting is saved to the server
  5. Success message shows count of saved settings
  6. Settings take effect immediately (some may require service restart)

Reloading Settings

Click Reload button to:

  • Discard any unsaved changes
  • Fetch current values from server
  • Reset the form to server state

Theme and Language

Theme Toggle

The theme toggle is available in the main navigation:

  1. Click the theme icon in the navigation bar
  2. Switch between light and dark mode
  3. Preference is saved in browser local storage
  4. Persists across sessions

Language Selector

  1. Click the language dropdown (EN/RU) in the navigation bar
  2. Select preferred language
  3. Interface updates immediately
  4. Preference is saved in local storage

Best Practices

Data Retention

  • Set retention based on compliance requirements (PCI-DSS, HIPAA, GDPR)
  • Longer retention uses more database storage
  • Consider legal/regulatory requirements for your industry
  • Audit retention typically should be longer (90+ days)

Performance Tuning

WorkloadRate LimitWorker Concurrency
Light (<100 hosts)1003-5
Medium (100-500 hosts)2005-10
Heavy (>500 hosts)500+10-20

Recommendations:

  • Increase worker concurrency for faster job processing
  • Decrease if system shows high CPU/memory usage
  • Monitor queue depth on Jobs page
  • Balance throughput vs resource usage

Logging

  • Use debug only for troubleshooting specific issues
  • Use info for normal production operations
  • Use warn or error to reduce log volume
  • Ensure log rotation is configured at OS level

Regular Review

  • Review settings quarterly or after infrastructure changes
  • Adjust based on observed usage patterns
  • Monitor system performance metrics
  • Update retention before compliance audits

Troubleshooting

Settings Not Saving

  1. Check network connection (browser dev tools)
  2. Verify user has admin permissions
  3. Check browser console for JavaScript errors
  4. Try refreshing the page
  5. Verify API server is accessible

Rate Limit Issues

If users are being rate limited (HTTP 429 errors):

  1. Check current rate limit setting
  2. Increase rate limit temporarily
  3. Review client behavior for excessive requests
  4. Check for automated scripts or misconfigured tools
  5. Consider implementing client-side request throttling

Worker Performance

If jobs are slow or backing up:

  1. Check current worker concurrency setting
  2. Increase concurrency if server has capacity
  3. Check server resources (CPU, RAM) for bottlenecks
  4. Review job queue depth on Jobs page
  5. Check for failed jobs that may need investigation
  6. Verify network connectivity to managed hosts

Logging Issues

If logs are too verbose or consuming disk space:

  1. Set log level to warn or error
  2. Verify log rotation is configured (logrotate)
  3. Monitor disk space
  4. Consider centralized logging (syslog, Loki)
  5. Archive old logs before deletion

API Reference

Settings can also be managed via API:

Get all settings:

GET /api/v1/settings

Update a setting:

PUT /api/v1/settings/{key}
Content-Type: application/json
{"value": "new_value"}

Known Issues:

GET /api/v1/known-issues
POST /api/v1/known-issues
DELETE /api/v1/known-issues/{id}
POST /api/v1/known-issues/{id}/toggle

Related Pages