crashappsec / crashappsec/chalk

Raise an error if two plugins try to set the same key with different values

Open
#113 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Nim
Stars
436
Forks
25
PR merge metrics
No merged PRs in 30d

Description

## Description

As more plugins are added to chalk, it is likely that they might be attempting to set the same value / key used by another plugin. For instance, the `cloudMetadata` plugin sets `_OP_CLOUD_PROVIDER_SERVICE_TYPE`, however the `ecsMetadata` plugin might choose to do so as well. These plugins might try to set the same value or might set different values, and worse they might choose to re-use a key that is used by another plugin in a completely different way. We can expose a common utility to set values that warns if plugins set different values for a given key, and potentially require plugins to register what keys they set, so that we can surface this information in documentation, as well as detect possible conflicts.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating how plugins set shared keys and review the existing plugin architecture; done should include a common setting path that detects conflicting values and surfaces the conflict as an error or warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
nim
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.