"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:
- Created 3 years ago
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@jskeet Thanks a lot that worked. Also is there any way we can restrict access to the secret manager altogether NOT the individual secrets