Comments (13)
👍
from azure-sdk-for-go.
@paulmey can you dump here what you know about those (i.e. why we have them) it'd be nice to know where exactly we modified if we can.
from azure-sdk-for-go.
There was an issue about that, I left my comment there: #5
Copying my answer here:
Standard Go TLS library does not support TLS renegotiation. There is a patch for this issue, but it is not included into current Go release, and looks like it will not even make it into 1.4 or 1.5.
Patch:
https://gist.github.com/ruslangabitov/951ea755a3b76aa3f80f
You can find more information about this issue here:
https://code.google.com/p/go/issues/detail?id=5742
@ahmetalpbalkan @paulmey hope it helps.
from azure-sdk-for-go.
@hopetobelievein sure it will, thanks! Was that the only patch for vendoring crypto/tls
package here?
Any ideas about net/http
?
from azure-sdk-for-go.
Yes, that is the only thing that changed, plus references to changed packages.
I've added net/http
because it has references to crypto/tls
in some places:
https://github.com/MSOpenTech/azure-sdk-for-go/blob/master/core/http/response.go
https://github.com/MSOpenTech/azure-sdk-for-go/blob/master/core/http/transport.go
So final code in ./management/http.go
uses changed net/http
which uses patched crypto/tls
.
from azure-sdk-for-go.
@hopetobelievein thanks for clarifications. it took us some time in the past to dig deep and understand what's the diff'ed part.
from azure-sdk-for-go.
Hi!
Is it possible to add the patch as a separate commit? That way the differences are more visible, and also it adds more context.
It would be: One commit with the changes of the original repo (to revert everything), and one commit adding the patch and some context.
from azure-sdk-for-go.
Well, that history is sorta gone. This project was passed around a bit before ending up here. From my own archeology, the tls package looks like go1.2: (full diff)
paulmey@paulmey-z800:~/src/tmp-golang$ git co go1.2
HEAD is now at 402d359... go1.2
paulmey@paulmey-z800:~/src/tmp-golang$ diff -rw ~/src/go/src/github.com/Azure/azure-sdk-for-go/core/tls/ src/pkg/crypto/tls/|diffstat
common.go | 1 -
conn.go | 31 +------------------------------
handshake_messages.go | 11 -----------
3 files changed, 1 insertion(+), 42 deletions(-)
The http package looks like go1.3:
paulmey@paulmey-z800:~/src/tmp-golang$ git co go1.3
Previous HEAD position was 402d359... go1.2
HEAD is now at 1cdd48c... go1.3
paulmey@paulmey-z800:~/src/tmp-golang$ diff -rw ~/src/go/src/github.com/Azure/azure-sdk-for-go/core/http/ src/pkg/net/http/|diffstat
response.go | 2 +-
transport.go | 2 +-
transport_test.go | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Note that the only changes to the http package are to reference the modified tls package.
from azure-sdk-for-go.
Heads up go1.7 probably will ship with TLS renegotation support golang/go#5742 (comment) and we confirmed that fix works with Azure Service Management REST APIs. So we'll finally have a way to fix forks of crypto/tls
and net/http
. 🎉
from azure-sdk-for-go.
Are we comfortable saying azure-sdk-for-go is only compatible with the very latest Go compiler/stdlib? (Not that I'm against removing unneeded code...)
from azure-sdk-for-go.
@colemickens well first of all we expect all users to use vendoring, they always can go back. second is, this is management/**
packages only. so ARM users won't get broken with this.
from azure-sdk-for-go.
👍 very much in favor of dropping /core/
from azure-sdk-for-go.
🔜 go1.7 will come out.
from azure-sdk-for-go.
Related Issues (20)
- Download a specific version from Azure blob HOT 3
- Allow expiring authorization token for 403 response HOT 7
- Allow passing any policy on individual request done with a client HOT 1
- Cloud Shell ManagedIdentitySource should throw if a user-assigned managed identity clientID or resourceID is supplied
- Port AuthenticationRecord related caching doc HOT 1
- [Identity] AzurePipelinesCredential parameterless constructor and add to DAC HOT 1
- [Identity] Create a new credential to support FIC in Github Actions HOT 1
- Add tracing to the Cosmos Client HOT 7
- ARM Resource Health NewEmergingIssuesClient().NewListPager NextPage is failing to unmarshall armresourcehealth.EmergingIssue.RefreshTimestamp HOT 5
- Azure Cosmos DB for PostgreSQL Cluster - Get Authentication and Data Encryption Method HOT 1
- Record armdeploymentscripts and armnetwork tests
- Input required: ConnectedServiceNameARM when deploying test resources with federated auth HOT 2
- feat(logs): Add request URL to `log.EventRetryPolicy` logs HOT 1
- Clean up eng/tools/internal dependencies
- AuthorizationFailed HOT 7
- AzurePowerShellCredential fails to generate token due to deprecation message in Az 12.1.0 HOT 2
- Unexpected behaviour for pager returned for NewListBlobsHierarchyPager HOT 4
- IMDS probe requests should throw CredentialUnavailableException for any response that is not valid json
- Enhance Testing Support for NewListBlobsFlatPager in the azblob SDK #23098 HOT 1
- [Azure Container Registry] Expose authenticationClient/authenticationPolicy in containerregistry package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-go.