Skip to content

Eliminating aws and collaboratory profile and configuring s3 profile in application.yml and documentation.#479

Merged
Azher2Ali merged 3 commits into
developfrom
refactor/configure-s3
Aug 27, 2024
Merged

Eliminating aws and collaboratory profile and configuring s3 profile in application.yml and documentation.#479
Azher2Ali merged 3 commits into
developfrom
refactor/configure-s3

Conversation

@Azher2Ali
Copy link
Copy Markdown
Contributor

@Azher2Ali Azher2Ali commented Aug 15, 2024

Description:
In our ongoing efforts to streamline the SCORe server codebase and improve configuration management, we are consolidating multiple S3-compatible backend profiles into a single, unified profile. This change simplifies the configuration by removing outdated or redundant profiles and standardizing on a single s3 profile that works with any S3 API, including Amazon AWS, MinIO, and Ceph.

Changes Include:

Java Classes: Update @Profile annotations to replace collaboratory, amazon, and aws profiles with the new s3 profile. The affected classes are:

  • BackendHealth

  • ServerConfig

  • S3Config

  • S3DownloadService

  • S3ListingService

  • S3UploadService

  • application.yaml Configuration:

Removed : Sections for amazon and collaboratory.

Added: A new section for the s3 profile, including all configurable properties related to S3 connections, with commented-out default properties where appropriate.

Documentation Updates:

Updated score-server/README.md: Add a new section to document regarding the s3 profile, which includes required profile name and listing all configuration properties with their descriptions.

…and updating the application.yml along with documentation
@Azher2Ali Azher2Ali requested review from joneubank and leoraba and removed request for leoraba August 15, 2024 13:24
Copy link
Copy Markdown
Contributor

@joneubank joneubank left a comment

Choose a reason for hiding this comment

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

Code changes look good, need some markdown updates.

Comment thread score-server/README.md Outdated
Comment thread score-server/README.md Outdated
@Azher2Ali Azher2Ali requested a review from joneubank August 22, 2024 20:49
Comment thread score-server/README.md
Comment on lines +54 to +64
| Property | Description |
| ------------- | ------------- |
|`s3.secured` | Determines whether the connection to the S3 service should use HTTPS (true) or HTTP (false). Set to true to secure the connection. |
|`s3.endpoint` |The URL of the S3-compatible service. This is the endpoint where the service is hosted. This property should be provided based on the service you're using.
|`s3.accessKey` |The access key for authenticating with the S3 service. It's required for secure access and should be kept confidential.|
|`s3.secretKey`|The secret key paired with the access key for secure authentication to the S3 service. It must also be kept confidential.|
|`s3.masterEncryptionKeyId`|The ID of the encryption key used for server-side encryption of files stored in S3. If provided, this key ensures that all data at rest is encrypted using the specified key.|
|`s3.customMd5Property`| A custom metadata property that stores an MD5 checksum of the uploaded files. This is useful for validating the integrity of the files.|
|`s3.connectionTimeout`| The maximum amount of time (in milliseconds) the client will wait to establish a connection to the S3 service before timing out. This helps manage delays in the network or service availability.|
|`s3.retryLimit`| The number of retries the client will attempt if an operation fails (e.g., an upload). This helps ensure robustness in case of transient issues.
|`s3.sigV4Enabled`| Enables AWS Signature Version 4 for request signing. This is required for certain regions or when using advanced features like server-side encryption with AWS KMS.|
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.

👍 looks great!

