René's URL Explorer Experiment


Title: Field apiextensions.fn.proto.v1.RunFunctionRequest.credentials does not have presence when "resource.get_credentials()" called. · Issue #137 · crossplane/function-sdk-python · GitHub

Open Graph Title: Field apiextensions.fn.proto.v1.RunFunctionRequest.credentials does not have presence when "resource.get_credentials()" called. · Issue #137 · crossplane/function-sdk-python

X Title: Field apiextensions.fn.proto.v1.RunFunctionRequest.credentials does not have presence when "resource.get_credentials()" called. · Issue #137 · crossplane/function-sdk-python

Description: What happened? I have a composition which is configured to inject kubernetes secret by using "credentials" config. Upon loading this secret inside my composite function, fetching the credential data by using "resource.get_credentials()",...

Open Graph Description: What happened? I have a composition which is configured to inject kubernetes secret by using "credentials" config. Upon loading this secret inside my composite function, fetching the credential dat...

X Description: What happened? I have a composition which is configured to inject kubernetes secret by using "credentials" config. Upon loading this secret inside my composite function, fetching the cred...

Opengraph URL: https://github.com/crossplane/function-sdk-python/issues/137

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Field apiextensions.fn.proto.v1.RunFunctionRequest.credentials does not have presence when \"resource.get_credentials()\" called.","articleBody":"### What happened?\n\nI have a composition which is configured to inject kubernetes secret by using \"credentials\" config. Upon loading this secret inside my composite function, fetching the credential data by using \"resource.get_credentials()\", I 'm receiving below error:\n\n\u003e crossplane: error: cannot render composite resource: cannot run pipeline step \"postInstallActivities\": rpc error: code = Unknown desc = Unexpected \u003cclass 'ValueError'\u003e: Field apiextensions.fn.proto.v1.RunFunctionRequest.credentials does not have presence.\n\nWhile the RunFunctionRequest has the credential field in it, but looks like there is change in the schema.\nBelow is the RunFunctionRequest struct:\n`observed {\n    composite {\n      resource {\n        fields {\n          key: \"spec\"\n          value {\n            struct_value {      \n            }\n            }\n          }\n        }\n      }\n    }\n  }\n  desired {\n  }\n  context {\n  }\n  credentials {\n    key: \"app1\"\n    value {\n      credential_data {\n        data {\n          key: \"init_key\"\n          value: \"redacted\"\n        }\n      }\n    }\n  }\n  credentials {\n    key: \"app2\"\n    value {\n      credential_data {\n        data {\n          key: \"init_key\"\n          value: \"redacted\"\n        }\n      }\n    }\n  }`\n\n\nExpected Behavior: \"resource.get_credentials()\" should properly fetch the Credentials from the RunFunctionRequest and return credential type and data.\n\n\n### How can we reproduce it?\n\n1. Configure a composition to run a composite function and enable config = credentials to reference the secret.\n`apiVersion: apiextensions.crossplane.io/v1\nkind: Composition\nmetadata:\n  name: postInstall\nspec:\n  compositeTypeRef:\n    apiVersion: product.example.org/v1\n    kind: postInstall\n  mode: Pipeline\n  pipeline:\n    - step: postInstallStep\n      functionRef:\n        name: function-post-install\n      credentials:\n        - name: app1\n          source: Secret\n          secretRef:\n            namespace: app1\n            name: app1-secret\n        - name: app2\n          source: Secret\n          secretRef:\n            namespace: app2\n            name: app2-secret`\n\n2. Develop a composite function to instantiate Credentials with - 'resource.get_credentials(req, \"app1\")' \n3. In an ideal case, the Credentials should be instantiated with type and data.\n\n\n### What environment did it happen in?\nFunction version: v0.6.0\n* Crossplane version: v1.18.1\n* Cloud provider or hardware configuration: Azure, Minikube\n* Kubernetes version: v1.29\n* Kubernetes distribution : AKS, Minikube\n* OS: Mac\n* Kernel: Darwin, arm64\n\n","author":{"url":"https://github.com/my-dev-ops-pro","@type":"Person","name":"my-dev-ops-pro"},"datePublished":"2025-03-26T17:29:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/137/function-sdk-python/issues/137"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:faa2f175-38b4-fabf-1345-f6d7c6e10e0b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idECEE:B1596:10C62A:181B32:6A61DCE8
html-safe-noncecc74dffa514a860ab60cce5be0576f991a7181b97498bfc748868f60db485e1d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0VFOkIxNTk2OjEwQzYyQToxODFCMzI6NkE2MURDRTgiLCJ2aXNpdG9yX2lkIjoiODUxNDUyNTI0OTEwMjA2MTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd9fa6a727da9fa4555d7c081dc4e8d457c59cb3242422826382f28fc3bd64698
hovercard-subject-tagissue:2950338562
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/crossplane/function-sdk-python/137/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7a0a1bf3aa0a0e92825feb0f188f67948a5e06cd099a2508ed6f793f1c563fc1/crossplane/function-sdk-python/issues/137
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7a0a1bf3aa0a0e92825feb0f188f67948a5e06cd099a2508ed6f793f1c563fc1/crossplane/function-sdk-python/issues/137
og:image:altWhat happened? I have a composition which is configured to inject kubernetes secret by using "credentials" config. Upon loading this secret inside my composite function, fetching the credential dat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemy-dev-ops-pro
hostnamegithub.com
expected-hostnamegithub.com
Noneb2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c
turbo-cache-controlno-preview
go-importgithub.com/crossplane/function-sdk-python git https://github.com/crossplane/function-sdk-python.git
octolytics-dimension-user_id45158470
octolytics-dimension-user_logincrossplane
octolytics-dimension-repository_id721365259
octolytics-dimension-repository_nwocrossplane/function-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id721365259
octolytics-dimension-repository_network_root_nwocrossplane/function-sdk-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released1866027ded575df8a15c731dd8b9986c9483ceb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/crossplane/function-sdk-python/issues/137#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcrossplane%2Ffunction-sdk-python%2Fissues%2F137
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcrossplane%2Ffunction-sdk-python%2Fissues%2F137
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=crossplane%2Ffunction-sdk-python
Reloadhttps://github.com/crossplane/function-sdk-python/issues/137
Reloadhttps://github.com/crossplane/function-sdk-python/issues/137
Reloadhttps://github.com/crossplane/function-sdk-python/issues/137
Please reload this pagehttps://github.com/crossplane/function-sdk-python/issues/137
crossplane https://github.com/crossplane
function-sdk-pythonhttps://github.com/crossplane/function-sdk-python
Notifications https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Fork 14 https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Star 13 https://github.com/login?return_to=%2Fcrossplane%2Ffunction-sdk-python
Code https://github.com/crossplane/function-sdk-python
Issues 6 https://github.com/crossplane/function-sdk-python/issues
Pull requests 1 https://github.com/crossplane/function-sdk-python/pulls
Actions https://github.com/crossplane/function-sdk-python/actions
Projects https://github.com/crossplane/function-sdk-python/projects
Security and quality 0 https://github.com/crossplane/function-sdk-python/security
Insights https://github.com/crossplane/function-sdk-python/pulse
Code https://github.com/crossplane/function-sdk-python
Issues https://github.com/crossplane/function-sdk-python/issues
Pull requests https://github.com/crossplane/function-sdk-python/pulls
Actions https://github.com/crossplane/function-sdk-python/actions
Projects https://github.com/crossplane/function-sdk-python/projects
Security and quality https://github.com/crossplane/function-sdk-python/security
Insights https://github.com/crossplane/function-sdk-python/pulse
#170https://github.com/crossplane/function-sdk-python/pull/170
Field apiextensions.fn.proto.v1.RunFunctionRequest.credentials does not have presence when "resource.get_credentials()" called.https://github.com/crossplane/function-sdk-python/issues/137#top
#170https://github.com/crossplane/function-sdk-python/pull/170
bugSomething isn't workinghttps://github.com/crossplane/function-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/my-dev-ops-pro
my-dev-ops-prohttps://github.com/my-dev-ops-pro
on Mar 26, 2025https://github.com/crossplane/function-sdk-python/issues/137#issue-2950338562
bugSomething isn't workinghttps://github.com/crossplane/function-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.