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

The API should have an endpoint to list actual settings. #4

Open
Tracked by #6
guibranco opened this issue Sep 13, 2024 · 2 comments
Open
Tracked by #6

The API should have an endpoint to list actual settings. #4

guibranco opened this issue Sep 13, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Participation in the Hacktoberfest event help wanted Extra attention is needed 👷🏼 infrastructure Infrastructure-related tasks or issues 🕓 medium effort A task that can be completed in a few hours 🧪 tests Tasks related to testing

Comments

@guibranco
Copy link
Owner

guibranco commented Sep 13, 2024

Description

The API should provide an endpoint that allows users to retrieve a list of the current or "actual" settings that are actively being applied. This endpoint will offer an overview of the system’s current configuration, providing key settings and their respective values.

Rationale

  1. Configuration Visibility: Access to actual settings allows users and administrators to see the currently applied configurations in real-time, helping with diagnostics and system monitoring.
  2. Consistency: Ensures users and applications can programmatically fetch the exact settings being used, eliminating confusion about potential differences between stored and applied settings.
  3. Auditing and Monitoring: This feature enables automation in auditing settings, ensuring compliance with organizational policies.
  4. Troubleshooting: Having an endpoint that exposes active settings helps identify misconfigurations or unintended changes.

Expected Behavior

  1. A new endpoint, such as /actual-settings, returns a JSON object of all currently applied settings.
  2. The response should include:
    • Setting name
    • Value
    • Category or section (if applicable)
    • Timestamp of the last update (optional)

API Example

GET /actual-settings

Sample Response

{
  "settings": [
    {
      "name": "owner",
      "value": "guibranco",
      "category": "github",
      "last_updated": "2024-09-12T14:25:00Z"
    },
    {
      "name": "botname",
      "value": "gstraccini",
      "category": "system",
      "last_updated": "2024-09-10T09:15:00Z"
    }
  ]
}

Additional Notes

  • Consider adding filters to the endpoint to narrow down settings by category or specific criteria (e.g., only show network-related settings).
  • Implement pagination support for large configurations.
  • Ensure the endpoint can handle dynamic configurations, reflecting any changes made without requiring a system restart.
  • It would be useful to include metadata such as when the setting was last updated or changed.
Copy link

gitauto-ai bot commented Sep 13, 2024

Hello @guibranco, you have reached your request limit of 5, your cycle will refresh on 2024-09-21 10:07:38+00:00.
Consider subscribing if you want more requests.
If you have any questions or concerns, please contact us at info@gitauto.ai.

@guibranco guibranco added enhancement New feature or request 👷🏼 infrastructure Infrastructure-related tasks or issues 🧪 tests Tasks related to testing 🕓 medium effort A task that can be completed in a few hours labels Sep 13, 2024
@guibranco guibranco added help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest Participation in the Hacktoberfest event labels Oct 9, 2024
@guibranco guibranco transferred this issue from guibranco/gstraccini-bot-service Oct 9, 2024
Copy link

gitauto-ai bot commented Oct 9, 2024

Hello @guibranco, you have reached your request limit of 5, your cycle will refresh on 2024-10-21 10:07:38+00:00.
Consider subscribing if you want more requests.
If you have any questions or concerns, please contact us at info@gitauto.ai.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Participation in the Hacktoberfest event help wanted Extra attention is needed 👷🏼 infrastructure Infrastructure-related tasks or issues 🕓 medium effort A task that can be completed in a few hours 🧪 tests Tasks related to testing
Projects
None yet
Development

No branches or pull requests

1 participant