You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i was developping a new query based on github_repository_content, i encountered the error of the death Invalid memory address or nil pointer dereference.
The query used to reproduce it (sorry, it's based on the github.github_repository_content table wich is not yet available (review in progress)) :
selectksa._ctx->'connection_name'as cluster_name
,namespace
,tags->'project'as project, lower(tags->>'team') as team , tags->'customer'as customer, tags->'tenant'as tenant
,case
when ksa.annotations::textlike'%role-arn%' then true else false
end as has_irsa_enabled_in_service_account
,ksa.annotations->'eks.amazonaws.com/role-arn'as used_aws_role
,case when
repo.full_nameis not null then true else false
end as github_repository_is_found
, repo.full_name
,case
when c.content::jsonb->'require' ? 'aws/aws-sdk-php' then true
when c.content::jsonb->'require' ?'aws/aws-sdk-php-symfony' then true
else false
end as need_irsa_in_composer
-- list all service accounts deployed on our kubernetes clustersfromkube_api_prod_all.kubernetes_service_account ksa
-- get the corresponding microservice repository based on "project" tagleft outer joingithub.github_my_repository repo
onrepo.full_namelike'%'|| (ksa.tags->>'project'::text)
-- get the composer.json file allowing us to identify wich project uses aws services with the sdkleft outer joingithub.github_repository_content c
onrepo.full_name=c.repository_full_nameandc.repository_content_path='composer.json'where
tags->'project'is not nullorder by namespace, team, project, tenant
I try debugging it, and i found that this issue occurs when the plugin cache returns a cache record with othernil Qual Value (when dealing with my new table (see PR)
I don't know if the main trouble comes from the query, or the github plugin, but it seems to come from this line https://github.com/turbot/steampipe-plugin-sdk/blob/main/grpc/proto/qual.go#L34
Do you think this behaviour is legit ?
For now, i'm writting a PR to fix it.
The text was updated successfully, but these errors were encountered:
Hey @aminvielledebatAtBedrock , thanks for opening the issue! I'll defer to @kaidaguerre on this, as he's the maintainer of the SDK, but will pitch in wherever I can.
Hi steampipe team !
When i was developping a new query based on
github_repository_content
, i encountered the error of the deathInvalid memory address or nil pointer dereference
.The query used to reproduce it (sorry, it's based on the
github.github_repository_content
table wich is not yet available (review in progress)) :I try debugging it, and i found that this issue occurs when the plugin cache returns a cache record with
other
nil
Qual Value (when dealing with my new table (see PR)I don't know if the main trouble comes from the query, or the github plugin, but it seems to come from this line https://github.com/turbot/steampipe-plugin-sdk/blob/main/grpc/proto/qual.go#L34
Do you think this behaviour is legit ?
For now, i'm writting a PR to fix it.
The text was updated successfully, but these errors were encountered: