Skip to content

COCOS-369 - Enable compiling gRPC clients without cGo#372

Merged
dborovcanin merged 6 commits into
ultravioletrs:mainfrom
SammyOina:cocos-369
Feb 13, 2025
Merged

COCOS-369 - Enable compiling gRPC clients without cGo#372
dborovcanin merged 6 commits into
ultravioletrs:mainfrom
SammyOina:cocos-369

Conversation

@SammyOina

@SammyOina SammyOina commented Feb 11, 2025

Copy link
Copy Markdown
Contributor

What type of PR is this?

What does this do?

  • Chores
    • Updated runtime environment and dependency configurations to boost overall stability and compatibility.

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Did you document any new/modified feature?

Notes

@SammyOina SammyOina marked this pull request as ready for review February 11, 2025 06:52
@SammyOina SammyOina marked this pull request as draft February 11, 2025 06:52
@codecov

codecov Bot commented Feb 11, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 53.84615% with 24 lines in your changes missing coverage. Please review.

Project coverage is 59.43%. Comparing base (bb0ad29) to head (deb5f8c).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/clients/grpc/atls.go 48.93% 24 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #372      +/-   ##
==========================================
- Coverage   59.57%   59.43%   -0.15%     
==========================================
  Files          54       55       +1     
  Lines        4574     4573       -1     
==========================================
- Hits         2725     2718       -7     
- Misses       1564     1569       +5     
- Partials      285      286       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SammyOina SammyOina marked this pull request as ready for review February 11, 2025 07:26
@SammyOina SammyOina marked this pull request as draft February 11, 2025 18:03
@dborovcanin

Copy link
Copy Markdown
Contributor

Please resolve conflicts.

@SammyOina SammyOina marked this pull request as ready for review February 13, 2025 08:38
@SammyOina SammyOina changed the title COCOS-369 - Separate aTLS module COCOS-369 - Enable compiling gRPC clients without cGo Feb 13, 2025
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
… pborman/uuid v1.2.1

Signed-off-by: Sammy Oina <sammyoina@gmail.com>
…ls functionality, and update related configurations

Signed-off-by: Sammy Oina <sammyoina@gmail.com>
…tional methods

Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Comment thread pkg/clients/grpc/grpc.go
@@ -239,52 +215,3 @@ func ReadAttestationPolicy(manifestPath string, attestationConfiguration *check.

return ErrAttestationPolicyMissing
}

func CustomDialer(ctx context.Context, addr string) (net.Conn, error) {

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.

Is this not needed anymore, i.e. it was not necessary in the first place?

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.

we need the custom dialer since we add tls extensions and standard go library does not allow for this

// Copyright (c) Ultraviolet
// SPDX-License-Identifier: Apache-2.0

//go:build !cgo

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.

Good idea. :)

@dborovcanin dborovcanin merged commit 7e17a00 into ultravioletrs:main Feb 13, 2025
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.

Move aTLS to a separate module

2 participants