How can I protect my AWS access id and secret key in my python application

后端 未结 4 1729
花落未央
花落未央 2021-02-05 23:11

I\'m making an application in Python and using Amazon Web Services in some modules.

I\'m now hard coding my AWS access id and secret key in *.py file. Or might move them

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 00:02

    Don't put it in applications you plan to distribute. It'll be visible and they can launch instances that are directly billable to you or worst..they can take down instances if you use it in production.

    I would look at your programs design and seriously question why I need to include that information in the app. If you post more details on the design I'm sure we can help you figure out a way in which you don't need to bundle this information.

提交回复
热议问题