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

chore(prometheus): unsafe deserialisation #300

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

Tingweiftw
Copy link

Story

https://www.notion.so/aipf-locus/Unsafe-Deserialization-1134e47c1d87808792d1eaaff7471966?pvs=4

What Changed

@pytest.fixture()
def AnsibleDefaults():
with open("defaults/main.yml", 'r') as stream:
return yaml.safe_load(stream)
Copy link
Author

Choose a reason for hiding this comment

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

this is the actual change, the rest are just files been added to the repository

Copy link
Author

Choose a reason for hiding this comment

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

outdated, we are removing this submodule since we do not use this submodule for our prometheus setup in l-cloud-gcc

@Tingweiftw Tingweiftw changed the title chore(prometheus): chore(prometheus): unsafe deserialisation Nov 7, 2024
@Tingweiftw Tingweiftw requested a review from a team November 7, 2024 10:19
Copy link
Contributor

@abby-ng abby-ng left a comment

Choose a reason for hiding this comment

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

did a quick check. l-cloud-gcc doesn’t use the prometheus module from terraform-modules which uses the roles/prometheus submodule. It is ok to remove but I would suggest to remove the whole terraform-modules/modules/prometheus including the roles/prometheus submodule instead of just the role submodule alone. This is because terraform-modules is a public repo, removing the role submodule alone will make the whole prometheus module incomplete & unusable. We are unsure if anyone using it & it is not obvious if it encounters errors due to this missing role submodule 🙏

@github-actions github-actions bot added size/XXL and removed size/XS labels Nov 11, 2024
@Tingweiftw Tingweiftw requested a review from abby-ng November 11, 2024 02:52
Copy link
Contributor

@abby-ng abby-ng left a comment

Choose a reason for hiding this comment

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

Looks good! Please remove all the references to prometheus (just some remaining mainly in grafana, telegraf & traefik modules) 🙏

@Tingweiftw
Copy link
Author

For the remaining reference, there is no need to remove as they are independent from the prometheus module (can see that no outputs from prometheus module is reference in the other modules) the remaining reference are variables for users to link up their prometheus client based on the address / port / nomad consul names which are not reliant on the module, so I would rather not remove them

@Tingweiftw Tingweiftw merged commit 271da04 into master Nov 11, 2024
3 checks passed
@Tingweiftw Tingweiftw deleted the chore--remove-prometheus-unsafe-load branch November 11, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants