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

Syncing latest changes from master for noobaa-core #18

Open
wants to merge 299 commits into
base: release-4.19
Choose a base branch
from

Conversation

df-build-team
Copy link

PR containing the latest commits from master branch

alphaprinz and others added 30 commits October 30, 2024 11:17
Bucket Notifications - phase 1

Signed-off-by: Amit Prinz Setter <[email protected]>
Signed-off-by: Utkarsh Srivastava <[email protected]>

add configurable for bucket name length

Signed-off-by: Utkarsh Srivastava <[email protected]>
… usage

Signed-off-by: Utkarsh Srivastava <[email protected]>

cleanup code

Signed-off-by: Utkarsh Srivastava <[email protected]>

fix reset method and rename config params

Signed-off-by: Utkarsh Srivastava <[email protected]>

handle overflow case

Signed-off-by: Utkarsh Srivastava <[email protected]>
Co-authored-by: Guy Margalit <[email protected]>
…der-partial-encoded

[NSFS] Fix Newline Reader to work with partial reads and improve its memory usage
bucket_api: Pagination support for list_bucket API
…ile-version

use delete_version src file instead of move_to_dest dest_file to get latest version
Update the Dockerfiles

Signed-off-by: liranmauda <[email protected]>
…onditions

NSFS | versioning | remove seperation between GPFS and POSIX errors for concurrency retries
NSFS | Healthcheck is not reporting error for buckets with out access
…resigned-url

Presigned URL - Expiry limit from milliseconds to seconds and epoch fixes + automatic tests
In last PR for pagination -
noobaa#8475, I had added one empty
file by mistake. Removing it now.

Signed-off-by: Ashish Pandey <[email protected]>
`unique` was removed from `shared_ptr`
This PR removes `unique` and the unused `NAN_SET_BUF_DETACH`

Signed-off-by: liranmauda <[email protected]>
…d-c-function

Removing `unique` and the unused `NAN_SET_BUF_DETACH`
…-upgrade-script

NC | Online Upgrade | Config directory restructure upgrade script
Add S3 GetObjectAttributes API Implementation
NC | NSFS | Versioning | Avoid Errors On Put Object of Directory Content
shirady and others added 30 commits February 5, 2025 18:32
…nkedContentDecoder)

1. In http_utils.js accept more types of content sha256 headers (STREAMING-UNSIGNED-PAYLOAD-TRAILER, STREAMING-AWS4-HMAC-SHA256-PAYLOAD-TRAILER), as without those headers on clients that add the checksum headers with trailing we would fail.
2. Change the state of the machine and add more states to support the trailing headers: STATE_READ_TRAILER (like we have STATE_READ_CHUNK_HEADER), STATE_WAIT_NL_TRAILER (like we have STATE_WAIT_NL_DATA) and STATE_WAIT_NL_END.
3. Set the following constants to limit the request (avoid the client from abuse):
   - MAX_CHUNK_SIZE - we want to have a lower number than Number.MAX_SAFE_INTEGER (reference), we expect lower number.
   - MAX_CHUNK_HEADER_SIZE - we don't expect that long (as it is saved in memory during the parsing).
   - MAX_TRAILER_SIZE - same, in the example we saw it was about ~30 (x-amz-checksum-crc32:uOMGCw==).
   - MAX_TRAILERS - currently we saw the trailer of checksum (x-amz-checksum-crc32:uOMGCw==), we expect to have a few trailers in a request.
4. Refactor and organize - add comments with explanations about the state machine, add helper functions, add separation between the parts, rename chunk_header_str to chunk_header, add members related to trailers, add the member this.stream_pos which we use for validation.
5. Improve building the string (either this.chunk_header, and this.trailer) so we won't build it byte by byte, but only after we find the CR ('\r`).
6. Replace buffer slice function with subarray as the function slice was deprecated (see reference).

Co-authored-by: Guy Margalit <[email protected]>
Signed-off-by: shirady <[email protected]>
FIx Request Handling on Requests with Trailing Headers (Mainly in `ChunkedContentDecoder`)
Update AWS_API_Compatibility.md - Adding CORS
…ructure

NSFS | versioning | add direcory content versioning PUT action
… Phase 2

- Code maintenance: Clean dead code from net_utils

Signed-off-by: liranmauda <[email protected]>
Code maintenance | Clean dead code from net_utils | nope-ip removal - Phase 2
Docs | Add `ChunkedContentDecoder` Documentation with State Machine Diagram
NC | NSFS | CLI | Separate Bucket and Account List Functions
NC | CLI | Fix for unsettable flags issues
…guration

NSFS | add configuration flag to enable dynamic supplemental groups allocation
…en deleted and also for other operations

Signed-off-by: Aayush Chouhan <[email protected]>
NC | CLI | Updated the CLI response to have more info when account/bucket has been deleted
`stun.js`:
- Replaced `node-ip` with native `net_utils` calls

`http_utils.js`:
- Refractored `no_proxy_list`
- Replaced `node-ip.cidr` with native `net_utils.is_cidr` call

`net_utils.js`:
- Fixed a bug where `is_fqdn("loclhost")` returned falsely true
- Add `is_cidr`, `ip_toString`, and `ip_toBuffer`
- Added helper functions for `ip_toBuffer`

- Adding `test_net_utils.test.js`

Signed-off-by: liranmauda <[email protected]>
NC | Test Files | Remove `nsfs` From File Name and Update Docs
Setting active_root_key parallel to loading key
…nt-api

Add http://{endpoint_address}:{s3_port}/_/version api to the endpoint
…ional

NC | Online upgrade | convert --expected_hosts flag from required to optional
…T if there were no failures (noobaa#8765)

Signed-off-by: Amit Prinz Setter <[email protected]>
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.