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

functionbeat 7.12 can't deploy -- unknown field 'VerifyConnection' in struct literal of type tls.Config #24925

Closed
jasonslater2000 opened this issue Apr 4, 2021 · 7 comments

Comments

@jasonslater2000
Copy link

OS: OSX
Version: 7.12

2021-04-03T16:55:49.929-0700 DEBUG [gcp] gcp/cli_manager.go:47 Deploy finish for function 'jslater-pubsub'
Function: jslater-pubsub, could not deploy, error: error while creating function (code: 3):
Build failed: # pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon
src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:112:3: unknown field 'VerifyConnection' in struct literal of type tls.Config
src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:123:4: unknown field 'VerifyConnection' in struct literal of type tls.Config
src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:141:4: unknown field 'VerifyConnection' in struct literal of type tls.Config
src/pubsub/vendor/github.com/elastic/beats/v7/libbeat/common/transport/tlscommon/tls_config.go:149:8: config.VerifyConnection undefined (type *tls.Config has no field or method VerifyConnection); Error ID: 6191efcd
2021-04-03T16:55:49.929-0700 DEBUG [cli-handler] cmd/cli_handler.go:62 Deploy execution ended
Fail to deploy 1 function(s)

identical configuration works fine w/ functionbeat 7.11.1

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 4, 2021
@jsoriano jsoriano added the Team:Elastic-Agent Label for the Agent team label May 10, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 10, 2021
@ph ph added the bug label May 11, 2021
@ph
Copy link
Contributor

ph commented May 11, 2021

@kvch Anything we have changed recently?

@kvch
Copy link
Contributor

kvch commented May 12, 2021

Yes, VerifyConnection was introduced in Golang 1.15 and on GCP the most up to date Golang environment is 1.13. We need some conditional building to make sure it works with older Golang versions.

@ph
Copy link
Contributor

ph commented May 12, 2021

So, this means that functionbeat in the latest revision doesn't work when using TLS options.

@andrewkroh
Copy link
Member

andrewkroh commented May 18, 2021

I'm just adding a few links for background info on the issue.

References:

@chipzzz
Copy link

chipzzz commented Jan 21, 2022

For anyone trying to use functionbeat with gcp still, what's the option? tried 7.11.1 but that fails too as OP mentioned but that fails too with same error.

@botelastic
Copy link

botelastic bot commented Jan 21, 2023

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jan 21, 2023
@botelastic botelastic bot closed this as completed Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants