Comments (4)
@cirquit You are right implementation of #63 should solve your problem.
You get the error because the native Haskell TLS implementation doesn't support validating servers based on IP address. There is a PR pending for this: haskell-tls/hs-certificate#113, when it is merged, this should work.
Easiest thing you can do is to replace the package x509-validation
with the commit in the above PR in your stack.yaml
. You can see an example of this in #61 .
from haskell.
So, after adding the your current PR to the extra-deps
in the stack.yaml
file as follows:
...
extra-deps:
- git: https://github.com/akshaymankar/hs-certificate
commit: 2a71b5
subdirs:
- x509-validation
- ...
I get the following error as I stack build
:
-- While building package connection-0.2.8 using:
/home/asa/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /home/asa/Documents/github-repos/kubernetes-playground/haskell-amqp+kube-example/haskell-test/.stack-work/logs/connection-0.2.8.log
Configuring connection-0.2.8...
Preprocessing library for connection-0.2.8..
Building library for connection-0.2.8..
[1 of 2] Compiling Network.Connection.Types ( Network/Connection/Types.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/Network/Connection/Types.o )
/tmp/stack9755/connection-0.2.8/Network/Connection/Types.hs:19:1: warning: [-Wdeprecations]
Module ‘Network.BSD’ is deprecated:
This platform dependent module is no longer supported.
|
19 | import Network.BSD (HostName)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2 of 2] Compiling Network.Connection ( Network/Connection.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/Network/Connection.o )
/tmp/stack9755/connection-0.2.8/Network/Connection.hs:63:1: error:
Could not find module ‘Network.Socks5’
There are files missing in the ‘socks-0.5.6’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
63 | import Network.Socks5
| ^^^^^^^^^^^^^^^^^^^^^
The full paste is found here.
I've checked the source of connection-0.2.8
and it uses the Network.Socks5
import. The apparently missing file should definitely be there as seen from the socks-0.5.6
documentation.
EDIT: Got it running by creating a fresh project.
My stack.yaml
:
extra-deps:
- http-client-0.5.14@sha256:4880b27d6741e331454a1d4c887d96ce3d7d625322c8433983a4b1cd08538577
- http-media-0.7.1.3@sha256:481a40a26f71caaa1a9d9bf4c0fabdd4b51847c6bfa59b8e790fa07ef52dfea6
- socks-0.5.6@sha256:bb051589a00d18301556dbff82d89955a5534baf91a5e050e5f3a65f3415609c
- oidc-client-0.4.0.1@sha256:d35d29351ea7db2aa0ecd4b4792b8bac4bf13f10c050e3c0cab0072b74acd996
- git: https://github.com/kubernetes-client/haskell
commit: 95eb28b
subdirs:
- kubernetes-client
- kubernetes
- git: https://github.com/akshaymankar/hs-certificate
commit: 2a71b5
subdirs:
- x509-validation
- connection-0.2.8
My package.yaml
:
...
dependencies:
- base >= 4.7 && < 5
- kubernetes-client >= 0.1.0.1 && < 2
- kubernetes-client-core >= 0.1.0.1 && < 2
- connection >= 0.2.8 && < 3
- containers
- x509-validation
- stm >= 2.5.0.0 && < 3
...
from haskell.
@cirquit I am closing this issue as #63 exists to track the TLS issue. Feel free to re-open if you think I missed something
/close
from haskell.
@akshaymankar: Closing this issue.
In response to this:
@cirquit I am closing this issue as #63 exists to track the TLS issue. Feel free to re-open if you think I missed something
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
from haskell.
Related Issues (20)
- client update may be broken HOT 7
- Update to newer versions of GHC HOT 2
- Should we make a release? HOT 10
- Proposal: Default to openssl HOT 18
- Examples HOT 7
- Clean up outside collaborators HOT 2
- Incorrectly generated query strings (that rely on + not being urlencoded) HOT 21
- in-cluster config builder does not work properly in an ipv6 cluster HOT 14
- Sometimes k8s gives back Null and the client dies HOT 2
- Update to newer LTS? HOT 8
- Issue with (-&-) optional argument operator and Command optional argument for exec HOT 18
- Issue with kubernetes-client dependency on time on Hackage HOT 9
- does not compile HOT 3
- Strategic JSON patch no longer supported? HOT 3
- Wrong return type in deleteNamespacedPersistentVolumeClaim HOT 6
- ssl error when specify master address as IP address in config file HOT 15
- kubernetes-client seems broken in both stack and nix-env. Any tips on installation? HOT 2
- Version on hackage is old HOT 6
- Possible alternative to configQueryExtraUnreserved option? HOT 18
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 haskell.