@Azher2Ali Azher2Ali merged commit c108ec6 into develop Aug 27, 2024
@Azher2Ali Azher2Ali deleted the refactor/configure-s3 branch August 27, 2024 18:01
leoraba added a commit that referenced this pull request Aug 5, 2025
* Keycloak permission manager (#387)

* enable Keycloak apiKeys

* setup security config and update mvn dependencies

* junit missing dependency

* unit test mock Jwt Decoder

* fix unit test

- use a JWT decoder for testing
- Remove unused clases
- Remove JWT expired unit tests as validation is now implemented by Spring Security

* code format

* test profile

* docker-compose update images

* add keycloak to docker compose

* fix merge conflict

* fix typo curl command

* update keycloak system client and apikeys

* Renamed the constant ICGCFS to SCOREFS

* change URI scheme from icgc:// to score://

* Remove outdated wiki reference comment in DownloadManifest.java

* Updating the getName response

* Updated bucket names from oicr.icgc.test to score.data and score.state

* Remove unused scripts and static resources from score

* Update token header key from ICGC to SCORe

* Update READMEs to replace ICGC with SCORe

* Deleting the settings folder belonging to specific IDEs

* Removing out dated tests which are no longer in service

* Renaming the icgc references to SCORe

* Renaming the icgc reference to SCORe

* Rephrasing the error handling messages

* Updating the icgc buckets to  overture.example.score

* Deleting unused templated which are related to kf

* Rename Default Buckets in Docker-Compose and Update References in SCORe (#471)

* Consolidate Manifest Handling by Removing KF-Specific Implementation (#470)

* Consolidate Manifest Handling by Removing KF-Specific Implementation

* Removing unused classes and dependecies from the code

* Eliminating Error messaging referencing ICGC (#454)

* Eliminating Error messaging referencing ICGC

* Updating the error message

* Removing ICGC support contact info currently which are inside the SCO… (#453)

* Removing ICGC support contact info currently which are inside the SCORe CLI

* Removing the maintainter statement as per the feedback

* Remove Hardcoded Profiles and Default URLs from SCORe Client (#469)

* Remove Hardcoded Profiles and Default URLs from SCORe Client

* Updating application.yml according to the description

* Adding defaulturls in the test/application.yml

* Changes related to urls in test/application.yml

* Local docker-compose re-uses object bucket name for state bucket

* Eliminating kf profile from the codebase (#476)

* Eliminating kf profile from the codebase

* Assigning default value to partSize

* Remove @Profile Annotations from DownloadController and UploadController (#477)

* Remove Hardcoded URL in Benchmark Profile (#478)

* Eliminating aws and collaboratory profile and configuring s3 profile in application.yml and documentation. (#479)

* Eliminating aws and collaboratory profile and configuring s3 profile and updating the application.yml along with documentation

* Changes related to s3 description in README.md

* Changes related to README file formatting

* Rename COLLABORATORY Strorage Profile to S3 in SCORe

* Eliminating amazong profile with s3

* Merge from `main` to `develop` (#483)

* Versioning 5.10.1

* Rc/5.11.0 (#418)

* Keycloak permission manager (#387)

* enable Keycloak apiKeys

* setup security config and update mvn dependencies

* junit missing dependency

* unit test mock Jwt Decoder

* fix unit test

- use a JWT decoder for testing
- Remove unused clases
- Remove JWT expired unit tests as validation is now implemented by Spring Security

* code format

* test profile

* docker-compose update images

* add keycloak to docker compose

* fix merge conflict

* fix typo curl command

* update keycloak system client and apikeys

* version 5.11.0

---------

Co-authored-by: Jon Eubank <joneubank@gmail.com>

* Feature - Add `noSecurityDev` profile (#485)

* Add noSecurityDev profile to require no auth tokens in dev

* Include description for azure profile in server readme

* Score Dev Documentation  (#482)

* basic folder structure

* code of conduct

* license

* contributing

* docs folder setup + ported existing docs

* docs folder setup + ported existing docs

* Fixed broken links

* minor update

* minor updates

* updated symlink

* updated symlinks

* link update

* updated application.yaml

* updated application.yaml

* simplified file naming

* fixed links

* cleaned up content

* cleaned up content

* missing variable download expiration time

* updated application.yaml

* updated application.yaml

* updated setup documentation

* temporarly sperated usage docs

* updated overview page

* updated docs + application.yaml

* added empty line

* minor fix

* fixed broken link

* added score client docker setup

* updated user guides

* updated readme

* updating contributing & code of conduct

* updated with object storage and keycloak docs

* vault doc

* links

* minor update

* score setup title

* updated bat command

* Add Key Features to main README

* Update repository structure to mirror main README

* Formatting and minor edits

* netlify link

* updated cross referenced urls to docs.overture.bio

* removed code of conduct (.github covers this) removed repository structure in readme (it is in the overview)

* fixed typos in images, reduced image size to ~1mb will try lower if needed

* revert changes in application.yml

---------

Co-authored-by: Leonardo Rivera <leorivera_88@hotmail.com>
Co-authored-by: Jon Eubank <joneubank@gmail.com>
Co-authored-by: Anders Richardsson <2107110+justincorrigible@users.noreply.github.com>

* docker version + naming (#489)

Co-authored-by: Mitchell Shiell <mshiell@wl7053-spatel.ad.oicr.on.ca>

* add JetBrains logo in ReadMe (#490)

* Fix typo in README (#491)

---------

Co-authored-by: Azher2Ali <121898125+Azher2Ali@users.noreply.github.com>
Co-authored-by: Jon Eubank <joneubank@gmail.com>
Co-authored-by: Mitchell Shiell <59712867+MitchellShiell@users.noreply.github.com>
Co-authored-by: Anders Richardsson <2107110+justincorrigible@users.noreply.github.com>
Co-authored-by: Mitchell Shiell <mshiell@wl7053-spatel.ad.oicr.on.ca>
Co-authored-by: bounlu <bounlu@gmail.com>
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