-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add google_firebase_ios_app resource with apns_auth_key arg #8292
Comments
Hey @mleonhard I'm unable to find any REST APIs for configuring this resource on Firebase. Are you aware of such APIs? For example here is a link to the documentation for the REST API for Firebase databases: https://firebase.google.com/docs/reference/rest/database/database-management/rest/v1beta/projects.locations.instances Without a REST API we will be unable to implement this resource in Terraform. |
Yep that looks reasonable. I must have been looking in a different part of firebase. |
The key feature is the ability to set the APNS auth key. Currently setting the key requires manual steps. Manual steps are error-prone, insecure, waste time learning and performing the operation, bypass deployment review and approval processes, and bypass auditing systems. Do you think you can support setting the APNS auth key? |
How do you currently set the APNS auth key? When you say manual what do you mean by that? I don't see the APNS auth key present in that REST API that you linked. If it doesn't exist there it would not work in the Terraform resource, as we call the REST API directly in most cases |
I set the APNS auth key with these steps:
The key file is 257 bytes of ASCII text. It's a PEM file. APNS authentication requires the key and key ID. I just added
How about asking the appropriate team to add the APNS auth key fields to the API? |
Hmmmm, yeah it doesn't seem like we can support this at the moment. You can file an issue against the appropriate team here: https://cloud.google.com/support/docs/issue-trackers |
@slevenick Thanks for your quick reply. I'm reluctant to add a Buganizer ticket. Most Google teams simply ignore them forever or close them after 1 year with no action. I do not represent an organization with $1M+ annual spend on Google Cloud, so there's little chance of the business folks pushing my ticket forward. Google product managers are the only other folks inside Google that focus on users and they have very little influence. So it's pretty much up to the whims of the Google Cloud API engineers to pick my ticket to work on. Adding a field to an existing API is unlikely to get anybody promoted. The team that made the API left it incomplete so I think that they are not people who take pride in their work or focus on user needs. So I predict my ticket will sit forever with no action, like the other tickets I filed. The tickets I filed when I worked at Google had about the same success. (My ldap was I filed one about Nexus phones lying to users saying "your phone is up-to-date" when actually Google stopped releasing security updates. Nexus managers ignored it for a year or so until I assigned it to their director. Then it was assigned to another manager who ignored it for another year. Then a designer decided to include it as part of another project. They ended up not fixing the issue, just replacing the false message with weasel words that mislead non-technical (most) users: "your phone has the latest available software". Their behavior demonstrates brazen callousness toward poor people who buy a Nexus phone because they trust Google to make one that doesn't get malware, only to get malware 3 years later when it stops getting security updates. :( Buganizer is the pointy end of Google's dysfunctional internal incentive structure. Buganizer is Google's most user-hostile process. I would like to avoid it if possible. Would you be willing to file the ticket? |
Just checking and found that there still doesn't appear to be an API for configuring this value. Console GUI appears to be the way that it is configured. I didn't see a way to submit from the link provided. I'd suggest requesting API enhancements here: https://firebase.google.com/support/troubleshooter/report/features |
4 years later, and we still don't have:
How sad it is |
Community Note
Description
I wish to automate configuring Firebase Cloud Messaging for iOS apps. This has several purposes:
New or Affected Resource(s)
google_firebase_ios_app
resourcegoogle_firebase_project_id
bundle_id
app_store_id
team_id
apns_auth_key
apns_auth_key_id
google_service_info_plist
attributePotential Terraform Configuration
References
EDIT 2021-04-02: Added
apns_auth_key_id
.b/277382111
The text was updated successfully, but these errors were encountered: