question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Wildcard resource ids must not contain / (Parameter 'value')"

See original GitHub issue

“Wildcard resource ids must not contain / (Parameter ‘value’)” Getting this error while running the code.

SecretManagerServiceClientBuilder scb = new SecretManagerServiceClientBuilder();
scb.CredentialsPath = "/path/filename.json";
//scb.CredentialsPath = "filename.json";
SecretManagerServiceClient client = scb.Build();

// Build the parent project name.
SecretName sname = new SecretName(projectId, secretId);
ProjectName projectName = new ProjectName(projectId);
Secret s = client.GetSecret("projects/111721269447/secrets/secretname");
SecretVersionName secretVersionName = new SecretVersionName(projectId, "projects/111721269447/secrets/secretname", "latest");

AccessSecretVersionResponse result = client.AccessSecretVersion(secretVersionName);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jskeetcommented, Jan 27, 2021

Also is there any way we can restrict access to the secret manager altogether NOT the individual secrets

I’m afraid I don’t know exactly what you mean, but I doubt I’d have the answer anyway - the maintainers of this repository know a lot about the client libraries, but not about the individual APIs. I suggest you use one of the support routes listed at https://cloud.google.com/secret-manager/docs/getting-support to ask SecretManager-specific questions.

I’ll close this issue now as I don’t think any changes are required in the libraries.

0reactions
aruns05commented, Jan 27, 2021

@jskeet Thanks a lot that worked. Also is there any way we can restrict access to the secret manager altogether NOT the individual secrets

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS IAM - Can you use multiple wildcards (*) in a value
I can confirm that an IAM policy resource in the form of arn:aws:cloudformation:*:123456789012:stack/Foo/* works. This contains multiple ...
Read more >
Prevent updates to stack resources - AWS CloudFormation
Prevent stack resources from being unintentionally updated or deleted during a stack update by using AWS CloudFormation stack policies.
Read more >
Cloud Pub/Sub v1 API - Class PublisherServiceApiClient ...
Creates the given topic with the given name. See the resource name rules. The request object containing all of the parameters for the...
Read more >
Details of the policy definition structure - Azure
Describes how policy definitions are used to establish conventions for Azure resources in your organization.
Read more >
Wildcard query | Elasticsearch Guide [8.9]
You can use the boost parameter to adjust relevance scores for searches containing two or more queries. Boost values are relative to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found