Hi there. Trying to upload google_credentials.json...
# agents
a
Hi there. Trying to upload google_credentials.json as said in the docs, but I get
Copy code
unable to deploy agent: secret name contains invalid characters, only uppercase and lowercase letters, numerals, hyphens, and underscores are allowed
My file is
google_credentials.json
and I'm trying with
lk agent deploy --secret-mount ./google_credentials.json
am I doing something wrong? I've tried with
=
,
'
and so on, to no avail
r
Looks like you are missing the second part
--secret-name google_credentials
a
Incorrect Usage: flag provided but not defined: -secret-name flag provided but not defined: -secret-name
r
--
?
instead of single dash
a
Screenshot 2025-11-14 at 17.31.25.png
r
hmm, let me check the code
a
Thanks
r
Also what version are you using?
lk --version
a
2.12.8 with brew
r
I misled you on
secret-name
still looking at code
Can you change
google_credentials.json
to
google-credentials.json
and see if that helps
I think it should be the same but looking at doc that is one difference from what you have.
a
Nope. hyphen still does not work. But if I rename the whole file to just
c
then it works
r
ok, looking at code I am pretty sure it is the
.json
that is causing the issue. I need to chat with @echoing-kitchen-90064 or someone on that team for how this is supposed to work and if docs need updated. Thanks for bringing it up.
a
Thanks. pc @adamant-jelly-5173
✅ 1
r
Looks like there is already a fix for this merged and waiting to be released. CLI should "just work" once that fix goes out.
✅ 1
a
Thanks
s
is this fixed? Facing a similar issue.
l
We have it working in staging and are waiting for production release. I apologize for the wait.