Are heroku apps anonymous? - heroku

If I have made 2 different heroku apps, can someone who randomly sees one also find the other and know that I made it? (They are not linking to each other of course)
Thanks!

If you look at Heroku Website you will notice that it is a deployment service for developers equipped with all required tools. On Heroku there is no way to find who is registered with Heroku or list of registered apps on Heroku just like Github.
So Github has a different service model, and we can easily search any repo, any author (if public). On Heroku there is no area or option to search like that.
Except that, if you are using Heroku for free and their free domain, then the prefix in start of your free domain name will let others know that you are using Heroku platform (with free package or have not configured real domain yet).
Twilio a famous SMS API service provider, has their chat service hosted on Heroku, they didn't configured the domain, hence I noticed Herokuapp in start of their chat window URL, which let me know that they are using Heroku.

Related

Can add-on providers access the code of my application in Heroku without my permission?

Can add-on providers see/access the code of my application in Heroku without my permission?
No, the addons API has only a limited subset of Heroku API endpoints it can access. None of those endpoints will give them your source code, and the addons don't run directly on your dynos.
It depends on the Heroku add-on implementation and if the add-on is using the Heroku Platform API that would allow you to access your source code.
I found in Heroku Partner API a Source endpoint that allows you to download source code so it might be possible to download your app code.
https://devcenter.heroku.com/articles/platform-api-reference#source
I've created my own Heroku add-on https://elements.heroku.com/addons/knapsack-pro and from the add-on creator perspective, I can tell that I did not find any requirements or access levels for Heroku API so I believe any add-on provider could use Heroku Source API to access your code.

Hosting Microsoft Teams App Messaging Endpoint

I've been following Microsoft's Teams C# tutorials found here, and have been successful for the most part. However, I cannot seem to get my app to work when I host the messaging endpoint myself rather than via their Azure service, which is not an option for me ultimately as the pricing is outrageous for what we need it to do.
I'm hosting the endpoint myself by publishing the sample project and ensuring it's externally available via HTTPS. I can access a custom tab within Teams, so I know that it's online, it's just the messaging endpoint that seems to fail with an "unable to reach app" error when I try and use the messaging extension via a chat window.
When debugging using dev tools, I get 502 error: Bot returned unsuccessful status code Forbidden, error code 1008. Every potential solution I've seen for similar issues hasn't worked for me thus far, though I still feel like it's something incredibly obvious. Are there special steps that need taking when hosting the endpoint yourself? The docs do a very lousy job of explaining the process, probably because Microsoft want you to pay to host the app on Azure.
This is usually caused by the app id / app key not being registered or used correctly in your app, so it's not authenticating to the bot framework service properly. Where/how you do that depends a bit on what sample code / project template you started with, but it's usually somewhere in a .config file (or previously in a .bot file).
The information that you need will be in:
App Id: The Bot Settings page in Azure
App Key: from the Bot settings page, where you got the AppId above, it links to the App registration itself - within there you'll find the section on keys, and you can create a new key (if you've lost the original one)
I know it's generally an error when AppID validation fails. The bot app requests Azure AD to verify the identity.Could your web server access to Azure AD? If you deny to access to outbound with firewall, you should allow Azure IP range.
Turns out it was purely a network issue, that as of yet we still haven't actually figured out. But we tried hosting the app elsewhere and it was fine. That's my recommendation if anyone else has the same problem!

How to run my Slack chatbot on Heroku?

I recently built a Slack chatbot using this tutorial: https://youtu.be/jTaoU6u1Fcg
It worked great.
Now, I'm trying to run my bot on Heroku instead (so it works 24/7) but can't find anywhere online on how to do it.
The specific questions I need answered are:
What PORT do I add to my .env file now? (since I want it on a remote server public, I guess the answer isn't 3000 anymore)
Where (on Heroku) do I find the redirect URL for Oauth & Permissions?
Where (on Heroku) do I find the request URL for Event Subscriptions?
Will I still need to use ngrok or npm install? If I want the app to run 24/7, is Heroku enough?
Thanks for any help.
I just recently deployed a chatbot on heroku. The answers to your questions will be:
1. I kept the port same at 3000 and that will work on heroku as well.
2. I don't think you need to do anything on the heroku.
3. I don't think you need to do anything on the heroku.
4. ngrok wont work now but instead of ngrok url you will have add the url given by heroku (e.g. http://yourappname.herokuapp.com/) on your slack interactive elements and slash commands if you use them.
I hope this should fix your problem. One more thing there will be a proc file in heroku where you will have to give the entry path of your app.

Deploying a Phoenix app to Heroku using CloudFlare

I started developing my personal blog (and a basic CMS) using Phoenix.
I successfully deployed it to Heroku following the Documentation/Guides, it's live.
Now I added my custom domain "jonathansoifer.com" to the Heroku App but everytime I access it, the URL on the browser switches from that custom domain to the "Heroku app URL" (jonathansoifer.herokuapp.com).
Am I missing something?
It might be useful to know that the DNS is being managed by CloudFlare, using CNAME flattening as recommended by CloudFlare itself.
CNAME • jonathansoifer.com • jonathansoifer.com.herokudns.com
Sure enough, the issue was within config/prod.exs.
I had hard coded the Heroku URL there in order to take advantage of Heroku's free SSL when using their subdomains.

Deploy Twilio to existing Heroku app

I find plenty of information on deploying Twilio to a new Heroku app, thereby creating it. I'm a little stuck on the process of deploying it to an app that I already have. My app has a lot of data in the database there and I don't want to have to recreate it all. Additionally I would like my app to serve PHP pages as well. Do I need 3 Heroku apps now then? Doesn't make sense!
Twilio developer evangelist here.
You don't need to build a new application to use Twilio on Heroku. If you already have your existing application all you need to do is add the relevant endpoints for receiving SMS messages and voice calls from Twilio and deploy to your existing Heroku deployment. It is recommended that you load your Twilio Account SID and Auth Token into the Heroku config so that you can use them there too.
Is there anything specific you need to know about this? What is the application you have already built?

Resources