[go: nahoru, domu]

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

metadata-service[orchestrator]: set SBOM url in registry #44381

Conversation

alafanechere
Copy link
Contributor
@alafanechere alafanechere commented Aug 19, 2024

What

Closes https://github.com/airbytehq/airbyte-internal-issues/issues/8991
We want to populate the generated field of connector a registry entry with an URL to its SBOM.

How

  • Check if an SBOM is available at the expected URL with an HEAD request.
  • Update the metadata generated fields with the sbomUrl.

Copy link
vercel bot commented Aug 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Aug 20, 2024 7:53am

@alafanechere alafanechere force-pushed the augustin/08-19-metadata-service_lib_add_sbom_url_to_generated_registry_fields branch from e28e7f6 to 56f5445 Compare August 19, 2024 09:32
@alafanechere alafanechere force-pushed the augustin/08-19-metadata-service_orchestrator_set_SBOM_url_in_registry branch from 8eb8c56 to d3da46d Compare August 19, 2024 09:32
@alafanechere alafanechere force-pushed the augustin/08-19-metadata-service_lib_add_sbom_url_to_generated_registry_fields branch from 56f5445 to 56d8030 Compare August 19, 2024 09:55
@alafanechere alafanechere force-pushed the augustin/08-19-metadata-service_orchestrator_set_SBOM_url_in_registry branch 2 times, most recently from bc94f7a to a8a8d8a Compare August 19, 2024 10:21
@alafanechere alafanechere marked this pull request as ready for review August 19, 2024 10:22
@alafanechere alafanechere requested a review from a team as a code owner August 19, 2024 10:22
return metadata_dict
response = requests.head(sbom_url)
if response.ok:
metadata_dict = set_(metadata_dict, "data.generated.sbomUrl", sbom_url)
Copy link
Contributor

Choose a reason for hiding this comment

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

For my education: do we put a lot of things in generated metadata key?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is what currently ends up as generated metadata. It's mainly to feed the doc with marketplace metrics.

Screenshot 2024-08-20 at 09 52 46

@alafanechere alafanechere force-pushed the augustin/08-19-metadata-service_lib_add_sbom_url_to_generated_registry_fields branch from 56d8030 to de4e12f Compare August 20, 2024 06:54
@alafanechere alafanechere force-pushed the augustin/08-19-metadata-service_orchestrator_set_SBOM_url_in_registry branch from a8a8d8a to c38f34e Compare August 20, 2024 06:54
Base automatically changed from augustin/08-19-metadata-service_lib_add_sbom_url_to_generated_registry_fields to master August 20, 2024 07:38
@alafanechere alafanechere force-pushed the augustin/08-19-metadata-service_orchestrator_set_SBOM_url_in_registry branch from c38f34e to 2f872fa Compare August 20, 2024 07:52
@alafanechere alafanechere merged commit 8b6a91a into master Aug 20, 2024
32 checks passed
@alafanechere alafanechere deleted the augustin/08-19-metadata-service_orchestrator_set_SBOM_url_in_registry branch August 20, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants