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

GenericSecret using local filesystem data source cannot be watched #38684

Closed
minuyim opened this issue Mar 8, 2025 · 6 comments · Fixed by #38803
Closed

GenericSecret using local filesystem data source cannot be watched #38684

minuyim opened this issue Mar 8, 2025 · 6 comments · Fixed by #38803
Labels
area/sds SDS related bug

Comments

@minuyim
Copy link

minuyim commented Mar 8, 2025

If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing
[email protected] where the issue will be triaged appropriately.

Title: GenericSecret using local filesystem data source cannot be watched

Description:
As described here, sds config file can be watched.

But when I set the filename in sds_config, the secret file cannot be watched from Envoy.

Config:

  credentials:
    token_secret:
      name: token
      sds_config:
        path_config_source: 
          path: "config.yaml"
resources:
  - "@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret"
    name: token
    generic_secret:
      secret:
        filename: jwt_svid.token

In this example, even if jwt_svid.token is updated by move event, the secret is not updated.

@minuyim minuyim added bug triage Issue requires triage labels Mar 8, 2025
@RyanTheOptimist RyanTheOptimist added area/sds SDS related and removed triage Issue requires triage labels Mar 17, 2025
@RyanTheOptimist
Copy link
Contributor

cc: @adisuissa

@adisuissa
Copy link
Contributor

Can you try to configure the watched_directory field, and see if it works?

@minuyim
Copy link
Author

minuyim commented Mar 19, 2025

Yes, I tried. But it would not work. The envoy version is 57e967669
The secret value can only be updated if the listener configuration has been changed.

@jewertow
Copy link
Contributor

Watching generic secret is not implemented:

I am working on it.

@zuercher
Copy link
Member

TlsSessionTicketKeysSdsApi has the same bug -- it doesn't implement getWatchedDirectory or getDataSourceFilenames() either.

@jewertow
Copy link
Contributor

Yes, I noticed that. I can fix TlsSessionTicketKeysSdsApi as well in follow-up PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sds SDS related bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants