Skip to content

[ST-537] Minio Integration#21

Merged
shn-liqd merged 1 commit intomainfrom
so-2025-06-minio-integration
Jun 30, 2025
Merged

[ST-537] Minio Integration#21
shn-liqd merged 1 commit intomainfrom
so-2025-06-minio-integration

Conversation

@shn-liqd
Copy link
Copy Markdown
Contributor

@shn-liqd shn-liqd commented Jun 24, 2025

Tasks

  • PR name contains story or task reference
  • Documentation (docs and inline)
  • Tests (including n+1 and django_assert_num_queries where applicable)
  • Changelog

@shn-liqd shn-liqd self-assigned this Jun 24, 2025
@shn-liqd shn-liqd requested review from glanzel and m4ra June 24, 2025 14:12
Copy link
Copy Markdown
Contributor

@glanzel glanzel left a comment

Choose a reason for hiding this comment

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

May be a better Solution than the API i come up with.


try:
client = get_minio_client()
bucket_name = settings.MINIO_DATA["bucket"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not get the bucket_name from the mesh_id as is is present in there as parts[0] anyway?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this gives us the control to define which bucket the client can try to access

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

okay but then the mesh_id then include unnecessary information. i feel it could be confusing if you have to set a bucket in the mesh id every time but it changes nothing.
Would be better if there is no bucket inside the mesh_id or instead may use a ALLOWED_BUCKETS ? and check if the bucket which is specified is allowed ?

Copy link
Copy Markdown
Contributor

@glanzel glanzel left a comment

Choose a reason for hiding this comment

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

I am okay with that but would still suggest to changed something about buckets probably use ALLOWED_BUCKETS and check if the bucket which is specified in mesh_id is allowed

@shn-liqd shn-liqd force-pushed the so-2025-06-minio-integration branch from f21473f to a4e044a Compare June 30, 2025 12:11
@shn-liqd shn-liqd merged commit 1a1240a into main Jun 30, 2025
2 checks passed
@shn-liqd shn-liqd deleted the so-2025-06-minio-integration branch June 30, 2025 12:11
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.

4 participants