Skip to content

Proposal for GetSystemTime#1

Open
AStasiuk wants to merge 24 commits intomasterfrom
feature/GetSystemTime
Open

Proposal for GetSystemTime#1
AStasiuk wants to merge 24 commits intomasterfrom
feature/GetSystemTime

Conversation

@AStasiuk
Copy link
Owner

@AStasiuk AStasiuk commented Nov 7, 2017

[In creating a Pull Request for SDL Evolution, please note the following guidelines:

  1. Please make the title of your pull request the exact title of your proposal.
  2. Please make the text of your pull request the exact text of the introduction of your proposal.
  3. Please make a new comment (do not do this in the initial text) notifying @theresalech that the proposal is ready for review when you wish to make no more changes and for the SDLC Steering Committee to consider reviewing your pull request. It will not be considered for review until you have done so.
  4. Please follow the template and fill out the metadata at the top properly.
  5. Please make sure your proposal is clear for reviewers to read, keeping in mind that the majority of reviewers are English-speaking. Proposals should be formatted per the templates and guidelines provided, including the rules in (4). Once you have asked for a "review ready" tag, the project maintainers will quickly skim your proposal and note obvious errors that need to be fixed. The maintainers are not to be relied upon to catch all errors. The Steering Committee may push back on misformatted proposals or decide not to review a proposal until it is formatted properly and easily read. Please make sure your proposals are in a "final" state before requesting review!

Please delete the above section when you have read it.]


## Introduction

This proposal is about adding a new RPC GetSystemTime to SDL Core for correct receiving of system time.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk
The sole purpose of this RPC is to get real system time during TLS handshake but not time correction.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 280d2cb


## Motivation

Allow SDL Core obtain time from the system in UTC format. Exclude possibility of UTC time distortion in case using system time from other components of the system.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk
Motivation here is that SDL does not have access to the real system time so we need an interface to the system in order to request it when it is required.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 280d2cb

## Proposed solution


The solution proposes adding new RPC between SDL and HMI. GetSystemTime gives possibility to get the System Time status by making the following additions to the HMI API.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk

  • just 'system time' or 'real system time', no need to say that aloud )
  • better ".. by introducing new API.." or ".. extending HMI API with.."

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 280d2cb


The solution proposes adding new RPC between SDL and HMI. GetSystemTime gives possibility to get the System Time status by making the following additions to the HMI API.

SDL Core must send this GetSystemTime RPC to HMI in case of Policy Table Update procedure and before Security TLS Handshake.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk
As far as I know time is not needed for policy update, but policy update is needed in case there is no certificate on the system, than system time will be required to finish handshake

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 280d2cb


SDL Core must send this GetSystemTime RPC to HMI in case of Policy Table Update procedure and before Security TLS Handshake.

Expected that HMI will request system time from the system and provide to SDL Core via GetSystemTime_response
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk

  • better is "Expected that HMI will provide real system time with GetSystemTime response"

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 280d2cb


Requires changes on SDL core, and HMI_API.

Would require a major version change.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk
I think it should be in "potential downsides"

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Rejected, I don't see these issues as "potential downsides".


## Alternatives considered

Using mqueue signals mechanism.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk
Not only mqueue but any other like pipes, mqueue, shared memory etc.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 280d2cb

## Proposed solution


The solution proposes adding new RPC between SDL and HMI. GetSystemTime gives possibility to get the System Time status by making the following additions to the HMI API.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk suggest to rephrase:
New GetSystemTime RPC could be added to extend communication between SDL and HMI. This RPC gives possibility...

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


The solution proposes adding new RPC between SDL and HMI. GetSystemTime gives possibility to get the System Time status by making the following additions to the HMI API.

SDL Core must send this GetSystemTime RPC to HMI in case of Policy Table Update procedure and before Security TLS Handshake.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk during Policy Table Update sequence and before Security SSL Handshake

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


SDL Core must send this GetSystemTime RPC to HMI in case of Policy Table Update procedure and before Security TLS Handshake.

Expected that HMI will request system time from the system and provide to SDL Core via GetSystemTime_response
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk please remove underscope in GetSystemTime_response

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


## Motivation

Now SDL Core does not have access to the real system time so need an interface to the system in order to request it when it is required
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk
I think its better to clarify that "in some cases SDL may not have access to the real system time" as it depends on a platform SDL is integrated to.

Copy link
Owner Author

@AStasiuk AStasiuk Nov 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 5bc9300


The solution proposes adding new RPC between SDL and HMI. GetSystemTime gives possibility to get the real system time status by introducing new API.

SDL Core must send this GetSystemTime RPC to HMI in case of Policy Table Update sequence - in case there is no certificate on the system. Than system time will be required to finish Security TLS Handshake.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AStasiuk
My previous comment basically mention policy update just to make it more clear for you but I don't think it has to be mentioned in proposal as policy update has nothing to do with system time

Copy link
Owner Author

@AStasiuk AStasiuk Nov 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dev-gh Fixed in 5bc9300

robinmk and others added 23 commits November 8, 2017 10:52
autoCL on my branch for OpenSDL
* Add nnnn-ios-carwindow

* Update nnnn-ios-carwindow.md

* Update nnnn-ios-carwindow.md

* Update nnnn-ios-carwindow.md
* Add audio stream manager proposal

* Update nnnn-audiostreammanager.md

* Update nnnn-audiostreammanager.md
* Create nnnn-default-softbuttoncapabilities.md

* Update nnnn-default-softbuttoncapabilities.md

* Update nnnn-default-softbuttoncapabilities.md

* Update nnnn-default-softbuttoncapabilities.md

* Update nnnn-default-softbuttoncapabilities.md

* Update nnnn-default-softbuttoncapabilities.md
Update status for 0105, 0107, 0108, 0110.  Add 0111, 0112, 0113, 0114.
Update NNNN-GetSystemTime.md according to review
@AStasiuk AStasiuk force-pushed the feature/GetSystemTime branch from d388f2f to 19088cd Compare November 20, 2017 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comments