-
Notifications
You must be signed in to change notification settings - Fork 70
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
add-google-cloud-ops-agent-repo.sh pushes key to deprecated apt-key trusted.gpg keystore #1132
Comments
Hi @sbconslt, we have been tracking this internally and are working on it. |
Hi @braydonk , is there any update on when we might expect to see progress on this feature? |
I was thinking I would take this one. can you assign to cjac, plz? |
This issue was marked stale due to lack of activity. It will be closed in 14 days. |
Closing this issue would be a mistake, because the old apt-key trusted.gpg mechanism will eventually be removed. |
Can I get this issue assigned to me plz |
@jefferbrecht - can you get this assigned to me? I've been doing a lot of work on the migration off of apt-key and know how this goes. |
@sbconslt - what do you think of this? I've got an example of the correct way to create a repo, too... Does one of these approaches seem to be a good solution to you? |
oh, I'll just create a PR |
now that I grep the code for 'apt-key' I am finding none. Is this one already solved? |
My patch was as you see in the original comment, just to send the key to /etc/apt/trusted.gpg.d/. The current shipping add-google-cloud-ops-agent-repo.sh still calls apt-key. |
it looks like the source in the repo is using gpg --dearmor:
|
I, like you, found that the add-google-could-ops-agent-repo.sh is not represented in repo here. The matches you have above are for other, unrelated repos. |
is this the file you're speaking of? |
The current shipping version I'm pulling is https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh based on the documentation page https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/installation |
okay, I've opened a bug against that public document to make sure we copy the new version of that script once my PR is merged. Please ping me again if it falls by the wayside again. |
That script is not the canonical version; I don't know why that is in that repo. The canonical version is internal (I believe this is for legacy technical reasons). Updating the script in that repo, as far as I know, will have no effect. I have no clue why it's there in the first place. @cjac, could you please make a CL to the canonical version of the script? I can send you a message and show you where that is. |
Okay, I think the last change will be accepted without prejudice. Will update the downstream GitHub repo nao |
I do not yet find https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh to have been updated, fwiw. I did see that the PR in the other repo was closed so presumably something was applied somewhere. |
Yes, I know that it is not yet peer reviewed by code owner and has not reached that url. Please stand by. |
The script won't be updated at the download link til after the holidays; we're restricted from doing releases of any kind until the new year. We'll also have to verify that we are able to switch off of |
add-google-cloud-ops-agent-repo.sh
as currently delivered invokesapt-key add -
to store the gpg key for package signing, which stores the key to/etc/apt/trusted.gpg
, a deprecated procedure.Newly on Ubuntu 22.04, the presence of this signing key in this location throws a deprecation Warning during
apt-get update
. This is a risk to the automated orchestration of updates. (apt-get update && apt-get dist-upgrade -y
that we sometimes emplace, for example, is blocked by it as the first command appears to the shell to not exit 0.)I produced the following diff of the change that relocates the signing key to its own file
/etc/apt/trusted.gpg.d/google-cloud-ops-agent.gpg
:I do not locate the
add-google-cloud-ops-agent-repo.sh
file in this repository, though, so have not formed a PR.Please consider updating the install scripting accordingly. Thanks.
The text was updated successfully, but these errors were encountered: