By using AWS re:Post, you agree to the AWS re:Post Terms of Use

Our Webview Applications Not Working After Authority Changes

0

Recently, we had to make some authorization changes while working on our servers to expand our service range, but another problem arose in a way that we could not directly associate with these changes. We made our coridor.co application, which we normally serve through the browser, available in iOS and Android application stores with webview and it was working smoothly until this authorization change. Whatever happened, our webview applications no longer work. My teammate lists the following items while defining the problem:

"I have an EC2 instance on AWS and I am trying to connect with SSH. However, when I connect, I can only perform operations in certain directories. I connect with ubuntu user but I do not have access to root privileges.

  • I may have modified the /etc/sudoers file.
  • The sudoers.d directory is empty.
  • API requests I make on webview get an authorization error."

I would also like to ask this directly: Our servers are regularly backed up. Would going back to a few days before the problem, solves this issue?

We have lost one of our biggest trump cards, our low-sized webview applications, and everyone is trying to find a solution. We need your support.

asked a month ago33 views
1 Answer
1

Based on the information provided, it appears that your recent authorization changes have had unintended consequences, affecting both your server access and your webview applications. Let's address the issues one by one:

  1. EC2 Instance SSH Access: The limited access to certain directories and lack of root privileges suggests that the user permissions have been modified. The empty sudoers.d directory and potential modifications to the /etc/sudoers file indicate that sudo privileges have been altered or removed for the ubuntu user.

  2. Webview Application Issues: The authorization errors in API requests from the webview applications are likely related to the same changes that affected the server permissions. This could be due to modified security groups, IAM roles, or API gateway settings that are now preventing the webview applications from accessing the necessary resources.

To resolve these issues:

  1. Review and restore the correct permissions in the /etc/sudoers file. You may need to use a root-level account or contact AWS support if you've completely lost sudo access.

  2. Check your security groups and ensure that the necessary ports are open for your webview applications to communicate with your servers.

  3. Review your IAM roles and policies to ensure that the correct permissions are in place for your applications to make API requests.

  4. Verify that your API gateway settings haven't been inadvertently changed during the authorization updates.

Regarding your question about reverting to a backup: Yes, restoring from a backup taken a few days before the problem occurred could potentially solve these issues. This would revert your server and application configurations to a state before the problematic changes were made. However, keep in mind that this would also undo any other changes or updates made since that backup, so you'd need to carefully consider the implications and potentially reapply any necessary changes after the restore.

Before proceeding with a full restore, it's recommended to:

  1. Attempt to fix the issues manually first, as this can be quicker and less disruptive.
  2. If a restore is necessary, create a new test environment from the backup to verify that it resolves the issues before applying it to your production environment.
  3. Document the current state and the changes made during the authorization update to help prevent similar issues in the future.

Remember to always test changes in a staging environment before applying them to production, and maintain detailed documentation of your system configurations and any modifications made.
Sources
Troubleshooting Image Builders - Amazon AppStream 2.0
Full Stack Development - Web and Mobile Apps - AWS Amplify Authentication

profile picture
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions