security

Is there a way in Azure DevOps settings to create a Personal Access Tokens (PAT) equivalent that is not associated with a single user?

烈酒焚心 提交于 2021-02-11 13:57:39
问题 If I understand correctly, Personal Access Tokens (PAT) are associated with the user identity logged in (they are within User Settings afterall). Question : For functional responsibilities that should not be associated with and reliant upon one individual team member's account (ex. automated systems deployments), is there a way to generate non-user contextual PATs? 回答1: There is no way to create non-user contextual personal access tokens. Personal access tokens are alternate passwords that

Security considerations when using canvas in conjunction with file uploading

谁说胖子不能爱 提交于 2021-02-11 13:56:54
问题 I'm working on a image editor/uploader based around Pixastic where I grab image data out of an <input> tag, put it into a canvas, and after manipulating it, encode the data in base 64 and post it to my app with javascript, where it will be saved as a new image file. If it were a standard file upload, I would give the file a new (safe) name, test to make sure it was really an image file and copy it to strip any potentially malicious/personal EXIF data before making it available to users. My

Google cloud platform Cloud Endpoint SSL/TLS mutual handshake ESP

孤街浪徒 提交于 2021-02-11 13:41:42
问题 I am working on deploying an API solution on GCP where mutual SSL/TLS is required (server and client side certificates). So for the ingress of the traffic (entry point) I found that kubernetes ingress controller has this possibility (NGINX based). I am interested by cloud endpoints which has ESP (extensible service proxy which is also nginx deployment under kubernetes). I couldn't find anywhere in the documentation whether mutual SSL/TLS is available for ESP (cloud endpoint), does anyone know

How do I calculate the MD5 checksum of a file contents in Python?

老子叫甜甜 提交于 2021-02-11 12:37:57
问题 the scenario is: I have generated md5 checksum for the pdf file which stored on the server using the following code: def createMd5Hash(self, file_path, pdf_title, pdf_author): md5_returned = None try: md5 = hashlib.md5() with open(file_path, 'rb') as file_to_check: for chunk in file_to_check: md5.update(chunk) md5_file = md5.hexdigest() custom_key = 'xyzkey-{}'.format(md5_file) md5.update(custom_key.encode()) md5_returned = md5.hexdigest() except Exception as e: print("Error while calculate

Where to keep static information securely in Android app?

ぃ、小莉子 提交于 2021-02-11 12:24:27
问题 In my Andorid app, am using few keys and tokens for authentication and initialisations. I need to store these static keys somewhere in app securely. At the same time, I need to access it in code as well. I am aware of SharedPreference and Gradle variables, which right now I use. I have tried Cryptography as well, but then I will have to store the secretKey also for decryption. So, am searching for any workaround or proper solution. Any help will be highly appreciated. 回答1: YOUR PROBLEM Where

ASP.NET web.config encryption security

回眸只為那壹抹淺笑 提交于 2021-02-11 04:35:30
问题 I'm planning to encrypt the connection strings of a web configuration file belonging to an application which will be run in a server farm. I am aware of the aspnet_regiis command line tool to encrypt the sections using it. But I have some doubts, which I expect you guys can solve. My question is that if I encrypt the connectionstrings and the web.config file is stolen by some hacker, will he be able to decrypt it using the same command line with -pe switch? The same is shown below. My Servers

Should you expose a primary key in REST API URLs?

元气小坏坏 提交于 2021-02-11 03:09:17
问题 I'm very new to Spring. I'm trying to create a REST API using Spring Boot and I'm stuck whether to expose my user's primary key or not which also happens to be their email. Something like api/user/example@gmail.com . A big part of me says it's okay since it would sensible to expose it as it is the identifier for that specific record when viewing, deleting, and updating. Is there a security risk for this? What is the best practice for such implementation? Right now I'm combining the

Should you expose a primary key in REST API URLs?

久未见 提交于 2021-02-11 03:00:00
问题 I'm very new to Spring. I'm trying to create a REST API using Spring Boot and I'm stuck whether to expose my user's primary key or not which also happens to be their email. Something like api/user/example@gmail.com . A big part of me says it's okay since it would sensible to expose it as it is the identifier for that specific record when viewing, deleting, and updating. Is there a security risk for this? What is the best practice for such implementation? Right now I'm combining the

Should you expose a primary key in REST API URLs?

末鹿安然 提交于 2021-02-11 02:59:22
问题 I'm very new to Spring. I'm trying to create a REST API using Spring Boot and I'm stuck whether to expose my user's primary key or not which also happens to be their email. Something like api/user/example@gmail.com . A big part of me says it's okay since it would sensible to expose it as it is the identifier for that specific record when viewing, deleting, and updating. Is there a security risk for this? What is the best practice for such implementation? Right now I'm combining the

Should you expose a primary key in REST API URLs?

安稳与你 提交于 2021-02-11 02:56:45
问题 I'm very new to Spring. I'm trying to create a REST API using Spring Boot and I'm stuck whether to expose my user's primary key or not which also happens to be their email. Something like api/user/example@gmail.com . A big part of me says it's okay since it would sensible to expose it as it is the identifier for that specific record when viewing, deleting, and updating. Is there a security risk for this? What is the best practice for such implementation? Right now I'm combining the