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

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

Merged
merged 6 commits into from
Feb 13, 2025

Conversation

SammyOina
Copy link
Contributor

@SammyOina SammyOina commented Feb 11, 2025

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
Copy link

codecov bot commented Feb 11, 2025

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
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
@@ -239,52 +215,3 @@ func ReadAttestationPolicy(manifestPath string, attestationConfiguration *check.

return ErrAttestationPolicyMissing
}

func CustomDialer(ctx context.Context, addr string) (net.Conn, error) {
Copy link
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
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
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
1 of 3 checks passed
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