You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Minor Changes
Added gcp_storage_signed_url module - generates a V4 signed URL for a GCS object, so a party without any IAM access to the bucket can perform a single HTTP request against that object until the URL expires. Supports signing via the IAM Credentials API (signBlob, using a service account other than the one running the module) or locally via an HMAC key, with no IAM API call and no serviceAccountTokenCreator grant required for the latter.
audit - added tests/unit/audit/test_event_query_contract.py, which asserts the constraints the controller imposes on the query file (#781).
audit - dropped the mappings for gcp_resource_record_set and gcp_sourcerepo_repository; neither module exists in this collection (#781).
event_query - the contract test now compiles every expression with jq. Every other check in that file reads the query as text, so all of them pass on an expression that cannot run.
gcp_networkconnectivity_* - Add gcp_networkconnectivity_hub and gcp_networkconnectivity_spoke with accompanying _info modules (#788)
gcp_sql_instance - Add edition option to settings (e.g., ENTERPRISE, ENTERPRISE_PLUS) to allow specifying the Cloud SQL instance edition (#784)
Bugfixes
ansible-mmv1(templates) - Reverted to a 3-way boolean check for custom diff logic, this way you can force a custom diff when the values aren't actually different
ansible-mmv1(templates) - The DOCUMENTATION block was incorrectly printing short_description at the end of the block because of alphabetical order (bug - #789, fix - thekad/ansible-mmv1@993cb04)
ansible-mmv1(templates) - The RETURNS block was showing incomplete output (fix - thekad/ansible-mmv1@54a04c5)
audit - device_type was looked up by the resource kind, which no module's response_to_hash() returns, so every resource would have been labelled missing. Each module now carries its resource type literally (#781).
audit - gcp_container_cluster and gcp_container_node_pool were keyed on .name, which the GKE API returns as the short name only. Same-named node pools in different clusters, and same-named clusters in different projects or locations, collapsed into a single indirect node; because the controller requires name to be unique within a job, a job touching two of them lost every audit record it produced. Both now key on the full resource identity (.id/.selfLink) (#781).
audit - gcp_dns_resource_record_set guarded only .name, so a result carrying no .type emitted the identifier "<name>/null" -- null | tostring is the string "null", not null -- and every such record in a job collided on the same identifier. .type is now guarded as well (#781).
audit - gcp_dns_resource_record_set was identified by name alone; an A record and a TXT record on the same name are two resources and were collapsed into one (#781).
audit - name was part of canonical_facts, which is the only key the controller deduplicates on, so a renamed resource counted twice (#781).
audit - the identifier fell back to etag when a module returned no id. etag changes on every mutation, so gcp_filestore_instance -- the only module in the collection that returns no id -- counted the same resource again each time it was modified (#781).
audit - the indirect node counting query was shipped as extensions/audit/taxonomy.jq. The Automation Platform controller only reads extensions/audit/event_query.yml, so the file was never loaded and this collection reported no indirect nodes at all. It is now extensions/audit/event_query.yml (#781).
audit - the query iterated the module result with .[] and called has("results") on each value, which raises Cannot check whether boolean has a string key on the changed key that every module returns. The controller catches jq errors and discards the whole event, so the query could not have emitted a record even if it had been loaded (#781).
audit - the query selected resources with select($data.action | in($actions)), but the controller passes jq only the module result and no module in this collection returns its own name, so nothing was ever selected. Each module now has its own entry keyed by FQCN (#781).
event_query - the two Pub/Sub queries emitted infra_bucketapp_integration_messaging, which is not one of the nine values the Normalized Resource Taxonomy defines. Those nodes bucketed into a category nothing downstream aggregates. Corrected to devops_app_integration.
gcp_utils, inventory/gcp_compute, gcp_iam_service_account_key - Replaced deprecated ansible.module_utils._text imports with ansible.module_utils.common.text.converters