Skip to content

Add new resource Apigee Keystore Alias for Self Signed Cert#7472

Closed
anuhyapolisetti wants to merge 27 commits into
GoogleCloudPlatform:mainfrom
anuhyapolisetti:new-resource/apigee-aliases
Closed

Add new resource Apigee Keystore Alias for Self Signed Cert#7472
anuhyapolisetti wants to merge 27 commits into
GoogleCloudPlatform:mainfrom
anuhyapolisetti:new-resource/apigee-aliases

Conversation

@anuhyapolisetti

Copy link
Copy Markdown
Contributor

This PR is for the Apigee keystore alias for selfsigned format, implements the provider for the APIs - https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keystores.aliases/create

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

Add Apigee Environment Keystore Alias for Self Signed Format

@anuhyapolisetti anuhyapolisetti requested a review from a team as a code owner March 16, 2023 17:48
@anuhyapolisetti anuhyapolisetti requested review from rileykarson and removed request for a team March 16, 2023 17:48
@anuhyapolisetti anuhyapolisetti changed the title New resource/apigee aliases Add new resource Apigee Keystore Alias for Self Signed Cert Mar 16, 2023
* main: (41 commits)
  update the test cases to resolve resourcename not found error
  Adds `grpc` field to `liveness_probe` and `startup_probe` to `google_cloud_run_v2_service` resource (GoogleCloudPlatform#6987)
  Upgrade DCL to v1.34 (GoogleCloudPlatform#7276)
  Add max_distance field to group placement policy (GoogleCloudPlatform#7354)
  Add stateful_ips to region_per_instance_config and per_instance_config (GoogleCloudPlatform#7316)
  Added support for workload-vulnerability-scanning and workload-config-audit (GoogleCloudPlatform#7310)
  datacatalog - bump Taxonomy and PolicyTag to ga (GoogleCloudPlatform#6989)
  Added best practices documentation for ForceNew fields (GoogleCloudPlatform#7127)
  Split resources in "B" products (GoogleCloudPlatform#7350)
  force recreate on master_config.num_instances (GoogleCloudPlatform#7349)
  Fix DataFusion instance versions used in tests (GoogleCloudPlatform#7343)
  remove duplicate word in Cluster.yaml (GoogleCloudPlatform#7347)
  Move more billing tests that require permissions beyond Billing User to master billing account (GoogleCloudPlatform#7344)
  Remove artifact repository beta URL, fixup handwritten tests (GoogleCloudPlatform#7345)
  Cloud Workstations - Workstation Config (GoogleCloudPlatform#7017)
  Add missing `type` argument to data source docs (GoogleCloudPlatform#7341)
  Fix caps in spanner resource schema accesses (GoogleCloudPlatform#7346)
  Downgrade Go to 1.18, modify comments (GoogleCloudPlatform#7339)
  feat: Add support for deletion_policy on shared vpc service project (GoogleCloudPlatform#7283)
  fixed virtual field update issues (GoogleCloudPlatform#7318)
  ...

@rileykarson rileykarson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made an initial pass!

# limitations under the License.

--- !ruby/object:Api::Resource
name: 'EnvKeystoreAliasesSelfSigned'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see in https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keystores.aliases/create that it refers to CertificateGenerationSpec but I can't find any details on that type. Do you have a link to it?

Comment thread mmv1/products/apigee/EnvKeystore.yaml
Comment thread mmv1/products/apigee/terraform.yaml
input: true
url_param_only: true
- !ruby/object:Api::Type::String
name: 'name'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now this value is optional, but not possible to send as a query parameter in create: https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keystores/create#query-parameters. We need to add the parameter to the create_url to change that.

Would it make sense to just make this a required field, through Terraform? Default names can cause a lot of complications.

name: 'name'
description: |
The name of the newly created keystore.
input: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: The regex used by the API accepts spaces, so we should test a name that includes them.

Comment thread mmv1/products/apigee/EnvKeystore.yaml
@anuhyapolisetti

Copy link
Copy Markdown
Contributor Author

Most of them are addressed in PR -#7488 , Closing this as it is a duplicate too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants