Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17383

AbstractS3ATokenIdentifier to provide issue date == created && max date == expiry time

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: fs/s3
    • Labels:
      None

      Description

      As we've seen the behavior from HADOOP-17379, AbstractS3ATokenIdentifier doesn't guarantee providing correct "issue date" and "max date" before HADOOP-17379, and even after, "max date" is not a thing we can make a guarantee only with AbstractS3ATokenIdentifier, as there's no information.

      In the meanwhile, I realized there're two methods in AbstractS3ATokenIdentifier, getCreated() and getExpiryTime(), which feel like the same purpose with getIssueDate() and getMaxDate() in AbstractDelegationTokenIdentifier.

      If we think these pairs are doing the same, we can just override AbstractS3ATokenIdentifier.getIssueDate() to call getCreated() && AbstractS3ATokenIdentifier.getMaxDate() to call getExpiryTime().

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kabhwan Jungtaek Lim
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: